Shanghai to Xi'an by Train

Yes, there are direct trains. About 26 departures a day run from Shanghai to Xi'an without changing trains — frequent. The fastest takes about 5h 39m.

Direct trains
26 per day
Fastest
5h 39m
Changes
None
Return (Xi'an → Shanghai)
14 per day · 5h 50m

Trains from Shanghai to Xi'an

Typical departures, Shanghai → Xi'an Showing the 12 quickest of 26 services we hold for this route. July 2026 timetable — not live.
TrainDepArrDuration FromTo StopsDistance
G1970/G1971Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 06:09 13:20 7h 11m Shanghai Hongqiao Xi'an North 14 stops 1509 km
G1802/G1803Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 06:13 13:51 7h 38m Shanghai Hongqiao Xi'an North 15 stops 1509 km
G3176/G3177Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 06:19 14:45 8h 26m Shanghai Hongqiao Xi'an North 18 stops 1562 km
G464/G465Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 06:48 13:40 6h 52m Shanghai Hongqiao Xi'an North 7 stops 1562 km
G1974/G1975Shanghai Hongqiao → HuyiShanghai Hongqiao 07:16 14:56 7h 40m Shanghai Hongqiao Huyi 12 stops 1554 km
G3292/G3293Shanghai Hongqiao → Xian WestShanghai Hongqiao 08:24 16:50 8h 26m Shanghai Hongqiao Xian West 12 stops 1550 km
G94/G95Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 08:55 14:34 5h 39m Shanghai Hongqiao Xi'an North 4 stops 1509 km
G2194/G2195Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 09:19 16:28 7h 09m Shanghai Hongqiao Xi'an North 13 stops 1509 km
G3164/G3165Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 09:38 17:47 8h 09m Shanghai Hongqiao Xi'an North 16 stops 1562 km
G3171/G3174Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 10:15 18:01 7h 46m Shanghai Hongqiao Xi'an North 13 stops 1512 km
G1916/G1917Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 16:09 23:00 6h 51m Shanghai Hongqiao Xi'an North 10 stops 1262 km
G1940/G1941Shanghai Hongqiao → Xi'an NorthShanghai Hongqiao 17:07 23:33 6h 26m Shanghai Hongqiao Xi'an North 7 stops 1509 km

Times are planning references. China Railway runs several timetable revisions a year and adds or suspends trains at short notice — check live seats and today’s schedule for your date before you rely on any specific departure.

Before you rely on this

The times above come from the July 2026 timetable snapshot. China Railway revises its schedule several times a year, adds trains for holidays, and suspends services at short notice. Treat every departure time as a planning reference, not a booking commitment.

The live search queries China Railway (12306) directly for your travel date — that is the only source that reflects today's actual schedule and seat availability.

Our data covers high-speed (G/D/C) and intercity services. Slow conventional trains (Z/T/K) are only partly included, so a route marked "no direct train" may still have a direct slow train. Always confirm in the live search.

Why people take the train instead of flying

  • City centre to city centre. Chinese high-speed stations sit in the urban core or on a metro line — no 45-minute airport transfer at either end.
  • No check-in cut-off. You can board a few minutes before departure. Arriving 20 minutes early is comfortable.
  • Luggage is free and unlimited. No weight limit, no bag drop queue.
  • 5h 39m door to door compares well once you add airport security, boarding and transfers.
  • Foreign passports are accepted. Your passport is your ticket — no Chinese ID or phone number needed.

What it costs

Fares are set by China Railway in yuan and converted to dollars at the rate shown on this site. The price you see in the search results is the fare plus our service fee, in one number — nothing is added at checkout.

Other classes, and slower trains on the same route, are priced differently by the railway. The exact figure for the train you pick is shown before you pay.

Check live prices and trains  · How our pricing works

China Railway sets and occasionally changes fares — always confirm the live price for your date.

Frequently asked questions

Do I need to change trains from Shanghai to Xi'an?

No. Around 26 direct trains a day connect the two cities without a change.

How long is the train from Shanghai to Xi'an?

The fastest direct service takes about 5h 39m. Slower trains on the same route take longer.

Can foreigners book these trains?

Yes. Every train listed runs under China Railway (12306) and accepts foreign passports. We book against your passport number — no Chinese ID or phone number required.

Are the departure times fixed?

We show typical daily frequency rather than exact times, because China Railway adjusts schedules several times a year. The live search always reflects the current timetable for your travel date.

Is the train cheaper than flying?

On most routes under about 5 hours, second class costs less than a comparable flight once you include baggage and airport transfers. Live fares in USD (with our service fee included) are shown in the search results.

Other places you can reach from Shanghai

Going the other way

Arriving in Xi'an

Trains from Shanghai arrive at one of Xi'an's main stations. Check your ticket for the station name — large cities have several, and they can be 30+ minutes apart. Station names are shown in Chinese and English on every platform sign, and your passport works at the staffed gate for both entry and exit.

Browse by city