Skip to content
China for Travelers

Route guide · High-speed rail

Shanghai to Beijing by High-Speed Train (2026)

1,318 km, about 4h 18m on the fastest G-trains, 51+ a day — China’s flagship high-speed line, linking the two megacities downtown to downtown. The real question: train or plane?

China for Travelers EditorialUpdated Published Rail data refreshed monthly

FromShanghai 上海
4h 18m1,318 km · G fastest
ToBeijing 北京Beijing South 北京南站 · Metro 4 / 14
2nd class
¥626 – ¥695
~$88–98
Frequency
51/day
06:18 – 21:22
Train types
G
G = fastest
Overnight
Sleeper too
D-train option

Shanghai–Beijing G-trains arrive at Beijing South 北京南站 — central, on Metro 4 & 14. At 4½–6 hours the high-speed train beats flying city-centre to city-centre.

Check live ShanghaiBeijing trains via Trip.com · English checkout · foreign cards
Editorially reviewedRail data refreshed monthlyAmap routing checked Jun 2026Affiliate links disclosed

The route at a glance

Shanghai Hongqiao to Beijing South is the busiest high-speed rail corridor in the world by passenger volume — the 1,318-km flagship of China’s network, run by Fuxing (复兴号) trainsets at a scheduled 350 km/h. The fastest service is 4h 18m (one short stop or non-stop); most trains run 4h 18m – 6h with three to six intermediate stops, and there is about 51 a day each way from 06:18 – 21:22. Arriving from further afield first? See the Shanghai Hongqiao station guide.

Map of the Beijing South–Shanghai Hongqiao high-speed rail corridor: 1,318 km from Beijing South Railway Station to Shanghai Hongqiao Railway Station, 4h 18m on the fastest G-train.
The 1,318 km Beijing–Shanghai high-speed corridor — about 4h 18m on the fastest G-train.

Train vs plane — and Beijing South

This is the one decision worth making before you book. A flight is shorter in the air, but on a downtown-to-downtown trip the high-speed train usually wins overall — and it lands you on the metro, not 30 km out at an airport:

Take the trainusually wins

~4h 18m city-centre to city-centre, no 90-minute airport buffer, power at every seat, and under 1% chance of a 15-minute delay. Cheaper too. The default for downtown hotels.

Fly insteadsometimes

~2h 15m in the air. Worth it only if you’re connecting straight to an international long-haul, or a flexible off-peak fare genuinely undercuts the train. Beijing weather delays ~20% of flights.

All Shanghai–Beijing G-trains arrive at Beijing South Railway Station (北京南站) — not Beijing West, Beijing, or Chaoyang, which serve other lines. Beijing South sits just south of the core on Metro Line 4 (north into the centre — Forbidden City, Qianmen) and Line 14 (east-Beijing — Sanlitun, the CBD), with the metro inside the security perimeter so you transfer without re-screening. Full layout and exits are in the Beijing South station guide.

Classes and price

The corridor has used dynamic pricing since 2024, so the exact fare depends on the specific train and time — but the bands are stable:

ClassPriceWorth it?
Second classmost buy¥626 – ¥6953+2 seating, power at every seat — what 95% of passengers buy.
First class¥1035 – ¥11112+2 seating, wider and quieter — worth it for tall travelers or working the 4+ hours.
Business class¥2158 – ¥2318Lie-flat pods, meal, lounge — roughly 3× 2nd class; hard to justify over a business-class flight.

Pricing tip: the lowest second-class fares go to the slower 6h G-trains in off-peak mid-day slots; the fastest 4h 18m departures trend toward the top of the band. If saving a little matters more than saving 40 minutes, take the slower train — the seat is identical.

What's waiting in Beijing

Unlike the short Shanghai day-trips, Beijing is an overnight-plus destination — plan at least two or three nights. The headline sights spread across the city: the Forbidden City and Tiananmen at the centre, the Great Wall a half-day trip out to Badaling or Mutianyu, the hutong alleys around the Drum Tower, and the Summer Palace in the northwest. For a full plan see the Beijing city guide.

The Great Wall of China snaking along forested ridgelines outside Beijing — the headline day trip from the city.
The Great Wall outside Beijing — the city is an overnight-plus destination, not a day trip from Shanghai.

How to book with a foreign passport

12306 English app — the official China Railway channel: face-value fares, no booking fee. The trade-off is hassle — passport registration must be approved before you can buy (often slow), and customer service is Chinese-first and limited if a booking goes wrong.

Trip.com ↗ — the same China Railway seats, booked in English with a foreign Visa or Mastercard, no verification wait and 24/7 multilingual support. Prices track 12306, and with new-customer promotions Trip often comes out level or cheaper. As China’s largest OTA you can also add hotels, attraction tickets and tours to the same trip. See the booking walkthrough.

Real-name rule — the name and passport number on the ticket must match what you present; e-tickets are scanned at the gate, no paper pickup needed. Tickets open 15 days ahead — book the moment the window opens for Friday evenings, Sundays and Chinese holidays.

Book on Trip.comNASDAQ: TCOM

The international arm of Ctrip — one of the few platforms selling real China Railway tickets in English, to a foreign passport and card. (Is it legit? — 12306 vs Trip.com )

Search ShanghaiBeijing
Real 12306 seat inventory, not a reseller markup English checkout · passport real-name Payment stays on Trip.com

Booking through our Trip.com links costs you nothing extra and helps fund our independent research — we earn a small commission. How we’re funded.

Arrived at Beijing South — getting to your hotel

Beijing South 北京南站 sits just south of the central core, so even a downtown hotel is a short onward metro or taxi leg. The metro is inside the station’s security perimeter — transfer without re-screening — and the DiDi pickup zone is on the underground B1 level (look for the 网约车 signs). Times below are for the three areas foreign visitors most often base in. Picking an area first? See where to stay in Beijing.

City areaMetro / BusTaxi / DiDi
Wangfujing 王府井 (downtown, by the Forbidden City)Metro Line 14 → Yongdingmenwai, change Line 8 → Wangfujing (王府井). ~40 min, ¥4.¥25–40, ~25–35 min (7.7 km)
Qianmen / Dashilan 前门·大栅栏 (old town)Metro Line 8 (via Yongdingmenwai) → Qianmen (前门), 5-min walk. ~36 min, ¥3.¥15–25, ~20 min (6.3 km)
Sanlitun 三里屯 (embassy / nightlife)Metro Line 14 → Shilihe, change Line 17 → Gongti (工人体育场). ~50 min, ¥6.¥40–55, ~40 min (15.0 km)

Transit times and driving distances via Amap (高德地图) routing, checked 2026-06-14. Beijing South is central on Metro 4 & 14. Taxi ranges reflect off-peak meter fares; surge during weekday rush hours.

Frequently asked questions

How do I get from Shanghai to Beijing?

By high-speed train or by air. G-trains run Shanghai Hongqiao to Beijing South about 51 times a day, taking ~4h 18m, from ¥626 in second class (book on the official 12306 app or on Trip.com in English). Flights are ~2h 15m in the air but roughly tie door-to-door once airports are added.

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.

Verification scope

Route data — distance, journey time, fare bands and daily frequencies — is sampled from China’s national rail system and refreshed monthly. Beijing metro lines and walking times are from Amap (高德地图) routing, checked 2026-06-14.

Confirm before booking: exact schedules and fares vary by train and season under dynamic pricing — and all Shanghai–Beijing high-speed trains use Beijing South (北京南), not Beijing West or Beijing station.

Once the train gets you to Beijing

The corridor is the easy part — here is what to do with your days at the other end.