Xi'an to Shanghai Train: Bullet Rail Times, Fares & Station Guide
Around 21 daily high-speed trains connect Xi'an North and Shanghai Hongqiao in 5h 50m to 8h 40m (CNY ¥652–766.5), with overnight Z/K sleepers around ¥310.5. Compare bullet rail vs. flying and navigate both cities' stations.
· By Yunjie

About 21 daily high-speed trains connect Xi'an to Shanghai in 5 hours 50 minutes to 8 hours 40 minutes, with Second Class fares ranging from CNY ¥652 to ¥766.5. Nearly all bullet trains run from Xi'an North Railway Station (西安北站) to Shanghai Hongqiao Railway Station (上海虹桥站), while slower Z and K overnight sleepers depart central Xi'an Railway Station (西安站) and take 15 to 21 hours with Hard Sleeper bunks around ¥310.5.
Planning an east–west China route?: Pair this train guide with our Xi'an Destination Overview and Shanghai Destination Overview to match your arrival station with the best neighborhoods and metro lines.
Linking the Terracotta Warriors with the Bund is one of China's classic long-distance hops. Because Xi'an's airport sits far outside the city and Shanghai's Pudong hub adds another long transfer, the fastest daytime bullet trains often compete closely with flying on door-to-door convenience. Here is how to pick the right train, navigate both cities' stations, and avoid common transit traps.
High-Speed Train vs. Overnight Sleeper vs. Flight
Choosing between rail and air comes down to whether you value a predictable six-hour daytime ride or want to shave an hour off total transit time with a flight.
| Option | Transit Time | Typical Fare | Departure / Arrival Hubs | Best For |
|---|---|---|---|---|
| Fast High-Speed (G) | 5h 50m – 7h 00m | CNY ¥652–766.5 (2nd Class) | Xi'an North → Shanghai Hongqiao | Most travelers; city-to-city reliability |
| Multi-Stop Bullet (G/D) | 7h 00m – 8h 40m | ¥652–766.5 (2nd Class) | Xi'an North → Shanghai Hongqiao / Shanghai | Flexible timing or intermediate stops |
| Overnight Sleeper (Z/K) | 15h – 21h | ~¥310.5 (Hard Sleeper) | Xi'an Railway Station → Shanghai / Songjiang | Tight budgets saving one hotel night |
| Direct Flight (XIY → SHA/PVG) | ~2h 15m in air (~5h door-to-door) | Varies seasonally | Xianyang Airport → Hongqiao or Pudong | Travelers flying into SHA or chasing flight deals |
Check live departures and exact seat availability on the official China Railway 12306 English website.

When the Bullet Train Beats Flying
As someone who travels across China by rail from Chengdu, I always check airport distance first. Xi'an Xianyang International Airport (西安咸阳国际机场, XIY) sits 40 km northwest of downtown: the airport bus takes about an hour (¥25), taxis to the Bell Tower (钟楼) cost around ¥150, and Metro Line 14 only reaches Xi'an North where you must transfer.
In Shanghai, Shanghai Hongqiao International Airport (上海虹桥国际机场, SHA) sits 12 km from downtown, whereas Shanghai Pudong International Airport (上海浦东国际机场, PVG) is 40 km southeast. Factoring in check-in, security, and weather delays, a 5 hours 50 minutes G-train straight into Hongqiao is far less tiring than flying via Pudong. If you fly, check our Shanghai Pudong vs. Hongqiao Airport guide.
Picking Your Seat Class (or Sleeper Bunk)
On a six- to seven-hour daytime ride, seat comfort matters:
- Second Class (二等座,
¥652–766.5): 3+2 layout with power sockets and solid legroom; pickA/F(window) orC/D(aisle). - First Class (一等座): Wider 2+2 seats in quieter cars—worth the upgrade for tall travelers or laptop work.
- Business Class (商务座): Lie-flat 2+1 pods with lounge access and meals, priced around double First Class.
- Overnight Z/K Sleepers (
~¥310.5Hard Sleeper): 15 to 21 hours in open six-berth Hard Sleeper bays or four-berth Soft Sleeper cabins. Read our China sleeper train guide and China train types guide before booking.
Xi'an Departure Stations: North vs. Central
Xi'an has three passenger stations, so always verify the Chinese station name on your booking.
- Xi'an North Railway Station (西安北站) — All G/D bullet trains: 15 km north of downtown on Metro Line 2 (direct from Bell Tower and Xiaozhai / 小寨), Line 4, and Line 14 (to Xianyang Airport). Allow 35 to 45 minutes from Bell Tower by metro.
- Xi'an Railway Station (西安站) — Z/K sleepers: Outside the northern Ming City Wall on Jiefang Road; does not handle Shanghai bullet trains.
- Xi'an South Railway Station (西安南站): Remote with minimal service; skip it.
Practical Xi'an Station Tips
- Metro water checks: Xi'an Metro security asks riders to pull water bottles out of bags for separate scanning.
- Walk past touts: Outside stations, ignore anyone offering "cheap" rides or hotels—say
bu yao(不要) and head to the official taxi rank or metro. - Licensed cabs: Official plates start with
陕AT,陕AU, or陕AD(electric), starting around¥9for 3 km (¥10after11:00 PM). Avoid hailing street cabs between3:00 PMand5:00 PMduring shift changes.

