China train guide · checked October 2026
Xi'an to Shanghai by train (and back)
One of the longer high-speed rides on our routes: most of a day on board, but from one city centre to the other without airport queues.
- Journey timeabout 6–8 hours
- Fastest train5 h 50 min
- Second classfrom ¥666 (about 410 PLN) – up to ¥756
- How oftenseveral direct G trains a day
Timetable and fares
Direct high-speed trains (G, D and C) on a normal weekday, from the China Railway 12306 timetable for Wednesday 11 November 2026.
| Trains a day | 21 (Xi'an North → Shanghai Hongqiao) |
|---|---|
| First and last train | 06:13 / 15:56 |
| Fastest train | 5 h 50 min (G96) |
| Typical journey | 8 h 1 min |
| Second class | ¥666–756 |
| Cheapest (second class) | ¥652 (G3298) |
| First class | ¥1062–1208 |
| Business class | ¥2068–2479 |
| Shanghai → Xi'an | 21 trains, 06:09–17:07, fastest 5 h 39 min (G94) |
Fares vary by train and time of day, and timetables change several times a year – check Trip.com or 12306 before you book.
Xi'an North → Shanghai Hongqiao: 20 of 21 trains
| Train | Departs | Arrives | Time | Second class |
|---|---|---|---|---|
| G1914 | 06:13 | 13:22 | 7 h 9 min | ¥679 |
| G3162 | 08:12 | 16:32 | 8 h 20 min | ¥767 |
| G3154 | 08:38 | 17:06 | 8 h 28 min | ¥719 |
| G92 | 08:51 | 14:43 | 5 h 52 min | ¥756 |
| G3298 | 09:18 | 17:38 | 8 h 20 min | ¥652 |
| G1918 | 09:29 | 16:43 | 7 h 14 min | ¥688 |
| G3172 | 10:28 | 19:14 | 8 h 46 min | ¥666 |
| G1922 | 10:35 | 18:02 | 7 h 27 min | ¥700 |
| G1980 | 11:06 | 20:07 | 9 h 1 min | ¥783 |
| G1820 | 11:10 | 18:10 | 7 h | ¥738 |
| G3166 | 11:46 | 20:15 | 8 h 29 min | ¥705 |
| G2196 | 12:10 | 19:15 | 7 h 5 min | ¥700 |
| G3294 | 12:54 | 21:02 | 8 h 8 min | ¥697 |
| G3178 | 13:46 | 22:26 | 8 h 40 min | ¥743 |
| G1972 | 14:06 | 22:01 | 7 h 55 min | ¥700 |
| G3290 | 14:46 | 22:47 | 8 h 1 min | ¥657 |
| G1976 | 15:10 | 22:35 | 7 h 25 min | ¥688 |
| G96 | 15:32 | 21:22 | 5 h 50 min | ¥732 |
| G466 | 15:43 | 23:02 | 7 h 19 min | ¥730 |
| G1942 | 15:56 | 23:57 | 8 h 1 min | ¥719 |
Shanghai Hongqiao → Xi'an North: 20 of 21 trains
| Train | Departs | Arrives | Time | Second class |
|---|---|---|---|---|
| G1970 | 06:09 | 13:20 | 7 h 11 min | ¥688 |
| G1802 | 06:13 | 13:51 | 7 h 38 min | ¥700 |
| G3176 | 06:19 | 14:45 | 8 h 26 min | ¥671 |
| G464 | 06:48 | 13:40 | 6 h 52 min | ¥730 |
| G1974 | 07:16 | 14:22 | 7 h 6 min | ¥700 |
| G3288 | 07:46 | 15:52 | 8 h 6 min | ¥664 |
| G3292 | 08:24 | 16:32 | 8 h 8 min | ¥690 |
| G94 | 08:55 | 14:34 | 5 h 39 min | ¥756 |
| G2194 | 09:19 | 16:28 | 7 h 9 min | ¥738 |
| G3164 | 09:38 | 17:47 | 8 h 9 min | ¥736 |
| G3174 | 10:15 | 18:01 | 7 h 46 min | ¥698 |
| G3284 | 10:37 | 19:38 | 9 h 1 min | ¥666 |
| G1924 | 11:28 | 19:00 | 7 h 32 min | ¥755 |
| G3152 | 11:32 | 20:29 | 8 h 57 min | ¥724 |
| G1928 | 12:36 | 20:00 | 7 h 24 min | ¥688 |
| G3161 | 12:51 | 21:46 | 8 h 55 min | ¥758 |
| G1932 | 13:38 | 20:41 | 7 h 3 min | ¥688 |
| G3296 | 13:58 | 21:53 | 7 h 55 min | ¥652 |
| G1916 | 16:09 | 23:00 | 6 h 51 min | ¥679 |
| G1940 | 17:07 | 23:33 | 6 h 26 min | ¥676 |
Stations
Show the Chinese name to your taxi driver.
Metro line 2 from the Bell Tower takes about 30 minutes; allow time for the security check.
Joined to Hongqiao Airport Terminal 2 – metro lines 2 and 10 go to the centre.

Good to know
- Bring food and water – most trains have a dining car and hot water dispensers for tea or instant noodles.
- A morning departure gets you to Shanghai in time to see the Bund lit up in the evening.
Train or plane?
Flying is quicker: about 2.5 hours in the air and roughly 5 hours door to door, against 6–8 hours by train. Take the train if you'd rather avoid airports or want to stop on the way, for example in Luoyang or Nanjing.
On the way
The line follows the Yellow River valley east to Zhengzhou, crosses the plains of Henan, Anhui and Jiangsu and passes over the Yangtze near Nanjing – more than 1,400 km from the Loess Plateau to the river delta.
When you arrive
From Hongqiao, metro line 2 takes about 40 minutes to People's Square and Nanjing Road. Walk down the Nanjing Road pedestrian street to the river and you reach the Bund: the Lujiazui skyline across the water looks best just after dark.
Shanghai to Xi'an by train
Most high-speed trains back to Xi'an leave from Shanghai Hongqiao (上海虹桥站), about 40 minutes from People's Square on metro line 2; it shares a huge complex with the airport, so follow the railway signs and allow extra time. The last direct G trains leave in the late afternoon (around 5–6 pm) and reach Xi'an North around midnight, so set off in the morning or around midday. Times and fares are the same.
How to book
- Buy on Trip.com (English, foreign cards) or in the official 12306 app – tickets go on sale 15 days before departure.
- Your passport is your ticket: you book with its number and scan it at the gates. Bring the same passport you booked with.
- Be at the station 40–60 minutes early: there is a security check at the entrance, and gates close a few minutes before departure.
- Big suitcases fit at the end of each carriage or on the racks above the seats.
Trip.com and 12306 step by step, classes and seats, refunds, changes and the station: How to buy train tickets in China. For hotels and flights with a foreign passport: Hotels, trains and flights in China.
Times and fares are typical values for second class, checked in October 2026. Fares are dynamic (peak trains cost more) and timetables change – check the live timetable on Trip.com or 12306 before you travel.
Frequently asked questions
How much is a train ticket from Xi'an to Shanghai?
Usually ¥666–756 in second class, ¥1062–1208 in first class and ¥2068–2479 in business class. Fares from the 12306 timetable for Wednesday 11 November 2026; they vary by train and time of day.
Is it better to take the train or fly from Xi'an to Shanghai?
Flying is quicker: about 2.5 hours in the air and roughly 5 hours door to door, against 6–8 hours by train. Take the train if you'd rather avoid airports or want to stop on the way, for example in Luoyang or Nanjing.
How long is the train from Xi'an to Shanghai?
The fastest direct G trains take just under 6 hours (5 h 50 min), most 6–8 hours. With a morning departure you're in Shanghai by mid-afternoon.
Is first class worth it on such a long ride?
It's worth considering: first class (一等座) has four seats in a row instead of five and more legroom, for roughly 1.6 times the second-class fare.



