Skip to content
China for Travelers

Route guide · High-speed rail

Beijing to Shanghai 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

FromBeijing 北京
4h 18m1,318 km · G fastest
ToShanghai 上海
2nd class
¥626 – ¥695
~$88–98
Frequency
51/day
06:18 – 21:22
Train types
G
G = fastest
Overnight
Sleeper EMU
~12h · berths

Most Beijing–Shanghai G-trains arrive at Shanghai Hongqiao 上海虹桥站 — on Metro 2, 10 & 17, with direct trains into the centre. At 4½–6 hours the high-speed train beats flying city-centre to city-centre.

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

The route at a glance

Beijing South to Shanghai Hongqiao 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. Heading on to the station from elsewhere in Beijing first? See the Beijing South 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.

Which station — at both ends

Beijing and Shanghai each have several rail stations, so the first thing to check when you book is which one your train actually uses — it changes how far you travel at each end.

Leaving Beijing

Nearly all trains leave Beijing South (北京南站) — the line’s dedicated Beijing terminus, not Beijing West or Chaoyang, which serve other lines. It sits just south of the core on Metro Line 4 and Line 14, with the metro inside the security perimeter. It is one of the country’s busiest stations, so allow 30–40 minutes from the metro to your platform at peak. Layout and exits in the Beijing South station guide.

Arriving in Shanghaitwo options

Most trains arrive at Shanghai Hongqiao (上海虹桥), the giant hub in the western suburbs on Metro 2, 10 & 17 — all running direct into the centre, no transfer. A smaller share — fewer than a dozen a day — terminate at the more central Shanghai Station (上海站) on Metro 1, 3 & 4, near the Bund and People’s Square. If you can pick a Shanghai Station arrival and you are staying central, it saves the ride in from Hongqiao; otherwise Hongqiao’s frequent direct metro is fine. Layout and exits in the Hongqiao station guide.

Train vs flight — the honest comparison

This is the one decision worth making before you book. A flight is much shorter in the air, but on a downtown-to-downtown trip that lead shrinks to almost nothing — and the train is cheaper and far more reliable. Here is the trade laid out plainly:

High-speed trainFlight
Journey time4h 18m fastest (4h 18m – 6h)~2h15m in the air
Price (economy)¥626 – ¥695¥750 – ¥1,800 + ¥50–250 tax/fuel
Door-to-door (real)~6–6.5h — both ends on the metro, central stations, ~15-min buffer.~6.5–7.5h — 2h check-in + the runs out to Daxing/Pudong + bag claim.
ReliabilityUnder 1% see a 15-minute delay; power at every seat; you can walk around.Beijing weather and air-traffic control delay roughly 1 in 5 flights.
Which should you take?
Take the train
the default — it ties flying door-to-door, costs roughly half, lands you in the centre, and almost never runs late.
Fly
only if you are connecting straight to an international long-haul, or a flexible off-peak fare genuinely undercuts the train.
Take the sleeper
if you would rather travel overnight — the sleeper EMU (动卧) saves a hotel night and a day of travel.

The gap is smaller than it looks. The flight is ~2h15m in the air, but door-to-door it is closer to 6.5–7.5 hours: a 2-hour check-in (give yourself the full two hours — China airports are big and the process is unfamiliar), the long run out to an airport (Beijing Daxing sits ~50 km south of town, Shanghai Pudong ~45 km east), plus bag claim and a metro-or-taxi at each end. Against the train’s ~6–6.5 hours centre-to-centre — Beijing South and Hongqiao are both on the metro — it is effectively a wash on time, and the train wins on price and on not being delayed.

Or sleep through it. Alongside the daytime G-trains, an overnight sleeper EMU (动卧) leaves roughly 20:30–21:30 and arrives 07:30–09:30 — about 12 hours, saving both a hotel night and a day of travel. A berth in the open six-bunk car (二等卧) runs from around ¥560; a four-bunk compartment with a door (一等卧) is about ¥730 and far more private. Ask for a lower bunk if you can — more room and no climbing — and pack earplugs and an eye mask; travellers rate the sleep ‘better than expected’, but the carriage is not silent. It books on 12306 or Trip.com like any other train; the train number changes, so search your date, and note some sleeper services use the more central Beijing Station and Shanghai Station.

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 Shanghai

Shanghai rewards a couple of days, so plan an overnight-plus stay. The headline draws cluster along the river: the Bund (外滩) and its colonial waterfront, the Pudong skyline across the water with the Oriental Pearl and the city’s supertall towers, the classical Yu Garden (豫园) and old town, and the plane-tree lanes of the former French Concession for cafés and boutiques. Families add Shanghai Disneyland out east. For a full plan see things to do in Shanghai and the Shanghai city guide.

The Pudong skyline lit up across the Huangpu River from the Bund — Shanghai's headline waterfront view.
The Bund and the Pudong skyline across the Huangpu — Shanghai is an overnight-plus destination, not a day trip from Beijing.

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 BeijingShanghai
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 Shanghai Hongqiao — getting to your hotel