Arriving in Shanghai: Hongqiao vs. Other Stations
Most Xi'an–Shanghai high-speed trains terminate at Shanghai Hongqiao Railway Station (上海虹桥站), a massive hub integrated with Hongqiao Airport Terminal 2. Conventional Z/K trains typically arrive at Shanghai Railway Station (上海站) or Shanghai Songjiang Railway Station (上海松江站), which took over most slow trains formerly routed through Shanghai South Railway Station (上海南站).
Getting Downtown from Shanghai Hongqiao
- Metro Line 2: The fastest direct line into People's Square (人民广场), East Nanjing Road (南京东路), and Lujiazui (陆家嘴) across the Huangpu River.
- Metro Line 10: Direct to Xintiandi (新天地), Yu Garden (豫园), and Hongqiao Airport Terminal 1.
- Metro Line 17: Heads west toward Zhujiajiao Water Town (朱家角).
- Airport Link Line: Connects Hongqiao directly to Shanghai Pudong International Airport in roughly 40 minutes if you are catching an international flight.
- Taxi or Didi: About 12 km to downtown (roughly 20 minutes in light traffic). If your train arrives after
7:00 PM, expect taxi queues to add up to 30 minutes—metro is usually faster.
Shanghai Metro Payment for Foreign Visitors
Shanghai has one of the easiest metro systems in China for international visitors. You can tap a contactless foreign Visa, Mastercard, American Express, or JCB card—or the same card loaded in Apple Pay/mobile wallet—directly at the turnstiles on every metro line. Single rides cost ¥3–10, and a 24-hour day pass costs ¥18. Note that most lines stop running around 10:30 PM (with later Friday and Saturday service on select lines). For full route tips, see our Shanghai Metro guide and Alipay and WeChat Pay setup guide.
If your slow train arrives at Shanghai Railway Station (上海站), note that transferring between Metro Line 1 and Lines 3/4 requires exiting the fare gates and walking to a separate concourse.
Booking Tickets, Boarding & Onboard Essentials
China Railway releases tickets 15 days in advance. On the Xi'an–Shanghai corridor, morning and mid-day fastest G-trains (under 6.5 hours) sell out first, especially on Fridays, Sundays, and Chinese public holidays.
- Book with your passport: Use the official 12306 English website/app or Trip.com. Read our step-by-step China train ticket booking guide before opening day.
- Arrive early: Xi'an North is huge, and gates typically close 3 to 5 minutes before departure. Plan to arrive 45 to 60 minutes ahead—see our how early to arrive for China trains guide.
- Use the manual passport lane if needed: No paper ticket is required; scan your passport at the e-ticket gate or step into the staffed manual lane right beside it.
- Luggage and food: Carry-on luggage is rarely weighed on domestic trains, though racks fill up quickly—pack within standard limits outlined in our China train luggage rules. Every car has free boiling water, and you can buy snacks onboard or order delivery via 12306 (see our China bullet train food guide).
If you are still building your itinerary on either end, pair this route with our 2-day Xi'an itinerary and 3-day Shanghai itinerary, or browse our full China transport hub.
Frequently Asked Questions
How long is the high-speed train from Xi'an to Shanghai?
Direct high-speed trains from Xi'an North Railway Station (西安北站) to Shanghai Hongqiao Railway Station (上海虹桥站) take between 5 hours 50 minutes and 8 hours 40 minutes, depending on how many intermediate stops the train makes. Aim for trains under 6.5 hours for the smoothest daytime trip.
How much is a Xi'an to Shanghai train ticket?
High-speed Second Class tickets cost between CNY ¥652 and ¥766.5, depending on the specific train speed and schedule. If you take a slower conventional overnight Z or K train instead, a Hard Sleeper bunk costs around ¥310.5, though the journey takes 15 to 21 hours.
Which stations do Xi'an to Shanghai trains use?
Almost all high-speed G and D trains depart from Xi'an North Railway Station (西安北站) and arrive at Shanghai Hongqiao Railway Station (上海虹桥站). Conventional overnight Z and K trains depart from central Xi'an Railway Station (西安站) and arrive at Shanghai Railway Station (上海站) or Shanghai Songjiang Railway Station (上海松江站).
Is it better to fly or take the train from Xi'an to Shanghai?
If you can book one of the faster ~6-hour G-trains, the bullet train is usually less stressful than flying because Xi'an Xianyang Airport is 40 km from downtown and Shanghai Pudong Airport is another 40 km out. Flying makes more sense only if you find a cheap fare landing at Shanghai Hongqiao Airport (SHA) and prefer saving about an hour door-to-door.
Last checked: December 1, 2026.