Red and gold Forbidden City open book emblem

How to Travel Between Beijing and Shanghai

Compare Beijing–Shanghai high-speed trains, flights and sleepers by total trip time, cost and the exact railway station or airport on your ticket.
Beijing to Shanghai travel guide cover with a modern high speed train

Table of Contents

Quick Answer

Take a daytime high-speed train for most city-to-city trips. Compare flying if you are already near a convenient airport or need an onward flight. Take a sleeper if you want to travel at night and can book a berth.

OptionTime on the main legWhat makes it useful
Daytime high-speed trainFastest published service: 4 hr 18 min. Check your actual train.Straightforward rail-to-metro access in both cities.
Direct flightAround 2 hr 15 min on many services.An airport-side start or finish, or a suitable onward flight.
Overnight trainA November 2026 example takes about 12 hours.Keeps most of the day available at either end when the timetable suits you.

Compare the total from your starting address to your final stop before booking.[1][9][10]

Beijing to Shanghai comparison of high speed trains flights and sleepers
Beijing to Shanghai comparison of high speed trains flights and sleepers

A Beijing–Shanghai flight is shorter in the air than a high-speed train is on the rails. The comparison becomes closer once you add the trip to the airport, check-in, baggage and the ride out at the other end. Start with the places where your day actually begins and ends, especially if your travel plans involve Pudong, Daxing or a same-day connection.[6][7][8][10]

The same approach works from Shanghai to Beijing. Use the Beijing travel guide and Shanghai travel guide if you still need to choose your first or last neighborhood.

Take the High-Speed Train for Most City-to-City Trips

Start by checking direct G-series trains between Beijing South and Shanghai Hongqiao. A mid-2026 report gives 4 hours 18 minutes as the fastest benchmark on the corridor. Other direct trains take longer and can call at different stations. Search the actual date and select by arrival time, exact station and fare. The date-specific listings also show some trains arriving at Shanghai Railway Station, which may be more convenient for certain central hotels.[1][2][11]

Choose a seat for both price and comfort. Second class is a reasonable starting point. Check first class if you want more space and add the local rides to both ends when comparing the cost with a flight. A more expensive train can still be worthwhile if it gets you to a location close to your hotel or a useful transfer. Look for the station names in Chinese, since a city-wide search may return several stations.

Book through China Railway 12306 using the name and details of your valid passport. Bring the same original document to the station. If the self-service reader cannot process it, use the staffed channel. Check the live display for the gate and set aside time for security and ticket checks before departure. See how to book train tickets in China for the complete process.[5][12]

When Flying Makes Sense

A direct flight is a good candidate when you start near a Beijing airport or finish near an onward flight in Shanghai. For flights from the city, check both Beijing Capital (PEK) and Beijing Daxing (PKX). On the Shanghai side, separate Hongqiao (SHA) from Pudong (PVG). Around 2 hours 15 minutes is a useful example of scheduled flight time, before the airport rides, terminal processing or baggage.[6][7][8][10]

The Beijing Capital vs Daxing Airport guide helps you compare the two Beijing sides. A cheaper flight from the airport farther from your hotel can be the more expensive trip once you add a taxi or an extra hour. Conversely, if you arrive at Daxing and have a practical onward flight from Daxing, a same-airport itinerary may avoid an unnecessary trip to a railway station. Check the individual ticket and bag transfer rules, especially if the flights were purchased separately.[7][8]

In Shanghai, Hongqiao Airport can be convenient for a western or rail-side destination. Pudong Airport is a different trip, useful when it is your onward airport or closer to your final destination. For a domestic flight from Capital to Hongqiao, compare its total time against the rail trip rather than just the flight duration.[6][10]

When to Book an Overnight Train

Consider a sleeper if you want a full day in one city and a morning arrival in the other. In a November 2026 schedule example, D5 ran from Beijing Railway Station to Shanghai Railway Station in about 12 hours. That example uses different stations from the standard high-speed pairing. Check both names, the date and the berth class when booking.[9]

A sleeper can save a hotel night if you expect to rest well. If you want a full night’s sleep before a demanding day, compare an earlier daytime train and a night in a hotel. Include the time to store your luggage or wait for check-in after the morning arrival. The Shanghai Railway Station guide explains how to leave that station if your sleeper arrives there.[4][9]

Which Stations and Airports to Choose

Beijing South, Beijing Railway Station, Beijing Capital Airport and Daxing Airport are four different starting points. In Shanghai, Hongqiao Railway Station, Hongqiao Airport and Shanghai Railway Station are different endpoints even though two have Hongqiao in the name. In a city-wide search, read the complete terminal or station on every result.[3][4][6][7][8]

