Shanghai to Beijing by High-Speed Train
The 1,318 km flagship high-speed rail corridor, linking China's two megacities in 4 hours 18 minutes on the fastest G-trains. Everything a foreign traveler needs for the Shanghai ↔ Beijing leg — which station, how much, how to book, and whether the train beats the flight.
Last updated 2026-04-25
The route at a glance
Shanghai Hongqiao (上海虹桥) to Beijing South (北京南) is the busiest high-speed rail corridor in the world by passenger volume — over 210 million annual riders on this single line. The 1,318-km journey opened in 2011 and standardized the route in its current form in 2017 with the Fuxing (复兴号) CR400AF/BF trainsets that hit a scheduled 350 km/h.
Fastest scheduled service is 4 hours 18 minutes (G1/G2, G5/G6) — this is literally the fastest any 1,300+ km route is covered by scheduled rail anywhere in the world. Typical trains run 4h30m–5h30m with 3–6 intermediate stops; the slowest reach 6 hours.
Should you take the train or fly?
This is the single most common question foreign travelers ask about this route. Here's the honest comparison:
| Train (G1/G5) | Flight (PVG–PEK) | |
|---|---|---|
| In-vehicle time | 4h 18m | 2h 15m |
| Door-to-door (downtown) | ~5h 18m | 5h |
| Price (economy) | ¥626 – ¥695 | ¥750 – ¥1800 |
| Delay exposure | Under 1% over 15 min | ~20% (Beijing weather) |
Flight ~30 min faster door-to-door, but train arrives downtown and can be half the price.
Take the train if: your hotel is downtown (train stations both are), you value predictability, you want to keep your day productive (power outlets at every seat, stable 4G/5G on most of the route), or you're price-sensitive. Fly if: you're connecting directly to an international long-haul, or the cheapest flight you can find beats the train price (unusual but happens for flexible mid-week off-peak flights).
Which Shanghai station
All HSR trains to Beijing leave from Shanghai Hongqiao Railway Station (上海虹桥站 / shàng-hǎi hóng-qiáo zhàn). This is the dominant HSR station — essentially the only practical choice.
- How to get there: Metro Line 2 or Line 10 to Hongqiao Railway Station. From People's Square, ~35 min on Line 2. From Lujiazui, ~40 min.
- Connected to Hongqiao Airport (SHA) — same building, 5 min walk between them. If you're flying into SHA (not PVG), you can walk straight from arrivals to the HSR station.
- Arrival buffer: 30 minutes before departure is enough for most, 45 during Friday/Sunday peaks. The station is huge — budget extra time to find your waiting hall (numbered 1–14, printed on your ticket).
Shanghai Railway Station (上海站, the older downtown station) handles mostly slower overnight trains to Beijing, including the D311/D312 sleeper. Useful if you want a full-night sleeper, but not for high-speed service.
Which Beijing station
All G-trains from Shanghai Hongqiao arrive at Beijing South Railway Station (北京南站 / běi-jīng nán zhàn). Beijing West, Beijing, and Beijing Chaoyang do not serve the Shanghai HSR corridor.
- How to get to downtown: Metro Line 4 (green)runs north from Beijing South into central Beijing. To Tiananmen / Forbidden City: Line 4 to Xuanwumen, transfer Line 2 to Qianmen (~30 min, ¥5). Line 14 also serves the station for east-Beijing destinations.
- Taxi from Beijing South: ¥40–60 to most downtown hotels, 20–40 min depending on traffic. Use Didi (English mode inside the Alipay mini-program) for fixed fares.
- Layout: Beijing South is an elliptical station with two underground levels. After arrival, follow signs for "Metro" (地铁) or "Exit" (出口) — the metro is inside security so you can transfer without re-screening.
Train classes and prices
The Beijing–Shanghai corridor uses dynamic pricing (since 2024), which means exact fare depends on the specific train and time you book. Ranges:
- Second class (二等座) — ¥626 – ¥695 · 5-across seating (3+2), standard for 95% of passengers. Power outlets at every seat. A food trolley comes through every 30–45 minutes.
- First class (一等座) — ¥1035 – ¥1111 · 4-across seating (2+2), noticeably wider with more legroom. Worth it for tall travelers or if you want to work — quieter carriage.
- Business class (商务座) — ¥2158 – ¥2318 · 1+1+1 or 1+2 lie-flat pods, free meal, lounge access at both ends. Roughly 3× 2nd class. A real luxury experience for a 4-hour journey, but hard to justify over flying business (which costs similar and is 2h shorter).
Pricing tip: The lowest 2nd-class fare (~¥626) goes to the slower G-trains (5h+) during off-peak mid-day slots. The fastest 4h18m G1/G5/G9 trains trend toward ¥670–¥695. If saving ¥50 matters more than saving 40 minutes, take the slower train — it's the same seat comfort.
Schedule & frequency
Service runs from 06:18 (first train from Hongqiao) to 21:22 (last train). Same hours in the Beijing-to-Shanghai direction, symmetric. That gives you roughly 51 trains per day in each direction — a departure every 15–25 minutes during peak windows (roughly 7–10 AM and 5–8 PM), stretching to every 30–45 min mid-day.
If you're time-flexible, the golden slots are:
- G1 from Shanghai Hongqiao at 07:00 → Beijing South 11:18 — the flagship, non-stop. The fastest service on the line.
- G5 at 08:00, G9 at 09:00 — same non-stop 4h18m service, good if you want a more humane departure time than 7 AM.
- Evening peak: G13 at 18:00 arrives Beijing ~22:20 — useful if you want a full Shanghai business day + overnight in Beijing.
Booking options
You have three practical paths:
- 12306 English app (official) — cheapest, no service fee. Requires account registration with passport verification (2–12 hours). See the full walkthrough.
- Trip.com — ¥10–30 service fee, foreign cards work reliably, 2-minute checkout, no passport-verification queue. See our Trip.com booking guide.
- Klook — similar to Trip.com, slightly different fee structure. Useful mainly if you already have a Klook account.
Not sure which? See 12306 vs Trip.com — most first-time short-trip visitors pick Trip.com to skip the verification step; long-term visitors go 12306 direct.
Tickets open 15 days before departure. Friday evenings, Sundays, and holidays go to waitlist within hours — book as soon as the window opens.
Affiliate link · we earn a small commission on Trip.com bookings.
What to expect on board
The Fuxing CR400AF/BF trainsets used on this route are the newest in the fleet. Some features worth knowing:
- Power outlets at every seat (universal sockets, 2-pin + USB).
- 4G/5G coverage on ~95% of the route. A few tunnel sections lose signal for a minute or two.
- Food trolley comes through every 30–45 min — instant noodles, sandwiches, drinks, beer. Cash, Alipay, WeChat Pay. Most locals bring their own food; you'll see some elaborate hot meals.
- A dining car (餐车) is in the middle of the train — mostly microwaved meal boxes, ¥35–55. Quality is mediocre; grab snacks at the station instead.
- Toilets at each end of each carriage. Clean, Western + squat options. Toilet paper is usually there but carry tissues just in case.
- Luggage goes on overhead racks or on the end-of-carriage shelves for big pieces. No fee, no weight limit in practice.
Scenery & what to see out the window
Scenic rating: 2/5. The Beijing–Shanghai corridor crosses the flat North China Plain and the Yangtze delta — mostly farms, industrial outskirts, and small cities. Interesting moments:
- Crossing the Yangtze (about 45 min out of Shanghai) on the Nanjing Dashengguan bridge — 9 km, fourth-longest in China.
- Approaching Beijing, the Western Hills appear on the horizon about 40 min before arrival — the classic imperial Beijing landscape.
- Shanghai skyline departure — leaving Hongqiao you'll get a few minutes of Shanghai's sprawl before the train accelerates. Night departures are better for city lights.
Best seats for views: window seats A (west side) or F (east side). For most of the trip either is fine. For the Yangtze crossing specifically, A gets the better bridge view going south, F going north.
After Beijing — where to go next
Common next legs from Beijing South:
- Beijing → Xi'an — 4h10m, the Terracotta Army route. Note: Xi'an services leave from Beijing West, not Beijing South. Take Line 4 one stop west.
- Beijing → Tianjin — 30 min, ¥55. A quick day trip; trains every 10 min.
- Beijing → Harbin — 4h30m. For the Ice Festival in winter; leaves from Beijing Chaoyang station.
Common next legs from Shanghai Hongqiao (if you're doing the reverse):
- Shanghai → Hangzhou — 45 min, ¥73. The ultimate easy day trip.
- Shanghai → Suzhou — 25 min. Garden city, easy half-day.
- Shanghai Maglev — if you're flying into PVG instead of taking this route from Beijing, the 431 km/h maglev is the iconic way into the city.
Frequently asked questions
- How long does the Shanghai to Beijing train take?
- The fastest G-train does Shanghai Hongqiao to Beijing South in 4 hours 18 minutes (non-stop or one short stop). Most trains run 4h30m–5h30m with a handful of intermediate stops. The slowest G-trains take up to 6 hours; these are usually the earliest and latest departures.
- How much is a train ticket from Shanghai to Beijing?
- 2nd class is ¥626–¥695 (~$88–$98) depending on the specific train and time. 1st class is ¥1,035–¥1,111. Business class (lie-flat seats) is ¥2,158–¥2,318. These are dynamic-priced since 2024 — Friday evenings and Sunday afternoons trend toward the high end, off-peak weekday mid-mornings toward the low end.
- How far is Shanghai from Beijing?
- The rail distance is 1,318 km (819 mi). By road it’s ~1,200 km direct. The HSR line follows a slightly longer path through the Yangtze delta and North China Plain.
- Is the Shanghai to Beijing train faster than flying?
- Air time is ~2 hours 15 min vs ~4h20m rail. But door-to-door, the train is roughly tied: PVG/PEK are far from downtown, flights need 90 min airport buffer, and Beijing fog routinely delays flights. For travelers with downtown hotels and flexible schedules, the train is usually the less stressful choice and almost always cheaper.
- How many trains run between Shanghai and Beijing each day?
- About 51 daily in each direction on the main Beijing–Shanghai HSR line. Service runs from roughly 6:18 AM to 9:22 PM first/last departures. Overnight sleeper trains (D31/D32) also exist but they're slower and niche.
- How early do I need to book?
- Tickets open exactly 15 days before departure. For non-holiday weekdays, a day or two ahead is fine. Friday evenings, Sundays, and major Chinese holidays (Spring Festival, Oct 1 Golden Week, May Day) go to waitlist fast — book the moment the 15-day window opens.
Related
- How to book China trains online — the full Trip.com booking flow with screenshots.
- 12306 English app walkthrough — the official-channel path.
- 12306 vs Trip.com — side-by-side for picking your booking platform.
- China HSR network overview — train classes, station codes, and how the full system works.
- Shanghai Maglev Train — the 431 km/h airport shuttle, a separate thing from the HSR.
- The interactive China HSR map — plan onward routes from either end.