Skip to content
WYDin China

Xi'an to Shanghai by train

西安 → 上海

Fastest train
5 h 50 min
Typical high-speed train
7 h 58 min
Door to door, roughly
8 hTrain time plus about an hour to reach, clear and leave the stations.

Fares

Second class
¥652–782.5
First class
¥1039–1258.5
Business class
¥2048–2561

One adult, one way, as listed on 12306 for the trains between these stations on 16 December 2026. Fares differ by train and departure time, so 12306 shows the exact price when you pick a train.

Stations

From Xi'an: Xi'an North 西安北

Into Shanghai: Shanghai Hongqiao 上海虹桥

About 20 direct trains a day.

The direct G-trains run Xi'an North to Shanghai Hongqiao and take from just under 6 hours to about 9, depending on the stops. Overnight D-train sleepers from the central Xi'an station reach Shanghai or Shanghai Songjiang in 15 to 16 hours.

Show the station's Chinese name to your taxi driver: many cities have several stations.

Loading map…

Booking

Tickets are real-name: book with your passport number and bring the same passport to the station. The trains guide explains the 12306 app, foreign cards and what to expect at the station.

Xi'an guideShanghai guide

Quick answers

How long is the train from Xi'an to Shanghai?
The fastest trains take 5 h 50 min; a typical high-speed train takes 7 h 58 min.
Which stations do trains from Xi'an to Shanghai use?
They leave from Xi'an North (西安北) and arrive at Shanghai Hongqiao (上海虹桥).
How many trains a day run from Xi'an to Shanghai?
About 20 a day.
How much is the train from Xi'an to Shanghai?
Second class costs ¥652–782.5 one way, first class ¥1039–1258.5, depending on the train (12306).
Can I buy Xi'an–Shanghai train tickets with a foreign passport?
Yes. Tickets are real-name: buy them on China Railway's 12306 website or app (it has an English version) with your passport details, and show the same passport at the station.

Sources

Checked 5 December 2026. Timetables change; check the exact train when you book.

Xi'an to Shanghai by train | WYDin China