Beijing to Shanghai: Train, Sleeper, or Flight
The Beijing–Shanghai high-speed line is the busiest in China, and for good reason: the fastest G trains cover 1,318 kilometers in 4 hours 18 minutes, city center to city center, with dozens of departures a day. Second class costs roughly ¥550–700 as of October 2026, and your passport is your ticket. This route guide compares the daytime G trains with the overnight D sleeper and the plane, explains the 15-day ticket release and the separate reservation window on this corridor (30 days ahead since October 27, 2026), and walks through the booking, passport, and station steps that decide whether the day goes smoothly.
The short version
- The fastest G trains take 4h18m, and most run 4.5–5.5 hours, city center to city center
- Second class runs about ¥550–700 one way as of October 2026; first class roughly ¥900–1,100
- Standard tickets go on sale 15 days before travel, but this corridor has a reservation pilot on 12306 (30–17 days ahead since October 27, 2026) — a request, not a guaranteed seat
- Book on 12306 in English at face value, or on Trip.com for a small fee; your passport is your ticket at the gates
- Beijing South is the departure station and Shanghai Hongqiao the arrival — not Beijing West, not Shanghai Station
Your options at a glance
| Mode | Time | What to know |
|---|---|---|
| High-speed rail (G) | 4h18m–6h | Beijing South to Shanghai Hongqiao, about 46 trains a day; second class roughly ¥550–700 as of October 2026 |
| Overnight sleeper (D) | 12h–12.5h | Five nightly departures from Beijing South; four-berth soft sleeper roughly ¥550–970 and saves a hotel night |
| Flight | 2h05m–2h30m airborne | Capital or Daxing to Hongqiao or Pudong; add three-plus hours of airport logistics; fares from around ¥600 |
Beijing and Shanghai sit 1,318 kilometers apart, and the high-speed line between them is the busiest and most polished in China. For most travelers the question is not whether to take the train but which one: the fastest G services cover the distance in 4 hours 18 minutes, city center to city center, while overnight sleepers trade speed for a saved hotel night. Flying looks competitive on paper and rarely is in practice once airport transfers are counted. This guide covers the timetable, fare ranges, booking mechanics, and station details that decide the day.
The Short Answer
Take a daytime G train from Beijing South to Shanghai Hongqiao. The fastest departures take 4 hours 18 minutes; most scheduled services run 4.5 to 5.5 hours, and a few slower trains with more stops stretch past six. Second class is comfortable for this distance and costs roughly ¥550–700 one way as of October 2026. Book it.
The flight is not faster door-to-door: two hours in the air still means reaching Capital or Daxing, clearing security, and crossing Shanghai — realistically five to six hours, with more delay risk. The overnight D sleeper makes sense only if the saved hotel night outweighs worse sleep, or daytime trains are sold out.
Book when sales open: Chinese rail fares are fixed by train and class, so waiting buys nothing but risk.
Your Options
Daytime high-speed rail. Roughly 46 G trains run from Beijing to Shanghai each day, departing between about 06:18 and 19:24. The station pair is the point: Beijing South connects to Metro Lines 4 and 14, and Shanghai Hongqiao connects to Metro Lines 2, 10, and 17 and sits in the same complex as Hongqiao Airport’s Terminal 2. You arrive 45–60 minutes early, not two hours, and you step off in the city rather than on its edge. See the trains guide for seat classes and security routines, and the Beijing and Shanghai city guides for what to do at each end.
Overnight sleeper. Five D trains leave Beijing South in the evening, between 19:10 and 21:21, and reach Shanghai between 07:25 and 09:45 the next morning — about 12 to 12.5 hours. A soft sleeper is a four-berth compartment with a door, bedding, and charging points; fares run roughly ¥550–970 depending on the train and berth position as of October 2026. Hard sleeper is cheaper and less private. It suits budget travelers and anyone who would rather wake up in Shanghai than pay for a room.
Flight. Nonstop services take about 2 hours 5 minutes to 2 hours 30 minutes. They leave from Beijing Capital (PEK) or Daxing (PKX) and land at Shanghai Hongqiao (SHA) or Pudong (PVG); check the airport code, because the two Beijing airports are roughly 90 kilometers apart and Pudong is far east of downtown. Promotional fares start around ¥600, but airport express trains and taxis add both money and an hour or more at each end. See the domestic flights guide before choosing this.
How to Book
Chinese rail tickets normally go on sale 15 days before departure, counting the travel day, with each station releasing at a fixed time of day. The official channel is Railway 12306 (the China Railway 12306 app or www.12306.cn/en), which now has a full English interface and sells at face value. Register with your passport, complete real-name verification — it can take a few hours and occasionally up to 24 — and add your name exactly as printed in the passport’s machine-readable zone.
This corridor has an extra layer. More than 200 trains on the Beijing–Shanghai high-speed and conventional lines accept reservations through the 12306 app’s Ticket Reservation section. The window opened at 60 to 17 days ahead when the pilot began on July 20, 2026; from September 26, 2026 it was phased down to 30 to 17 days ahead, and since October 27, 2026 that is the standard window. Orders are processed about 20 to 16 days before departure, and payment is due by 23:00 on the confirmation day. It is a reservation request, not a guarantee, and most travelers will still find the normal 15-day sale simpler.
Step by step:
- Verify your passport in the 12306 app a few days before tickets open, not minutes before.
- Search Beijing South → Shanghai Hongqiao for your date and compare G trains by duration, not just departure time.
- Choose second class unless you are tall, working, or treating yourself; first class adds space, business class adds a lie-flat pod and roughly triple the fare.
- Pay with Alipay, WeChat Pay, or a linked international card. There is no paper ticket to collect at major stations.
- Keep the physical passport with you. At the gate, scan the photo page at the automatic reader; if it fails, use the staffed lane beside it.
Trip.com sells the same inventory in English with international card support and a small per-ticket fee, and its customer service is useful for a first trip. Changes and refunds must be handled by whichever platform issued the ticket, so keep one booking channel where possible. For payment setup, see the payments guide.
Station and Transfer Practicalities
At Beijing South, arrive 45–60 minutes before departure. Bags go through an X-ray at the entrance, followed by a metal detector; the walk to distant gates can take 15 minutes on its own. Screens list the gate number (检票口) 15–30 minutes before departure, and boarding closes about five minutes before the train leaves. Metro Lines 4 and 14 stop underneath the station.
At Shanghai Hongqiao, the rail station and airport Terminal 2 share one complex — convenient if connecting, confusing if you follow the wrong sign. Metro Lines 2, 10, and 17 serve the station; Line 2 is the workhorse into the center and takes roughly 30–40 minutes to People’s Square. Taxis and DiDi pick up in designated ranks — follow the signs rather than accepting a driver who approaches you inside the hall.
On board, announcements are in Mandarin and English, and car numbers are painted on the platform floor. Bring water and snacks for a five-hour run. The last metro from Hongqiao typically leaves before midnight, so if you arrive late, budget for a taxi or DiDi; see the city transport guide.
Common Mistakes
- Booking Beijing West instead of Beijing South. Beijing West serves Xi’an trains. The Shanghai line uses Beijing South.
- Turning up at Shanghai Station. High-speed Beijing trains arrive at Hongqiao. Shanghai Station is a different, older station on the north side of the city.
- Booking a flight by city name rather than airport code. PEK and PKX are an hour apart; SHA and PVG are even farther. Check the code at booking and again the day before.
- Arriving 15 minutes early at either mega-station. Security, the walk, and the gate cutoff make that a coin flip. Give yourself an hour.
- Assuming the reservation window covers every train. It applies to a pilot group of trains on this corridor, and a reservation can still fail.
- Traveling during Golden Week without a plan. The first week of October and the Spring Festival rush sell out within minutes of release; book the full 15 days ahead, including the return leg.
- Buying from a “helper” at the station. Use 12306 or Trip.com; tickets are tied to your passport.
Sources & verification (9)
- https://www.travelchinaguide.com/china-trains/beijing-shanghai-highspeed.htm
- https://www.trip.com/trains/guide/beijing-to-shanghai-high-speed-train/
- https://www.travelchinaguide.com/china-trains/beijing-shanghai-overnight.htm
- https://www.citynewsservice.cn/articles/cns/city-news/general/ticket-reservation-service-for-beijing-shanghai-rail-routes-on-trial-from-july-20-4m3xevxm
- https://cdn.shanghai.gov.cn/nw17239/20260927/c28d149dd5d54393980dbe1850dffd22.html
- http://www.ecns.cn/m/cns-wire/2026-07-20/detail-ihfhkrtk6181598.shtml
- https://english.ah.gov.cn/Travel/Whatison/565520531.html
- https://www.flightsfrom.com/PKX-SHA
- https://www.12306.cn/en/index.html