For a Hongqiao-to-Pudong transfer, the Shanghai Airport Link Line takes about 40 minutes for the rail segment between Hongqiao Airport Terminal 2 station and Pudong Airport Terminal 1 & 2 station. If arriving at Hongqiao Railway Station, add the walk to the Airport Link Line entrance, waiting time and the airline’s airport requirements. Use the Pudong Airport to Hongqiao rail transfer guide for the link between the facilities.[4][6]

When heading in the other direction, choose Hongqiao or Shanghai Railway Station by your hotel and the Beijing train available. Add the final connection from your Beijing station before choosing a departure. A cheaper late train may leave you with fewer local options than a slightly earlier one.

Compare Total Time and Cost Before Booking

  1. Put your starting address and last stop into your map, then list the exact rail stations or airport pair you would use.
  2. Add the transfers, the departure buffer and the arrival leg to the time on the train or flight. If you have an onward ticket, leave enough time to absorb an ordinary delay or change of pickup.
  3. Compare the total fares, including bags, metro or taxi and any hotel night you would need. Check each ticket’s change rules.

For a sample rail calculation, start with a 30-minute station trip, 45 minutes for boarding, a 4-hour-30-minute train and a 40-minute ride after arrival. That adds up to 6 hours 25 minutes. A 2-hour-15-minute flight with 60 minutes to the first airport, a 90-minute departure buffer and 70 minutes from landing to the final address adds up to 5 hours 55 minutes. These are planning examples. Change the ground times to match your hotels, bag arrangements and terminals. An extra 40 minutes at either end of the flight can change the choice.

Recent November 2026 route listings included Beijing South to Shanghai Hongqiao second-class examples in the mid-CNY 500s through low CNY 700s. This is a sample of different services, and the actual fare can differ by train and date. Compare the displayed rail fare at checkout with the flight fare including baggage. If you plan to change dates, check the fare rules as well.[11][12]

If the fastest departures are full, look for a direct train with a later arrival and for a different Shanghai station. An additional stop may make the ride longer but still leave you in the better part of town.

For a city-centre trip, a direct high-speed train often gives the simpler schedule. A traveler already at one airport may reach the destination sooner by air when the airport pair fits. An ordinary overnight service can fit someone who values daytime hours more than time in transit. Long road journeys are a poor fit for most first-time travelers considering the same cities. For a broader comparison, see train vs flight in China.

If Beijing and Shanghai are part of a multi-city trip, the Beijing, Xi’an and Shanghai itinerary shows when to put Xi’an between them instead of treating it as a separate return trip.

FAQs About Travel Between Beijing and Shanghai

Is the train faster than flying from Beijing to Shanghai?

Flying usually takes less time on the main leg. A direct high-speed train can match or beat it door to door for city trips because it can require shorter ground rides and a smaller departure buffer. Compare your actual airports, stations and addresses.[1][3][4][10]

Which Shanghai station should I choose for central Shanghai?

Compare Shanghai Railway Station with Hongqiao Railway Station if both are offered. Choose the one that makes the most sense for your hotel’s address and available trains. Hongqiao often has useful services and several metro lines, while Shanghai Railway Station may give a shorter local ride to parts of the city centre.[4][11]

Can I connect from Hongqiao Railway Station to Pudong Airport?

Yes. Connect to the Airport Link Line near Hongqiao Airport Terminal 2. The inter-airport ride takes about 40 minutes. Add the walk from the rail terminal, waiting time and the procedures for your flight.[4][6]

Can foreigners book the Beijing–Shanghai train online?

Yes. Use China Railway 12306 with your valid passport details. Bring the original document used for the booking and use the staffed channel if your passport is not supported by the automated reader.[5][12]

Sources

[1] Ministry of Commerce Trade in Services Portal. Fifteen Years of the Beijing–Shanghai High-Speed Railway

[2] Shanghai Municipal Government. New Railway Schedule of Yangtze Delta to Take Effect

[3] Beijing Municipal Government. Travel Tips for Beijing South Railway Station

[4] Shanghai Municipal Government. Guide to Railway Stations in Shanghai

[5] China Railway 12306. Station Entry and Exit

[6] Shanghai Municipal Government. How to Take Airport Link Line

[7] Beijing Municipal Government. Beijing Capital Airport Transport to the City

[8] Beijing Municipal Government. Beijing Daxing Airport Transport to the City

[9] Qunar Rail. D5 Timetable and Seat Classes

[10] Trip.com. Beijing to Shanghai Flight Schedules

[11] Qunar Rail. Beijing to Shanghai Rail Schedules

[12] China Railway 12306. Ticketing FAQs

Interesting Articles for You

Huaian Travel Guide to the Qingjiangpu Grand Canal waterfront
City Guides

Huaian Travel Guide

Plan a Huai’an trip around Hexia Ancient Town, the grain transport museum and Qingjiangpu. Choose a canal cruise, try Huaiyang food and find your rail station.

Share this guide on