Xi'an to Shanghai by High-Speed Train
Fastest 6h · from ¥233 second class · 28 daily trains · Flight wins vs flight
By China for Travelers · Published 2026-04-25 · Updated 2026-05-30 · Verified against 12306 on 2026-04-30

The Xi'an to Shanghai corridor is 1,509 km of G-class high-speed rail. Trains run from Xi'an North Railway Station to Shanghai Hongqiao Railway Station, with the fastest service taking 6h and the longest about 8h. Second-class seats start at ¥233 – ¥724. Flight saves ~2.5 hours — worth it unless you love train travel.
Quick facts
- Distance
- 1,509 km
- Train types
- G
- Duration
- 6h – 8htypical mainline services
- Daily departures
- 28 trains
- Service window
- 06:09 → 18:19
- Second class
- ¥233 – ¥724
- First class
- ¥1094 – ¥1181
- Business class
- ¥2159 – ¥2319
- Scenery
- ★★★☆☆our editorial rating
Train vs flight
| Metric | Train | Flight |
|---|---|---|
| Fastest | 6h | 2h 30m |
| Door-to-door | ~7h | 5h 30m |
| Price | ¥233 – ¥724 | ¥700 – ¥1600 |
Editor: Flight saves ~2.5 hours — worth it unless you love train travel.
Stations
- Departing fromXi'an North Railway StationXi'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.
- Arriving atShanghai Hongqiao Railway StationShanghai · G/D/C-class · ~35 min to city centre
Co-located with Hongqiao Airport. Huge; budget 20 min from metro to platform.
How to book
Two paths for foreign travelers — either the official Chinese system at face price, or a Western OTA for an English-first checkout with a small markup.
- 12306 (official): face price, no booking fee. Requires a passport-bound account. Step-by-step 12306 walkthrough →
- Trip.com: English UI, foreign cards work, small markup. Best when 12306 frustrates you. Search Xi'an → Shanghai on Trip.com →
- Compare the two: read 12306 vs Trip.com →
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 Xi'an ↔ Shanghai guide →
Frequently asked questions
- How long is the Xi'an to Shanghai 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 Xi'an to Shanghai 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 Xi'an to Shanghai 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 Xi'an to Shanghai?
- 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 Xi'an to Shanghai 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, small markup). Tickets open exactly 15 days before departure.
Related routes
Other trips from Xi'an
- Xi'an → Luoyang · 1h 30m
- Xi'an → Lanzhou · 3h
- Xi'an → Chengdu · 3h
- Xi'an → Chongqing · 4h 40m
Other trips to Shanghai
- Beijing → Shanghai · 4h 18m
Or explore the full interactive HSR map with all 24 cities and 36 corridors.