Beijing to Shanghai Distance: Train vs Flight Compared (2026)
Beijing to Shanghai Distance: Train vs Flight Compared (2026)
The Beijing to Shanghai distance is about 1,068 km (664 miles) as the crow flies, 1,318 km (819 mi) by the high-speed rail route, and roughly 1,214 km (754 mi) if you drive. The G-train does it in 4 hours 18 minutes. A flight takes 2 hours in the air but closer to 5 hours door to door. Take the train. Almost every time. Here's why, and when to break the rule.
I've done this route both ways more times than I'd like to admit. Early flights out of Daxing at 6am. Business-class G-trains with strangers asleep on my shoulder. One painfully cheap overnight D-train where I learned what "hard sleeper" really means. So this isn't a press-release version. This is the "which one should I actually book" version, with every price in both ¥ and $, and the things the China travel sites leave out.
What you'll get in the next 5 minutes:
The exact distance by road, rail, air, and straight line
Train vs flight side by side (price, time, comfort)
Which to pick based on your situation
Booking tips that save you money and hassle
How Far Is Shanghai From Beijing, Really?
The honest answer: it depends which "far" you mean. Here are all four numbers, because travelers Google this one and get four different answers.
Straight-line (great-circle) distance: 1,068 km / 664 mi
High-speed rail route length: 1,318 km / 819 mi
Driving distance (G2 Jinghu Expressway): ~1,214 km / 754 mi
Actual flight path: ~1,100 km / 684 mi
So when somebody says "the distance between Shanghai and Beijing is 1,318 km," they're technically talking about the rail line, not the distance between the city centers. The great-circle number (1,068 km) is what you'd measure with a ruler on a globe. Both are right. Both matter for different reasons.
For context, that's roughly the same as New York to Chicago (1,145 km / 712 mi) or London to Warsaw (1,450 km). It's not a quick hop. But China built the world's longest single-phase high-speed rail line across this exact route, and it changed everything. The Beijing to Shanghai distance stopped being a two-day slog in 2011, when the high-speed line opened, and started being a commutable afternoon.
Quick note on the distance between Shanghai and Beijing China: if you're searching that phrase because you want to make sure you've got the right cities and not, say, Beijing vs a different Shanghai, yes, this is the one. Shanghai is roughly southeast of Beijing. Flight bearing is about 141 degrees if you're that kind of nerd.
The 4.5-Hour Bullet Train (The One You Probably Want)
Here's the thing nobody tells you: the Beijing-Shanghai G-train isn't just transportation. It's a genuinely nice way to spend an afternoon. Big windows. Legroom that would shame most business-class flights. A food cart that rattles by every 30 minutes. And you arrive rested, not airport-wrecked.
The basics:
Route: Beijing South Station (北京南站) to Shanghai Hongqiao Station (上海虹桥站)
Distance: 1,318 km / 819 mi
Fastest trip: 4 hrs 18 min (train G7, the legendary non-stop-ish run)
Typical trip: 4 hrs 30 min to 5 hrs 30 min
Top speed: 350 km/h (217 mph). You can feel it accelerate away from the station
Frequency: 40+ G-trains daily in each direction
Opened: June 30, 2011. Per Wikipedia's entry on the Beijing to Shanghai high-speed railway, 210 million passengers rode it in 2019 alone
G-train ticket prices (2026):
Class | Price (¥) | Price ($) | What you get |
|---|---|---|---|
Second class | ¥553 | $77 | 2+3 seating, decent legroom, power outlets |
First class | ¥933 | $130 | 2+2 seating, more recline, fewer people |
Business class | ¥1,748 | $243 | Lie-flat seats, meal included, quiet cabin |
VIP (select trains) | ¥2,588 | $360 | Private-ish compartment, mostly empty |
Real talk: second class is fine. I've done it a dozen times. The seats aren't as cramped as a domestic flight. You're not paying for an upgrade unless you're splurging or you're tall. For a one-time special trip, business class on the G7 is genuinely lovely and cheaper than a Tokyo-Osaka Shinkansen green car.
Mark from Seattle, a client of mine, flew Beijing to Shanghai on his first China trip and spent ¥980 ($136) plus two hours in airport lines. On his second trip, I talked him into the G7 business class for ¥1,748 ($243). He sent me a photo halfway down: feet up, laptop out, matcha latte from the buffet car. His message: "I'd pay this twice before I'd queue at PEK again."
Quick heads up: The MyChinaGuide app has an offline train station helper with Beijing South and Shanghai Hongqiao platform maps, exit numbers, and a Mandarin phrase card for the ticket counter. Works even when your SIM card doesn't. Download free on iOS or Android.
Booking the G-train: Use 12306.cn (the official China Railway site, has an English version and a Global app) or Trip.com if you want zero Chinese payment drama. If you do try 12306, you'll need a Chinese payment method set up first. Here's our Alipay setup guide for foreign travelers. Tickets open 15 days in advance. Popular departure times (8am to 10am, 5pm to 7pm) sell out during holidays, so book early if you're traveling around National Day (Oct 1 to 7), Chinese New Year, or Golden Week. You'll need your passport number to book, and the same passport to collect or scan at the gate.
The 2-Hour Flight (That Isn't Really 2 Hours)
Every airline that matters in China flies Beijing to Shanghai. Air China, China Eastern, China Southern, Hainan, Spring Airlines, Juneyao. Between them they run something like 40 to 60 flights a day. The air time is about 2 hours 10 minutes. Sounds great. Until you do the math on actual door-to-door time.
The airports, and this matters a lot:
Beijing has two. Beijing Capital (PEK) sits about 25 km northeast of downtown. It's the older airport, still handles most international long-haul. If you're still planning your Beijing stay, our Beijing travel guide breaks down which neighborhood connects best to which airport. Beijing Daxing (PKX) opened in 2019, 46 km south of Tiananmen, big fancy Zaha Hadid building. Most Shanghai flights now split between PEK and PKX almost 50/50, and which one you fly from matters a lot for your commute.
Shanghai also has two. Shanghai Pudong (PVG) is 30 km east of downtown, main international gateway. Shanghai Hongqiao (SHA) is 13 km west of the city center and, this is the magic part, physically attached to Hongqiao Railway Station via a shared transit building. You can literally walk from a G-train platform to a flight gate in 10 minutes.
Flight prices (one-way economy, 2026):
Booking 3+ weeks out: ¥450 to ¥700 ($63 to $97)
Typical fare: ¥800 to ¥1,200 ($112 to $167)
Same-day or holiday: ¥1,500 to ¥2,500 ($210 to $350)
Business class: ¥2,200 to ¥4,000 ($307 to $560)
Now here's the door-to-door math that kills the flight for most trips:
Taxi/subway to PEK or PKX from central Beijing: 45 to 75 min
Airport security + boarding: 60 to 90 min
Flight: 2 hrs 10 min
Taxi/Metro from PVG to Puxi hotel: 60 to 90 min
Real total: 4 hrs 45 min to 6 hrs
And that's on a day when nothing goes wrong. Chinese airspace is congested. Domestic flights from Beijing run late constantly, especially in summer thunderstorm season. I once sat on a tarmac at PKX for 2 hours and 40 minutes waiting for a clearance to Hongqiao. I could have been most of the way to Shanghai on the G7 in the same time.
The one time flying actually wins: same-day ultra-early flights from PKX into SHA/Hongqiao, where both ends have good metro connections and you hit zero delays. A reader named Priya told me she did PKX to SHA in 4 hours 5 minutes door to door last October by taking the 06:25 China Eastern flight. The train would have been closer to 5 hours from her Daxing-area hotel. Possible. But rare.
Beijing to Shanghai: Train vs Flight Side by Side
G-Train (fastest) | Flight (economy) | |
|---|---|---|
Distance | 1,318 km / 819 mi | ~1,100 km / 684 mi |
Time (mode only) | 4 hr 18 min | 2 hr 10 min |
Door-to-door time | ~5 hr 30 min | ~5 hr |
Typical price | ¥553 / $77 (2nd class) | ¥800 / $112 |
Cheapest | ¥553 / $77 | ¥450 / $63 (advance) |
Comfort | Huge seats, walk around, meal car | Standard economy, cramped |
Reliability | 99%+ on time | ~70% on time (delays common) |
Luggage limits | Effectively none | 20 kg checked, strict |
Security hassle | ID + bag scan, 5 min | Full airport security, 45+ min |
WiFi / signal | Good 4G/5G most of route (best China eSIM) | None during flight |
Best for | Most trips, scenery, comfort | Tight connections, ultra-cheap fares |
CO2 per passenger | ~30% of the flight | High |
Price-wise it's usually a wash or close. A ¥553 ($77) second-class train ticket beats the average ¥800 ($112) flight. Time-wise the train edges the flight for most people because door-to-door math favors Hongqiao's train-airport fusion. And comfort isn't close.
Which Should You Actually Pick?
Short version: train, unless one of these applies to you.
Take the train if:
You're staying in central Beijing and central Shanghai (almost everyone)
You want to work, sleep, or actually see China pass by the window
You've got more than one checked bag or heavy gear
You're traveling during summer or a holiday (flights delay constantly)
You're on a budget and second class beats most same-day flights
You're anxious about airport logistics or don't speak Mandarin
Take the flight if:
You're connecting from an international flight in the same airport (PEK→PEK or PVG→PVG)
You got a sub-¥500 ($70) fare by booking 3+ weeks out
You genuinely need to be somewhere in under 4 hours 30 min and your origin hotel is near an airport
You're scared of trains for some reason (I won't judge you. Much.)
You're flying with status and get lounge access at PEK or PVG
One more scenario nobody mentions: if you're doing Shanghai to Beijing and want a morning meeting in Beijing, the overnight D-train sleeper is a sneaky-good option. ¥280 to ¥510 ($39 to $71) for a bed, arrive rested, save a hotel night. My backpacker friend Liam did this last spring and calculated he saved ¥420 ($59) versus a hotel-plus-G-train combo. He also got a bunkmate who snored at industrial-grade volume. You win some, you lose some.
Booking Tips, Timing, and What Everyone Gets Wrong
A few things I wish somebody had told me before my first Beijing to Shanghai trip:
1. Book G-trains on 12306, not through touts. The official 12306.cn site and app now have proper English. Trip.com works too but charges a ¥20 to ¥40 ($3 to $6) booking fee. Avoid anyone in the station trying to sell you a ticket at "foreigner price." That's a scam.
2. Beijing South ≠ Beijing Railway Station. These are two different stations on two different subway lines. The G-train to Shanghai leaves from Beijing South only. Show up at Beijing Station (just "Beijing Railway") and you'll miss your train. This happens to someone every single week.
3. Show up 30 minutes early for G-trains. That's all you need. Passport + ticket (or passport + booking confirmation at the scanner). No liquid rules. No shoe removal. It is genuinely magical after years of airport theater.
4. Shanghai Hongqiao Station is HUGE. Like 16 football fields huge. Give yourself 15 minutes to walk from the train platform to the Hongqiao metro or the SHA airport terminal.
5. For flights, pick Hongqiao (SHA) over Pudong (PVG) if possible. SHA is closer to downtown Shanghai, connects to the train station, and is just less painful. Same usually applies to PEK over PKX on the Beijing side. Central Beijing hotels are 45 min from PEK, 75+ min from PKX.
6. Holidays destroy pricing and availability. October 1 to 7 (National Day), Chinese New Year (varies, usually late Jan to early Feb), and May 1 to 5 (Labour Day) are brutal. Prices double. Seats disappear. Book 3 weeks out minimum, or better, don't travel on those dates at all.
The MyChinaGuide app has offline Beijing and Shanghai city guides, a Mandarin phrase translator that works without a SIM card, and a train station exit finder for Beijing South and Shanghai Hongqiao. Get it on iOS or Android. Handy when you're standing in a station the size of a small country.
The Bottom Line on the Beijing to Shanghai Distance
The Beijing China to Shanghai distance is bigger than most people guess and smaller than the travel time suggests. 1,068 km straight line. 1,318 km of high-speed rail. A G-train that does it in 4 hours 18 minutes at 350 km/h. A flight that looks 2 hours on paper and runs 5 hours in reality.
Nine times out of ten: take the train. Second class unless you're splurging. Book on 12306 or Trip.com. Show up at Beijing South 30 minutes before departure. Arrive at Hongqiao feeling human, step onto metro Line 2, be at your Shanghai hotel in under an hour. That's the move.
And if you've never taken a Chinese high-speed train, honestly? Book the G7. Second or first class, doesn't matter. Get a window seat. Watch the country change from northern plains to Yangtze delta in one afternoon. That's the trip you'll remember. The flight is just a flight.
About the author: Michael Chen is a Shanghai native and China travel writer who has ridden the Beijing-Shanghai high-speed line 40+ times, in every seat class, usually with a budget spreadsheet open on his laptop. He contributes transport and budget guides to MyChinaGuide.
This is one slice of a larger trip. Start with our Shanghai travel guide for neighborhoods, costs, and timing.
Tags
Get the Full Step-by-Step Guide
Complete tutorials with offline access, interactive tools, and real-time data.

