Trains from Shanghai to Beijing

Trains from Shanghai to Beijing

Shanghai
Beijing
Sun, Sep 6
+ Add return
2 Travelers
Finding the best routes for you — almost ready!
Sort by
Filters
Departure time
Transport type
Departure station
Arrival station
Booking Facilities
Price
Arrival time
Operators
 
 
 
 
 

Shanghai to Beijing Destination Reviews

VT
Vincent T
Travel 2 adults and 2 kids in night sleeping. Train, 12go didn’t book together which was not possible with kids.
Shanghai to Beijing, Train #D10 1st Class Sleeper, China Railway (中国铁路), Jul 26, 2025
RR
Rrr R
The booking process was easy, but it didn't allowed us to select the car number.
Shanghai to Beijing, Train #G14 Second Class Seat, China Railway (中国铁路), Jul 25, 2025
KW
Kim W
very smooth and comfortable journey.
Shanghai to Beijing, Train #G14 First Class Seat, China Railway (中国铁路), Jul 16, 2025
SB
Silvia B
It was a Fast Train. Clean and the staffs were helpful and friendly, making the journey easier and more enjoyable. You can buy food and drinks, they are not as tasty as in restaurants. However, it is provided for someone who is needed. The train station is big and has lifts, which is importance for many passengers like me who carry heavy bags.
Shanghai to Beijing, Train #G12 Second Class Seat, China Railway (中国铁路), Jul 6, 2025
DJ
Dennis J
The detailed description of the departure and arrival stations was very helpful. The entry procedure was also accurate. But if you go to the ticket counter and get printed tickets using your voucher, the entry is even faster.
Shanghai to Beijing, Train #G18 Second Class Seat, China Railway (中国铁路), Jun 29, 2025
4.7
34 customer reviews
5
79%
4
15%
3
3%
2
3%
1
0%

Shanghai to Beijing Train Schedule

OperatorClassDeparture TimeArrival TimePriceRating
China Railway
Second Class Seat
06:17
13:12
$96.42
  4.8
China Railway
Second Class Seat
06:37
12:38
$90.61
  4.8
China Railway
Second Class Seat
07:00
11:36
$95.08
  5.0
China Railway
Second Class Seat
07:22
13:22
$93.89
  4.8
China Railway
Second Class Seat
07:38
13:32
$93.89
  4.8
China Railway
Second Class Seat
08:00
12:24
$103.71
  4.8
China Railway
Second Class Seat
09:00
13:27
$103.71
  4.8
China Railway
Second Class Seat
09:26
15:22
$98.05
  4.8
China Railway
Second Class Seat
09:43
15:47
$93.89
  4.8
China Railway
Second Class Seat
10:00
14:26
$103.71
  4.8
China Railway
Second Class Seat
10:34
16:29
$93.89
  4.8
China Railway
Second Class Seat
11:00
15:31
$103.71
  4.8
China Railway
Second Class Seat
11:53
16:38
$104.75
  5.0
China Railway
Hard Seat
12:15
10:46
$27.75
China Railway
Second Class Seat
12:47
18:49
$103.71
  4.8
China Railway
Second Class Seat
13:29
19:31
$93.89
  4.8
China Railway
Second Class Seat
14:00
18:35
$103.71
  4.8
China Railway
Second Class Seat
14:16
20:10
$103.71
  4.8
China Railway
Second Class Seat
14:43
20:45
$103.71
  4.8
China Railway
Second Class Seat
15:00
19:36
$103.71
  4.8

How to get from Shanghai to Beijing by train

Train from Shanghai to Beijing is a decent alternative to bus or air travel. Travelling from Shanghai to Beijing by train is easy, safe, and convenient. There is a direct railway link between the two destinations, which makes your trip smooth and hassle-free. Tickets are available for online booking and it is a good idea to buy them in advance to secure your seat. To get the most out of your train journey, check the schedule and choose the most convenient departure. As a rule, trains and ticket classes are available for every taste and budget.

How far is Shanghai from Beijing?

The distance from Shanghai to Beijing is 1209 km. Railways link the two destinations so that you can travel direct without connections. If there are connections, they will be indicated in your ticket.

How long does it take to get from Shanghai to Beijing by train?

