Search and book flights, trains, buses and ferries in Asia
Select your departing trip
Results from Xi An to Shanghai on Monday, 09 February 2026
| Departure | Arrival | Price | ||||
|---|---|---|---|---|---|---|
We obtained these fares directly from the transport providers. Please note that search results may differ from the actual timetables and prices at the time of booking, and that we are not responsible for delays in the services. For more information, read our Terms of Use.
How to get from Xi An to Shanghai
The easiest way to travel from Xi An to Shanghai is by train.
How far is Xi An from Shanghai?
The travel distance between Xi An and Shanghai is 1,380 km. The best option to travel from Xi An to Shanghai is taking a train.
How long does it take to get from Xi An to Shanghai?
It takes 5 hours 50 minutes to 8 hours 50 minutes to get from Xi An to Shanghai by high-speed train, 15 hours 15 minutes by overnight high-speed train and 15 hours 05 minutes to 21 hours by conventional train.
What types of trains operate the route Xi An to Shanghai?
There is one railway company operating trains on the route Xi An to Shanghai.
China Railway is the state-owned railway company in China operating high-speed trains and conventional trains.
There are five types of services on route Xi An to Shanghai: G-series are high-speed services with maximum speed of 350 km/h, D-series are overnight high-speed services with maximum speed of 250 km/h, Z-series are conventional direct express services stopping at provincial capitals or no stops with maximum speed of 160 km/h, T-series are conventional express services stopping at province-level cities with maximum speed of 140 km/h, and K-series are conventional fast services stopping at prefecture-level cities with maximum speed of 120 km/h.
In total, high-speed trains offer three seat classes: Business class Seat and First class Seat available in G-series trains, Second class Seat available in G and D series trains, and two sleeper classes: First class Sleeper with soft beds in compartments for 1-4 passengers and Second class Sleeper with hard beds in compartments for 1-6 passengers available in overnight D-series trains.
In total, conventional trains offer one seat class: Hard seat, and two sleeper classes: Soft Sleeper in compartments for 1-4 passengers and Hard Sleeper in compartments for 1-6 passengers available in Z, T and K series trains.
For more information about travelling by train, please read our Train Guide in China.
Where do trains from Xi An to Shanghai depart?
All the G-series high-speed trains depart from Xi An North Railway Station located in Weiyang, Xi An. All the overnight D-series high-speed trains, the Z, T and K series conventional trains depart from Xi An Railway Station located in Xincheng, Xi An.
Passengers are requested to arrive at the station 60 minutes before the scheduled departure time to complete the boarding procedures or risk missing the train.
Where do trains from Xi An to Shanghai arrive?
All the G-series high-speed trains arrive at Shanghai Hongqiao Railway Station located in Minhang, Shanghai. All the overnight D-series high-speed trains, most Z-series conventional trains, and all the T and K series conventional trains arrive at Shanghai Railway Station located in Jing An, Shanghai. Few Z-series conventional trains arrive at Shanghai South Railway Station located in Xuhui, Shanghai.