Shanghai Hongqiao 上海虹桥站 sits out in the western suburbs, but it is wired straight into the metro — Lines 2, 10 and 17 share one concourse a 4–5 minute indoor walk from the platform, and you transfer without being re-screened (one-way security recognition since 2018). Line 2 runs east through the centre (People’s Square, Nanjing East Rd, Lujiazui); Line 10 serves Xintiandi and the old town. For a car, the DiDi / taxi pickup is on the B1 level at the P9 (north) and P10 (south) car parks — a 10–15 minute walk, with 5–10 minute waits off-peak (15–30 at holiday peaks); don’t go up to street level to hail. Times below are for the three areas foreign visitors most often base in. Picking an area first? See where to stay in Shanghai.

City areaMetroTaxi / DiDi
The Bund / People’s Square 外滩·人民广场 (central)Metro Line 2 direct → People’s Square (人民广场); one more stop to Nanjing East Rd for the Bund. ~45 min, ¥5.¥65–90, ~35–50 min (19 km)
Lujiazui / Pudong 陆家嘴 (skyline, CBD)Metro Line 2 direct → Lujiazui (陆家嘴). ~50–55 min, ¥6.¥75–100, ~40–55 min (23 km)
Xintiandi / French Concession 新天地·法租界Metro Line 10 direct → Xintiandi (新天地). ~45 min, ¥5.¥60–90, ~35–50 min (19 km)

Transit times and driving distances via Amap (高德地图) routing, checked 2026-06-28. Shanghai Hongqiao is on Metro 2, 10 & 17, all direct into the centre. Taxi ranges reflect off-peak meter fares; surge during weekday rush hours. The no-re-screening transfer, the shared metro concourse and the B1 P9/P10 pickup notes are from current traveller reports.

Frequently asked questions

How do I get from Beijing to Shanghai?

By high-speed train or by air. G-trains run Beijing South to Shanghai about 50 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 — and the train is cheaper and lands you in the centre.

How long does the Beijing to Shanghai train take?

The fastest G-train does Beijing South to Shanghai Hongqiao in 4 hours 18 minutes (non-stop or one short stop). Most trains run 4h30m–5h30m with a handful of intermediate stops; the slowest take up to 6 hours, usually the earliest and latest departures.

How much is a train ticket from Beijing to Shanghai?

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. Fares are dynamically priced since 2024 — Friday evenings and Sunday afternoons trend toward the high end, off-peak weekday mid-mornings toward the low end.

Which station do Beijing to Shanghai trains use?

Nearly all leave Beijing South (北京南站), the line’s dedicated Beijing terminus, central on Metro 4 & 14 (not Beijing West or Chaoyang). Most arrive at Shanghai Hongqiao (上海虹桥), the big HSR hub in the western suburbs on Metro 2, 10 & 17 — all running direct into the centre. A smaller number — fewer than a dozen a day — terminate at the more central Shanghai Station (上海站) near the Bund; if your hotel is central, a Shanghai Station arrival saves the trek in from Hongqiao.

Is the Beijing to Shanghai train faster than flying?

Air time is ~2h 15m vs ~4h18m on rails, but door-to-door it is roughly a tie: a flight needs a 2-hour check-in, the long runs out to Daxing or Pudong, and Beijing weather and air-traffic delays routinely add time. The train is about 6–6.5 hours centre-to-centre, almost always cheaper, and far more reliable — the default unless you’re connecting to an international long-haul.

Is there an overnight sleeper train from Beijing to Shanghai?

Yes. Alongside the daytime G-trains, an overnight sleeper EMU (动卧, a D-series train) leaves roughly 20:30–21:30 and arrives 07:30–09:30 — about 12 hours, with lie-down berths instead of seats: from around ¥560 in the open six-bunk car (二等卧), about ¥730 for a four-bunk compartment with a door (一等卧). Ask for a lower bunk and bring earplugs. It books on 12306 or Trip.com like any other train; the exact train number changes, so search your date. Some sleeper services use the more central Beijing Station and Shanghai Station.

How far is Beijing from Shanghai?

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 North China Plain and the Yangtze delta.

How many trains run between Beijing and Shanghai each day?

About 50 each way on the main Beijing–Shanghai HSR line, from roughly 6:18 AM to 9:22 PM, plus the overnight sleeper EMU. It is the busiest high-speed corridor in the world by passenger volume.

How early do I need to book?

Tickets open exactly 15 days before departure (Beijing South releases in batches from 8 AM). 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) can sell out within minutes — book the moment the window opens, and if it is gone, the waitlist (候补 on 12306, or Trip.com) clears often on this route and returned tickets resurface around 24 hours and 2 hours before departure.

Verification scope

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

Overnight sleeper + traveller detail: the sleeper EMU (动卧) runs roughly 20:30–21:30 to 07:30–09:30, with berths from ~¥560 (二等卧) / ~¥730 (一等卧) sampled from the rail data — the exact train and fares vary by date, so search before booking. Which Shanghai station travellers actually prefer, the sleeper berth comfort notes, the no-re-screening metro transfer and the B1 P9/P10 pickup notes are from current 小红书 traveller reports.

Confirm before booking: exact schedules and fares vary by train and season under dynamic pricing. Nearly all trains leave Beijing South (北京南), and most arrive at Shanghai Hongqiao (上海虹桥) — a few use the more central Shanghai Station (上海站).

Once the train gets you to Shanghai

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