Depending on the type of train, the length of your railway journey from Shanghai to Beijing may vary. The slowest train needs about 7h 24m to get to Beijing, and the fastest one brings you there in about 4h 24m. We recommend opting for the fastest service to save you time, especially if you travel by day. With overnight service, the difference of a couple of hours seems not so crucial and may prove even convenient.

Note that trains normally depart on time from their station of origin but sometimes come later than scheduled to their terminus. It is better not to plan short connections if you are going to continue your journey immediately after arrival to Beijing.

In many destinations, train stations are located very centrally and have good transport connections with the rest of the city, bus stations, and airports. It mostly concerns the older and well-established railway stations. The newer and bigger ones tend to appear in the outskirts of towns and cities, first of all, due to the reason of limited space in the central locations. Getting to and from there may be challenging even by taxi, as restrictions may apply on taxi operators allowed to serve the passengers. Hence, we highly recommend double-checking the location of the station you will depart from and arrive at as some destinations have several train stations.

How much does it cost to get from Shanghai to Beijing by train?

There may be carriages of a different class on one and the same train on one and the same route. The price of your ticket will vary accordingly – from a dirt-cheap tag for hard seats to high numbers for super comfy overnight sleeper berths on luxury trains. For the Shanghai – Beijing route, the cheapest ticket costs while if you want to travel with more comfort, expect to pay for the most expensive option.

Travelling by train essentials

  • Train tickets often sell out well before the date of departure. Book them in advance even if your travel does not fall onto high-season dates. Travelling during peak periods which also include public and national holidays, and long or bank weekends, advanced booking is a must if you do not want to remake your travel plans on the spot. It is unnecessary to go to the train station to book – buy your ticket online in a few clicks.
  • Advanced booking ensures you get the seats and berths you want. For example, the lower berths are always the first to sell out, while upper berths may be available even on the departure date. Similarly, for longer distances, it is the night trips that enjoy the highest demand, while you may be able to grab a ticket for the same route an hour before departure if it is an inconvenient day ride that eats a huge part of your time.
  • There may be different carriages within one and the same train: fan-only and air-conditioned; hard seats and soft seats; second class berths and private compartments. Before buying your ticket, make sure you understand what type of seat you are paying for. Prices may differ greatly, but sometimes it is a good idea to pay more not to spend 20 hours on a hard seat in a fan-only carriage. In general, second-class berths are a good choice for longer overnight trips, while for shorter 4-6-hour day journeys, a soft seat is a great option.
  • Air-conditioning on trains can be excessive – as well as heating during the cold season. Make sure to pack layers not to get cold or hot during your trip. In hot countries, fan-only carriages are a cheaper and acceptable alternative to air-conditioned carriages.
  • There are toilets on board a train. Depending on the type of train, some carriages can be equipped with simple squat-type toilets or normal Western toilets. Regardless of your ticket's price, the train toilets' cleanness is not often up to the standard, alas. It especially concerns cheaper classes, though even in first-class carriages, complaints are not unheard of.
  • There is normally a dining carriage on long-distance trains, but on some routes, dining carriages have become extinct due to covid-19 restrictions. Check in advance if food is available on board or simply pack some snacks to be on the safe side. On many trains, you will also see hawkers patrolling the aisles during the journey and selling soft beverages and snacks. Alcohol drinks are prohibited on trains.
  • Smoking is prohibited, too, if, of course, you are not travelling by a common class somewhere in China or Indonesia!
  • Arrive at the train station at least half an hour before departure to allow enough time to find your platform and go through check-in formalities. A passport or other ID which you use for buying your train ticket is almost always needed, so keep it at hand to produce when asked at check-in or boarding.
  • Trains may arrive at their destination later than scheduled. These delays are not uncommon, especially for long-haul routes. Be ready and plan accordingly. Yet compared to buses, trains are less weather and traffic dependent hence more reliable schedule-wise.

Transportation from Shanghai to Beijing

Facts about the train from Shanghai to Beijing

Cheapest Train$82
Fastest Train4h 24m
Earliest Train6:31 AM
Latest Train7:25 PM
Daily Train Routes310
Distance1209 kilometers
TrainChina Railway, HK INT