Chinese Fuxing high-speed bullet train arriving at a station
Routes

Shanghai to Beijing

The flagship high-speed line in about 4.5 hours.

By the Viamo editorial team · Editor Terje Moy · Last updated July 2026 · 5 min read

Fastest ~4h20 by train

At a glance Typical options on this route – details, caveats and booking advice below.
🚆 Train~4h20–4h45Flagship high-speed line, Hongqiao–Beijing South, 350km/h
✈️ Flight~2–2.5hDoor-to-door often similar to train once transfers counted
🚆 Train~10–12hOvernight sleeper on older line, chosen for experience

Planning this trip? Currency converter · Jet-lag calculator · Trip budget · Compare routes

Shanghai to Beijing is China's flagship long-distance route, and the high-speed rail line connecting them is one of the most impressive in the world: over 1,300 km covered in well under five hours on the fastest services. Flying is the traditional alternative, but on this particular pair the train increasingly wins on convenience.

The Beijing–Shanghai High-Speed Railway opened in 2011 as one of the most ambitious infrastructure projects of its era, built to a design speed of 380 km/h, and it remains one of the busiest and most profitable high-speed lines anywhere in the world, carrying well over a hundred million passengers a year. For travellers, that scale translates into an exceptionally reliable, frequent service linking China's two largest and most important cities.

The best way: the Beijing–Shanghai High-Speed Railway

The dedicated high-speed line runs the fastest trains from Shanghai Hongqiao to Beijing South in around 4 hours 20 minutes to 4 hours 45 minutes, with dozens of departures spread across the day. Slightly slower services, which make a few more stops, take closer to 5.5 to 6 hours but are usually cheaper. This is genuinely a flagship route for Chinese rail: trains run at up to 350 km/h for long stretches, are punctual, comfortable, and have several class tiers from second class through to business class.

Onboard, second class offers airline-style seating with generous legroom by international standards, first class adds wider seats and more space, and business class — a small cabin at the front of most trains — offers near-flat reclining seats at a considerably higher fare. Food trolleys and an onboard buffet car serve simple meals and snacks, and free WiFi is generally available, though speeds and reliability vary. Toilets and space for luggage are at the end of each carriage.

Tickets can be booked online through China Railway's official channels or through third-party booking agents that handle the process in English, which is worth using if you are not comfortable navigating a Chinese-language booking system. See our guide to China by train for how the booking system, classes and ID requirements work in more detail. Reservations are effectively compulsory — every seat on Chinese high-speed trains is assigned, and you cannot simply turn up and board without a ticket. If you are arriving by air, our Shanghai airport to the city and Beijing airport to the city guides cover getting into either city centre first.

Flying: still competitive on paper, less so in practice

The flight between Shanghai and Beijing takes around 2 to 2.5 hours in the air, and both cities are major aviation hubs with frequent services throughout the day. On paper that beats the train comfortably. In practice, both Shanghai's and Beijing's airports sit some way from their city centres, and security and boarding at China's busiest airports can add a substantial buffer — the realistic door-to-door time often ends up close to the train once transfers are included, especially since both main railway stations sit within the city and connect directly to the metro network.

Flying can still make sense if your accommodation is near an airport at either end, or if you can find a notably cheap advance fare, but for most travellers the high-speed train's central stations and reliability make it the more relaxed choice.

Multiple airlines operate this corridor with dozens of daily flights between them, so availability is rarely an issue, and competition keeps advance fares reasonable. Weather-related delays, particularly in winter fog or summer thunderstorm season, are more common at Chinese airports than genuine high-speed rail disruption, which is a further point in the train's favour if your onward plans are tight.

What about the overnight sleeper?

A small number of conventional overnight trains still run this corridor on the older, slower line, taking considerably longer than the high-speed service — the better part of 10 to 12 hours. They remain an option for travellers who want to save on a night's accommodation or simply prefer the sleeper-train experience, but they are no longer the default way to make this journey now that the high-speed line exists. Sleeper carriages typically offer a choice of hard sleeper (open bays of bunks) and soft sleeper (enclosed four-berth compartments), and fares are correspondingly lower than the high-speed service, though the time saving of the high-speed line is now so large that overnight trains are mostly chosen for the experience rather than practicality. If you are continuing on from Shanghai, our guides to Shanghai to Hangzhou and Shanghai to Suzhou cover two of the most popular short hops nearby, and from Beijing, Beijing to Xian covers the Terracotta Army route.

Which should you choose?

For almost every traveller, the high-speed train is the clear winner: central stations, frequent departures, a comfortable ride and a journey time that rivals flying once real-world transfer times are counted. Choose flying only if you have a specific reason — a very cheap fare, an onward international connection, or accommodation right by an airport. Check East Asia entry requirements before you travel, as China's visa rules differ from Japan's and South Korea's.

Frequently asked questions

How long does the high-speed train take from Shanghai to Beijing?

The fastest services take around 4 hours 20 minutes to 4 hours 45 minutes; slightly slower trains with more stops take 5.5 to 6 hours.

Do I need to book high-speed train tickets in advance?

Yes, every seat is assigned and reservations are effectively compulsory. Booking a few days ahead, especially around Chinese public holidays, is strongly advised.

Which stations does the train use?

Shanghai Hongqiao and Beijing South, both large, modern stations connected to the local metro network and reasonably central.

Is flying faster than the train?

The flight itself is shorter, at around 2 to 2.5 hours, but once airport transfers, security and boarding are added, the real door-to-door time is often similar to the train.

Sources and further reading: