GoAsia
How to Get from Shanghai to Beijing

How to Get from Shanghai to Beijing

Last updated: October 16, 2026
Contents

Shanghai to Beijing is one of China's most important domestic travel corridors, linking the country's largest commercial city with the capital. The two realistic choices are the high-speed train between Shanghai Hongqiao and Beijing South and a flight between the airports of the two cities. You can compare options and book on GoAsia.cc.

Train, Bus, Flight and Ferry tickets

Booking and payment are handled by 12Go, not GoAsia. We may receive a commission when you book through our links.

Shanghai to Beijing by Train

On the 12306 timetable for October 2026, 55 services run from Shanghai to Beijing stations. The fastest G trains, for example G12 and G32, take 4 hours 24 minutes from Shanghai Hongqiao to Beijing South. Other G trains take between 4 hours 26 minutes and 7 hours 24 minutes, depending on the number of stops.[1]

A high-speed train at Shanghai Hongqiao station
A high-speed train at Shanghai Hongqiao stationPhoto: ermell / Wikimedia Commons, CC BY-SA 3.0

Overnight D trains such as D8 and D10 leave in the evening and arrive in Beijing the next morning, after about 12 hours. Slower overnight services, for example T110, take about 16 hours.[1] Most G trains arrive at Beijing South station.[1]

Foreign passengers buy real-name train tickets with their passport and must show the same document to enter the station and board the train.[2]

Shanghai to Beijing by Flight

Flying is the other option for travelers who prefer a single air segment, for example when connecting to an international flight. Fares and flight times vary by airline and date, so check current schedules before you book. A flight only covers the air segment: you still need to add time for getting to the airport, check-in and security, baggage collection and the transfer from the Beijing airport to your final district.

Shanghai has two major airports. Hongqiao (SHA) is about 13 km from the city center and mainly handles domestic flights, while Pudong (PVG), about 30 km from downtown, is the main international gateway.[3] Beijing also has two major airports, Capital (PEK) and Daxing (PKX). Confirm the exact airport pair before you pay, because a cheaper fare can be less attractive if the airport is far from your hotel.

Comparing Your Options

ServiceRouteDuration (October 2026 timetable)
G high-speed train (fastest)Shanghai Hongqiao to Beijing South4h 24min[1]
G high-speed train (other)Shanghai Hongqiao to Beijing South4h 26min - 7h 24min[1]
D train (overnight)Shanghai to Beijing11h 50min - 12h 27min[1]

Practical Tips

  • Check the station or airport before paying. Shanghai and Beijing each have more than one major station and airport, so the city names alone are not enough.
  • Add city transfer time. For a flight, plan for airport access, security, baggage and onward travel in Beijing.
  • Read baggage conditions. Economy fares can differ on checked luggage, cabin bag limits and change rules.
  • Keep names consistent. Domestic flights and trains in China use real-name ticketing, so your booking name must match the document you use.
  • Avoid tight same-day commitments. Weather, traffic, security queues or baggage waiting time can all delay the trip.

Timetable

Flight Shanghai - Beijing $ 89.79–341.65 1h 55m – 2h 40m
  • →  Economy 06:55, 07:50, 08:00, 08:15, 08:20, 08:30, 09:15, 09:30, 10:30, 10:55, 11:05, 11:20, 16:15, 16:20, 18:00, 18:05, 18:50, 19:00, 19:30, 21:35, 22:00
Train Shanghai - Beijing $ 29.70–350.13 4h 24m – 22h 31m
  • →  Business Class 06:31, 07:00, 07:38, 08:15, 09:43, 10:43, 11:05, 11:15, 12:32, 12:46, 12:55, 13:26, 13:33, 14:00, 14:18, 14:40, 15:00, 15:04, 15:10, 15:25, 16:00, 16:04, 17:00, 17:16, 17:25, 17:46, 17:55, 19:25
  • →  Second Class Seat 07:00, 11:15, 11:53, 12:55, 17:55, 19:08, 21:05, 21:15
  • →  Soft Sleeper 12:15, 16:30
  • →  Hard Sleeper 12:15, 16:30
  • →  Hard Seat 12:15, 16:30
  • →  First Class Seat 07:00, 11:15, 11:53, 12:55, 17:55
  • →  Standing 07:00, 11:15, 11:53, 12:15, 12:55, 16:30, 17:55, 19:08, 21:05, 21:15
  • →  1st Class Sleeper 19:08, 21:05, 21:15
  • →  2nd Class Sleeper 19:08, 21:05, 21:15
  • →  No Seat 21:05
  • →  First Class Sleeper 21:05
  • →  Second Class Sleeper 21:05

Frequently Asked Questions

How can I book tickets from Shanghai to Beijing?

Use the booking tool on this page to compare the transport options currently available from Shanghai to Beijing, including current prices and schedules.

What is the cheapest option from Shanghai to Beijing?

Compare the current second class train fare on 12306 with flight prices for your travel date. Both vary with the date and how early you book.

What is the fastest option from Shanghai to Beijing?

The fastest G trains take 4 hours 24 minutes from Shanghai Hongqiao to Beijing South on the 12306 timetable for October 2026. A flight is shorter in the air, but you must add airport transfers, security and baggage time.

How long does it take to travel from Shanghai to Beijing?

G trains take between 4 hours 24 minutes and 7 hours 24 minutes, and overnight D trains take about 12 hours, on the 12306 timetable for October 2026. For a flight, add airport transfers, security and baggage time to the flight time.

Which Shanghai station should I use for trains to Beijing?

Most fast G trains leave from Shanghai Hongqiao and arrive at Beijing South. Some trains use Shanghai Station or other stations.

Should I check which Shanghai and Beijing airports are used?

Yes. Both cities have more than one major airport, so the exact airport pair can affect transfer time and total trip comfort.

Do I need my passport to buy a train ticket in China?

Yes. Train tickets are sold against a passport number, and you must show the same passport to enter the station and board the train.

Sources and background

Numbers in the text such as [1] refer to these sources.

  1. [1] China Railway (12306): 12306 ticket search: Shanghai Hongqiao to Beijing South, October 2026. Retrieved October 15, 2026.
  2. [2] China Railway (12306): 12306 FAQ. Retrieved October 15, 2026.
  3. [3] Shanghai Municipal People's Government: Transportation at Shanghai airports. Retrieved October 15, 2026.

Guide prices and journey times are indicative, not live quotes. A booked package may include transfers and waiting time as well as the main journey. Check the selected offer, pickup point and current conditions before booking.