Xian to Shanghai Train
3 km · 5h 50min · 35+ trains daily · from $33
About This Route
The Xian–Shanghai line is one of the busiest rail corridors connecting these two cities. With 35+ trains running daily, you'll rarely have trouble finding a seat — though booking a day or two ahead is still a good idea during holidays.
Which Train Should You Take?
Most travelers pick a G-train (high-speed, up to 350 km/h). They're comfortable, punctual, and the stations are modern. If you're on a budget, D-trains are slightly slower but cheaper. For overnight journeys, Z-trains have sleeper berths — you save a hotel night.
Seat Classes
High-speed trains offer second class (5 seats per row, perfectly fine for most journeys), first class (4 seats per row, more legroom), and business class (fully reclining, premium price). For this route, second class is what most people book — it's clean, quiet, and has power outlets. Prices start from $33.
Tips for This Route
- Book 3–5 days ahead during Chinese holidays (Spring Festival, National Day, Dragon Boat).
- Xian may have multiple stations — make sure you go to the right one. The ticket shows the exact station name.
- Arrive 30 minutes before departure. Security + ticket check takes time.
- Bring your passport — you'll need it to enter the station and board.
- The fastest train takes about 5h 50min.
Xian to Shanghai High-Speed Trains
There are 37 daily trains between Xian and Shanghai. The fastest high-speed train (D218) departs at 00:53 and takes 14h 57min.
| Train | Departure | Arrival | Duration |
|---|---|---|---|
| D218 | 00:53 | 15:50 | 14h 57min |
| G1914 | 06:20 | 13:22 | 7h 2min |
| G3162 | 08:12 | 16:32 | 8h 20min |
| G3154 | 08:38 | 17:06 | 8h 28min |
| G92 | 08:51 | 14:43 | 5h 52min |
| G3298 | 09:18 | 17:38 | 8h 20min |
| G1918 | 09:29 | 16:43 | 7h 14min |
| G3172 | 10:28 | 19:14 | 8h 46min |
Schedules are for reference only. Search real-time availability →
Regular Trains
Slower but cheaper options including K-trains and T-trains with sleeper berths available for overnight travel.
| Train | Departure | Arrival | Duration |
|---|---|---|---|
| K2188 | 08:36 | 05:33 | 20h 57min |
| K362 | 10:17 | 05:22 | 19h 5min |
| K558 | 17:07 | 14:12 | 21h 5min |
| T118 | 19:55 | 13:26 | 17h 31min |
| Z166 | 20:53 | 12:03 | 15h 10min |
| Z378 | 21:03 | 12:09 | 15h 6min |
Want to check tomorrow's availability and exact prices?
Search Real-Time Schedules →Ticket Prices (USD)
Prices vary by train type and seat class. Second class on high-speed trains offers the best value for most travelers.
Prices are approximate and may vary by date and availability. Last updated: 2026-05-14.
Ready to Book?
Search real-time train schedules and book your Xian to Shanghai tickets now.
Search Trains →