Shanghai to Beijing by Train: Which Service to Book
The fastest Shanghai to Beijing train is a high-speed G service that covers the 1,318 km in about four and a half hours; overnight sleeper trains do the same route in 12 to 21.5 hours for less money. Which one you book comes down to whether you value the daytime hours or the fare. If you're threading both cities into one itinerary, the choice also shapes how a travel day fits around your hotel checkouts and sightseeing.
The line itself is worth knowing before you pick a service. The Beijing–Shanghai high-speed railway opened on June 30, 2011, and carried over 210 million passengers in 2019, making it one of the busiest high-speed routes anywhere (Wikipedia). Since 350 km/h running was restored on September 21, 2017, the quickest scheduled trains average 291.9 km/h across the journey (Wikipedia). That speed is the whole reason the train competes with flying at all.
G trains: the fastest way between the two cities
The fastest G train runs Shanghai to Beijing in roughly 4 hours 24 minutes at a top speed of 350 km/h. Most G services land between 4.5 and 6.5 hours depending on how many stops they make. For a same-day city-to-city move, this is the service to book.

| Service type | Journey time | From (approx.) | Best for |
|---|---|---|---|
| G train (high-speed) | ~4h24m–6.5h | 2nd class, about CNY 550–660 | Fastest daytime transfer |
| D sleeper (overnight) | 12–21.5h | Hard sleeper, CNY 508–555 | Arriving rested, saving a hotel night |
| Z/T/K sleeper (overnight) | 12–21.5h | Hard sleeper, CNY 304.5–325.5 | Lowest fare, flexible on time |
Fares float by service and date; check the exact price when you book.
The gap between the fastest G train and a slower one can be two hours, so the specific train number matters more than the class. When you search a timetable, sort by duration first, then pick a departure that fits your day.
Overnight sleepers trade time for a saved hotel night
Overnight trains take 12 to 21.5 hours and cost far less per seat than a business-class high-speed ticket. A hard sleeper on a normal Z, T, or K train runs CNY 304.5 to 325.5, while a hard sleeper on a D-series overnight train is CNY 508 to 555. The appeal isn't just the fare. Leaving one city at night and waking up in the other removes a hotel night and hands you a full day at your destination.

The catch is comfort and rigidity. A sleeper berth beats sitting upright for hours, but you give up the flexibility of a four-hour daytime ride, and the slowest overnight services stretch past 20 hours. Book a sleeper when the saved night and lower fare outweigh losing an evening of movement. Otherwise the G train wins on nearly every count.
Second class vs business class on high-speed trains
Second class is the cheapest high-speed option and what most travellers book. Expect roughly CNY 550 to 660 on this route: the Beijing-Shanghai line has used floating fares since 2020, and an adjustment from 26 May 2026 raised the published ceiling on the fastest services to around CNY 794, so the exact number depends on the train and the date. First class is priced at about 1.6 times second class on this line and business class at about 3.5 times, which is the clearest way to think about the gap.
For a four-hour daytime trip, second class does the job and leaves budget for your actual trip. Business class earns its premium mainly on the longest scheduled runs or when you want to work or sleep in near-private space. If you're pricing a full route through several cities as part of your china tour packages, keeping the intercity legs in second class is usually the sensible call.
Book 15 days out, and earlier for peak dates
Tickets go on sale 15 days before departure, and the fastest trains tend to sell out, so reserve as soon as your dates are fixed. This matters most around the two big travel crunches: National Day's Golden Week in early October and Spring Festival in winter. During those windows, demand on the Beijing–Shanghai corridor spikes and the quickest departures disappear first.
If your travel falls near either holiday, treat the 15-day mark as a hard deadline rather than a suggestion. Outside peak periods, the route runs dozens of daily departures, so you have room to pick a convenient time even booking a few days ahead.
Shanghai Hongqiao is your departure station
High-speed G trains on this route leave from Shanghai Hongqiao Station and arrive at Beijing South Railway Station. Hongqiao is a large modern hub attached to Shanghai's Hongqiao Airport and its own metro lines, which makes reaching the platforms straightforward. Give yourself time inside the station: you'll pass through security and a ticket gate, and foreign passengers scan their passports rather than a national ID card.
Beijing South connects directly to the city metro, so your arrival transfer is quick once you're off the platform. Confirm the departure station printed on your specific ticket when you book, since not every train on paper uses the same terminal.
Luggage rules before you pack
There's no weigh-in like at an airport, but there is a published limit. China Railway allows each adult 20 kg free of charge and each child 10 kg, and on high-speed services the three dimensions of any single item have to add up to no more than 130 cm, tighter than the 160 cm allowed on conventional trains. Folding wheelchairs are carried free and do not count against the allowance. In practice nobody measures an ordinary suitcase, but you carry your own bags to your seat and lift them onto an overhead rack or wedge them behind the last row, so a case you can handle yourself matters more than the stated figure.
FAQ
How long is a bullet train from Shanghai to Beijing?
The fastest G train takes about 4 hours 24 minutes over the 1,318 km line, reaching 350 km/h. Slower high-speed departures run 4.5 to 6.5 hours depending on stops.
Is it better to fly or take the train from Shanghai to Beijing?
The train is usually better. A flight is about 2.5 hours in the air, but airport check-in and city transfers eat that lead, while a station-to-station G train runs 4.5 to 6.5 hours with quicker gates.
How much does a bullet train ticket from Shanghai to Beijing cost?
Second class runs roughly CNY 550 to 660 depending on the service and the date, with peak departures higher since the May 2026 fare adjustment. First class is about 1.6 times that and business class about 3.5 times.
How much is a bullet train from Beijing to Shanghai?
The reverse direction uses the same G trains and the same fare structure, so expect second class in the same CNY 550 to 660 band and the same 15-day booking window.
Once you've settled on a service, lock in the specific train number the moment your dates are set, sorting by journey time so you catch the genuine four-and-a-half-hour departures rather than a slower one at the same price. If pairing Shanghai and Beijing is part of a longer route, mapping the rail legs against your city days first makes the rest of the planning fall into place, and Eastbound and Beyond can help shape those days once your transport is booked.
Related Articles
- The First-Timer's China Itinerary: 5, 8-9, or 14 Days: where the rail leg fits in a 5, 8 or 14 day trip.
- Things to Do in Shanghai: Three Plans for Three Kinds of Trips: what to do with the Shanghai end.
- How to Use Alipay in China as a Foreign Tourist: the payment set-up 12306 expects.
- Map of the Great Wall: Which Section Should You Visit?: the Beijing day most people add on arrival.