Shanghai to Beijing is one of the most traveled routes in China — and one of the most manageable for foreigners. You have two main options: high-speed rail or a domestic flight. Both work. Which one makes sense depends on your priorities.
This guide breaks down the actual decision, not just a vague "it depends."
The Route at a Glance
- Distance: ~1,300 km
- High-speed rail (G-train): approximately 4.5 hours
- Flight: approximately 2 hours in the air, plus airport time
- Frequency: Multiple trains and flights daily
Both are reliable. Both accept foreigners. The difference is in cost, hassle, and overall door-to-door time.
Option 1: High-Speed Rail (G-Train)
How it works
The Beijing–Shanghai high-speed line runs G-trains (高铁) between Shanghai Hongqiao Station and Beijing South Station. These are the fastest trains on the route — travel time is roughly 4.5 to 5.5 hours depending on the specific service.
There are also D-trains (动车) on the route, which are slightly slower and make more stops. Unless you have a reason to take the D-train, most foreigners opt for the G-train for speed.
What it costs
Prices vary by class and season:
| Class | Approximate Price (RMB) | |---|---| | Second class | 550–600 | | First class | 930–1,050 | | Business class | 1,748 |
These are one-way prices. Second class is the standard option — it's comfortable, the seats recline, and it's perfectly fine for a 4.5-hour journey.
How to book as a foreigner
Option A: Trip.com (recommended for foreigners). Trip.com has an English-language interface, accepts international credit cards, and lets you enter your passport details directly. You can have tickets sent to your email and show the QR code to collect at the station.
Option B: 12306 (China's official rail app). 12306 now accepts international passports and foreign credit cards, but the interface is in Chinese and registration can be fiddly. If you're comfortable with it, it's fine. Most first-timers prefer Trip.com.
Option C: Book at the station. You can buy tickets at the station counter with your passport. This works but isn't ideal if you're arriving close to departure or traveling during a busy period (Golden Week, Spring Festival). Lines can be long.
What you need to board: Your passport and either a paper ticket or the QR code from your booking. You'll be asked to show your passport at the security check before entering the platform area.
Station locations
- Shanghai: Shanghai Hongqiao Station (上海虹桥站) — also serves Hongqiao Airport, which is useful if you're connecting
- Beijing: Beijing South Station (北京南站)
Both stations are large, well-signed in English, and connected to the metro system. Shanghai Hongqiao is a major transport hub — you can transfer directly between the train station and Hongqiao Airport within the same building complex.
Beijing South Station is connected to metro Line 4. From there, you can reach central Beijing (Tiananmen, Wangfujing, etc.) in about 30–40 minutes.
Option 2: Domestic Flight
How it works
Multiple airlines operate the Shanghai–Beijing route daily, with flights from:
- Shanghai: Pudong International Airport (PVG) or Hongqiao Airport (SHA)
- Beijing: Beijing Capital International Airport (PEK) or Beijing Daxing International Airport (PKX)
Flight time is roughly 2 hours, but that number understates the total journey. Budget at least 90 minutes before departure for check-in and security at Chinese airports, plus transfer time at both ends.
What it costs
Domestic flight prices fluctuate significantly by booking time and season. A rough range:
- Economy class: RMB 400–900 for a reasonable advance booking
- Business class: RMB 2,000–3,000+
The cheapest tickets often show up 3–6 weeks out. Last-minute prices can spike substantially.
How to book
Trip.com works well for domestic flights in China — English interface, accepts foreign cards, provides itinerary in English.
Ctrip (same company as Trip.com) is the Chinese-language version with sometimes slightly lower prices.
You can also use the airline's own websites (Air China, China Eastern, China Southern all operate this route), though the booking experience is more variable.
What you need to board
Your passport. At Chinese airports, you check in and board with your passport — no separate ID needed. Domestic flights require the same passport registration that hotels use, so the process is consistent.
Train vs Flight: The Honest Comparison
| Factor | High-Speed Rail | Flight | |---|---|---| | Door-to-door time | ~6–7 hours (including metro at both ends) | ~5–6 hours (with airport transfers and check-in) | | City center to city center | Better — both stations are metro-connected | Worse — airports are further out | | Booking friction (foreigner) | Low — Trip.com handles it cleanly | Low — Trip.com handles it cleanly | | Cancellation/delay risk | Lower — trains rarely cancel | Higher — weather and air traffic cause more disruption | | Luggage | No weight limits, easy to carry onboard | Baggage fees or checked bag friction | | Cost | Predictable | Variable, can be cheaper or more expensive depending on timing | | Comfort | Good — spacious, smooth, no turbulence | Standard domestic flight |
The train wins on overall travel experience for most people. The door-to-door time difference is smaller than the numbers suggest, the stations are more central, there's no luggage check-in, and the ride is comfortable.
The flight makes sense if:
- You're already at or near an airport for another reason
- You find a significantly cheaper flight and the time savings matter to you
- You're flying from Shanghai Pudong to Beijing Daxing, which links to specific areas of Beijing more directly
Practical Tips for the Train
Book in advance during holidays. Around Chinese national holidays (National Day in October, Spring Festival, Golden Week), tickets sell out days or weeks ahead. Don't leave it to the last minute.
Arrive 30 minutes before departure. Unlike flights, you don't need hours of lead time. But you do need to get through the security check and find your platform. 30 minutes is comfortable; 15 minutes is cutting it.
You can bring food on the train. There's also a dining car if you want hot food. The train journey is long enough that a meal or snacks are worth considering.
The Wi-Fi on the train is unreliable. Download what you need before boarding — maps, entertainment, documents.
Your seat number is on your ticket. Find your carriage number (车厢) on the platform signs, board, and find your seat. It's straightforward.
Connecting From the Stations
Beijing South Station → City Center
- Metro Line 4 connects Beijing South directly to downtown. Tiananmen East/West, Wangfujing, and the central hotel district are reachable in 30–40 minutes.
- Taxi/Didi: Available outside the station. Set aside 30–60 minutes to reach central Beijing depending on traffic.
Shanghai Hongqiao Station → City Center
- Metro Lines 2 and 10 run from Hongqiao. Line 2 goes directly to People's Square and east Shanghai.
- Travel time to central Puxi or the Bund area is roughly 30–45 minutes by metro.
Internal Links Worth Knowing
If you're booking via Trip.com, the process is similar to booking hotels and other transport — our guide to booking hotels in China as a foreigner covers the same platform if you need a walkthrough.
For navigating around Beijing or Shanghai once you arrive, Alipay or WeChat Pay will handle metro tickets at the gates — both require a foreign card setup that we've covered here.
If you're coming to China for medical treatment and this journey is part of your planning, contact us here — we can help coordinate the logistics.
The Bottom Line
For most foreigners doing Shanghai–Beijing, the high-speed train is the better option. It's comfortable, door-to-door time is comparable to flying, the stations are centrally located, and the booking process through Trip.com is clean.
Take the flight if you find a meaningfully cheaper ticket and the timing works. Otherwise, book a G-train second class seat on Trip.com, arrive at the station 30 minutes ahead, and enjoy a smooth 4.5-hour ride through eastern China.
Need more than the guide?
This guide covers the basics. If real-world friction shows up, you can compare the support options and choose the level of human backup that fits your trip.
