Skip to content
China for Travelers

Route guide · High-speed rail

Shanghai to Xi'an by High-Speed Train (2026)

1,509 km from Shanghai to Xi'an — about 6h on the fastest G-train, with around 28 departures a day.

China for Travelers EditorialUpdated Rail data refreshed monthly

FromShanghai 上海Shanghai Hongqiao Railway Station
6h1,509 km · G fastest
ToXi'an 西安Xi'an North Railway Station
2nd class
¥233 – ¥724
what everyone buys
Frequency
28/day
06:09–18:19
Train types
G
G = fastest
Flight
2h 30m
flight wins

Flight wins vs flying — door-to-door about 7h by train vs 5h 30m flying. Flight saves ~2.5 hours — worth it unless you love train travel.

Check live ShanghaiXi'an trains via Trip.com · English checkout · foreign cards
Editorially reviewedRail data refreshed monthlyCurated 25-city datasetAffiliate links disclosed

The route at a glance

The Shanghai to Xi'an corridor is 1,509 km of G-class high-speed rail. Trains run from Shanghai Hongqiao Railway Station to Xi'an North Railway Station, with the fastest service taking 6h and most in the 6h – 8h range. Second-class seats start at ¥233 – ¥724. Flight saves ~2.5 hours — worth it unless you love train travel.

Map of the Shanghai Hongqiao–Xi'an North high-speed rail corridor: 1,509 km from Shanghai Hongqiao Railway Station to Xi'an North Railway Station, 6h on the fastest G-train.
The 1,509 km Shanghai Hongqiao → Xi'an North corridor — 6h on the fastest G-train.

Train vs flight

Both stations are in town, so the train is door-to-door; the flight adds airport transfers and security each end. Here is the trade on this corridor:

High-speed trainFlight
Fastest6h2h 30m in the air
Door-to-door~7h~5h 30m
Price¥233 – ¥724¥700 – ¥1600

Editor: Flight saves ~2.5 hours — worth it unless you love train travel.

Classes and price

Fares are dynamically priced — peak departures trend to the high end of each band, the cheapest seats go to off-peak mid-week trains. The seat is identical across trains in the same class.

ClassPriceWhat you get
Second classmost buy¥233 – ¥7243+2 seating, a tray table and power at every seat.
First class¥1094 – ¥11812+2 seating, wider and quieter — worth it on a longer ride.
Business class¥2159 – ¥2319Lie-flat / deep-recline pods at the front of the train.

Stations on this route

  • Departing from
    Shanghai Hongqiao Railway Station
    Shanghai · G/D/C-class · ~35 min to city centre

    Co-located with Hongqiao Airport. Huge; budget 20 min from metro to platform.

  • Arriving at
    Xi'an North Railway Station
    Xi'an · G/D-class · ~30 min to city centre

    Asia's largest rail station building. Metro Line 2 takes 30 min to the Bell Tower.

How to book with a foreign passport

12306 English app — the official China Railway channel: face-value fares, no booking fee. The trade-off is hassle — passport registration must be approved before you can buy (often slow), and customer service is Chinese-first and limited if a booking goes wrong.

Trip.com ↗ — the same China Railway seats, booked in English with a foreign Visa or Mastercard, no verification wait and 24/7 multilingual support. Prices track 12306, and with new-customer promotions Trip often comes out level or cheaper. As China’s largest OTA you can also add hotels, attraction tickets and tours to the same trip. See the booking walkthrough.

Still deciding? Read the full 12306 vs Trip.com comparison. Tickets open exactly 15 days before departure, and the good daytime slots sell first.

Book on Trip.comNASDAQ: TCOM

One of the few platforms selling real China Railway tickets in English, to a foreign passport and card. (Is it legit? — 12306 vs Trip.com.)

Search ShanghaiXi'an
Real 12306 seat inventory English checkout · passport real-name Payment stays on Trip.com

Booking through our Trip.com links costs you nothing extra and helps fund our independent research — we earn a small commission. How we’re funded.

Deep guide available. We have a full editorial write-up for this route — when to go, which class to pick, station tips, things to do at both ends. Read the ShanghaiXi'an guide →

Frequently asked questions

How long is the Shanghai to Xi'an train?

The fastest high-speed train covers the 1,509 km in 6h, with most services in the 6h–8h range. Trains are G-class.

How much is a Shanghai to Xi'an train ticket?

Second class is ¥233 – ¥724, first class ¥1094 – ¥1181, business class ¥2159 – ¥2319. Fares are dynamically priced — peak departures trend to the high end of each band.

How many trains run from Shanghai to Xi'an each day?

About 28 trains a day each way, with the first around 06:09 and the last around 18:19.

Is the train or the flight better for Shanghai to Xi'an?

Flight saves ~2.5 hours — worth it unless you love train travel. Door-to-door the train is ~7h vs ~5h 30m flying.

How do I book Shanghai to Xi'an tickets with a foreign passport?

Two ways: the official 12306 English app (face price, passport-bound account, no booking fee) or Trip.com (English UI, foreign cards accepted, 24/7 multilingual support; new-customer promos often bring the price level with or below 12306). Tickets open exactly 15 days before departure.

Verification scope

Route data — distance, journey time, fare bands and daily frequencies — is sampled from China’s national rail system and refreshed monthly. This is an auto-generated route record in our curated 25-city dataset.

Confirm before booking: exact schedules and fares vary by train and season under dynamic pricing. For the hand-written editorial guide, see the ShanghaiXi'an guide.