Beijing, Xi’an and Shanghai form the only three-city route in China where every leg is a direct high-speed train: about four and a half hours from Beijing to Xi’an and about six hours from Xi’an to Shanghai. Eight days covers the three cities, nine is comfortable, ten adds a spare half-day in each. The order is fixed – Xi’an sits between the two.
- Beijing to Xi’an: G-train 4h30-6h, Beijing South to Xi’an North
- Xi’an to Shanghai: G-train about 6h, Xi’an North to Shanghai Hongqiao
- Forbidden City: 7 days ahead, released 20:00 Beijing time, CNY 60 in peak season 2026
- Best length: 8 days minimum, 9 comfortable, 10 with slack
Last verified: 29 October 2026 · Sources: National Immigration Administration (NIA), Forbidden City ticketing, China Railway 12306
Why does the Beijing-Xi’an-Shanghai route work so well?
Because the three cities sit on one straight high-speed corridor, and every leg is a direct train with no connection and no airport transfer. Beijing to Xi’an runs four and a half to six hours, Xi’an to Shanghai about six, and Beijing to Shanghai about four and a half if you need the direct link instead. No other three-city set in China gives you that.
The second reason is content: an imperial capital, an archaeological site, and a modern port city, three different versions of the country, none of which is a museum piece. The triangle is also the safest first trip because each city is large enough to absorb a bad weather day without wrecking the plan.
Who should not take it: travelers who want landscape rather than cities, families with children under five, and anyone who has already seen Beijing. The walking load is the other honest warning – a Forbidden City day, a Great Wall day and a Bund day each run 12,000 to 18,000 steps (editorial estimate), so build one slow afternoon into every three days.
What do the train legs actually look like?
Three stations carry the route, and knowing which one is which is the difference between a relaxed morning and a missed train. Beijing South and Shanghai Hongqiao are large, signposted in English, and busy; Xi’an North is smaller and a 20-minute metro ride from the city wall.
| Leg | Stations | Journey time | When to take it | Failure mode |
|---|---|---|---|---|
| Beijing to Xi’an | Beijing South to Xi’an North | 4h30-6h | Morning departure, before 10:00 | An evening arrival loses the city wall |
| Xi’an to Shanghai | Xi’an North to Shanghai Hongqiao | About 6h | Departure before 10:00 | A late arrival loses the Bund at dusk |
| Beijing to Shanghai | Beijing South to Shanghai Hongqiao | About 4h30 | Only if you skip Xi’an | You have deleted the middle of the route |
Foreign nationals from 55 countries holding an onward ticket to a third country or region may transit visa-free for up to 240 hours through 65 open ports, staying within the province, autonomous region or municipality where they entered. – National Immigration Administration, 240-hour transit policy summary, checked 29 October 2026 (translated from Chinese).
Practical point that catches people: at Beijing South, the passport check and security queue takes longer than the platform walk, so arrive 45 to 60 minutes before departure, not 20. Your passport is the ticket – there is nothing to print and nothing to collect.
On the train itself, second class is fine for four and a half hours and first class is not worth the difference on this route; the luggage racks take a cabin bag and a full suitcase fits at the end of the car. Food is sold on board but is not the point of the journey, so buy lunch at the station before boarding. The one thing to avoid is a same-day connection under two hours at either end, because a delayed G-train is common enough that a tight transfer will not survive it.
Is Xi’an really between Beijing and Shanghai?
On the map, yes, and in the timetable it matters more than the map suggests. Xi’an sits west of the Beijing-Shanghai line, so it is not literally on the way, but it is the only city where both long legs run direct. Put it between the two and two train days do all the moving. Put it at either end and you add a third long leg.
The sequencing mistakes are predictable. The first is Beijing, Shanghai, then Xi’an, which forces a six-hour backtrack on the last day and usually a flight. The second is putting Xi’an first, which means landing, clearing immigration, and immediately taking a six-hour train. The third is treating Shanghai as the departure city without checking the flight time: a 09:00 departure from Pudong means leaving the hotel at 06:15.
How many days should each city get – 8, 9 or 10?
Eight days is the minimum that works: three in Beijing, two in Xi’an, two in Shanghai, with the eighth day split between travel and departure. Nine adds a full extra day, and ten lets you add a spare half-day per city. Anything under eight forces you to cut a city, and the honest cut is Shanghai if you want the Great Wall and Chengdu instead.
| Length | Beijing | Xi’an | Shanghai | What you gain |
|---|---|---|---|---|
| 8 days | 3 nights | 2 nights | 2 nights | The core sights, no slack |
| 9 days | 3 nights | 3 nights | 2 nights | A second Xi’an day, or a slow Beijing day |
| 10 days | 4 nights | 3 nights | 3 nights | Half a spare day per city, weather cover |
Whichever length you pick, keep the two travel days free of fixed evening plans. A train that leaves at 09:00 means leaving the hotel at 07:15, and a G-train that is 40 minutes late is normal enough that you should not book a timed ticket for the same evening.
What can you do with a spare half-day in each city?
Beijing’s spare half-day is best spent north of the Forbidden City: Jingshan Park for the roof view, then the hutong lanes around Nanluoguxiang, about three hours on foot. Xi’an’s is the city wall at dusk, cycled in an hour and a half, which also solves the “what do we do after the Terracotta Army” question. Shanghai’s is the French Concession on foot, two hours, ending at a café.
Those three half-days are what the ten-day version buys you. If you have them, use them for the thing that got rained out rather than adding a fourth sight.
Should you run the route in reverse?
Yes, and for some passports it is the better order. Shanghai first puts the easiest arrival in front of you – Pudong or Hongqiao, then the maglev at CNY 50, then Line 2 – and Beijing last means the Forbidden City is at the end of the trip, which only works if you can fix the seven-day booking window around your departure date. Both directions run the same trains.
The reverse order has one real cost: Beijing’s early starts (the Great Wall, the Forbidden City) come at the end, when you are more tired. If you are travelling with children, keep Beijing first – the jet lag is easier to absorb in a city where everything opens early.
Either way, book an open-jaw ticket – into Beijing and out of Shanghai, or the reverse – rather than a return to the same city. A return fare means a four-and-a-half-hour train back on your last day, which is exactly the leg the triangle is designed to avoid.
What does nine days look like day by day?
Nine days is the version we recommend to most first-time visitors, because it gives Xi’an the second night the Terracotta Army deserves. The table is the shape of the trip; each day’s detail belongs in the two itineraries linked at the bottom.
| Day | Base | Plan | Transport |
|---|---|---|---|
| 1 | Beijing | Arrive, hutong walk 2h | Airport Express CNY 25 |
| 2 | Beijing | Forbidden City 3h, Jingshan 1h | Metro |
| 3 | Beijing | Great Wall at Mutianyu 4h | Car, 2h each way |
| 4 | Xi’an | G-train, then city wall 1.5h | 4h30-6h |
| 5 | Xi’an | Terracotta Army 4h, pagoda 1h | Bus, 1h each way |
| 6 | Xi’an | Muslim Quarter, Shaanxi museum 3h | Metro |
| 7 | Shanghai | G-train, then Bund 1.5h | About 6h |
| 8 | Shanghai | Yu Garden 1.5h, French Concession 2h | Metro |
| 9 | Depart | Museum 2h, airport | Maglev CNY 50 |
What goes wrong in peak season, and how do you avoid it?
Three things, all of them booking failures rather than travel failures: the Forbidden City sells out on the release day, trains sell out for the first and last days of a holiday, and hotels in Shanghai double in price for the first week of October. The fixes are unglamorous – set an alarm, book trains the day your dates are fixed, and avoid National Day week entirely if you can.
- The 20:00 release is 20:00 Beijing time: that is 12:00 UTC, so 08:00 in New York in summer and 07:00 in winter.
- 2026 peak dates: Chinese New Year 15-23 February, National Day 1-7 October, May Day, and the July-August summer rush.
- You cannot buy a same-day Forbidden City ticket, and there is no on-site box office to fall back on.
- A sold-out train is not the end: check 12306 for a later departure the same day before switching to a flight.
What does the triangle cost?
Mid-range, budget CNY 700 to 1,100 per person per day in Beijing and Shanghai and CNY 500 to 800 in Xi’an in 2026 (editorial estimates). Eight days lands around CNY 5,500 to 8,000 per person before trains and international flights, and ten days around CNY 7,000 to 10,000. Intercity trains are the variable that surprises people.
| Item | Daily range, mid-range | Notes |
|---|---|---|
| Beijing | CNY 700-1,100 | Hotel, food, tickets, metro |
| Xi’an | CNY 500-800 | Cheaper hotels, same ticket prices |
| Shanghai | CNY 800-1,300 | The most expensive of the three |
| Two G-train legs | Check 12306 | Fares vary by train and date; no public average worth quoting |
These are editorial estimates built from the hotel, food and ticket prices we checked, not quotes from an operator. The budget page has the category-by-category version.
Which version of the triangle should you book?
Book the eight-day version only if your dates are fixed and your leave is short. Book nine days if you want one relaxed day in Xi’an, which is the city most people rush. Book ten if you are travelling in July, August or the first week of October, when a rained-out day or a sold-out ticket needs somewhere to go.
Then book the pieces in the order of their deadlines: Forbidden City seven days ahead at 20:00 Beijing time, trains as soon as your dates are fixed, hotels after the trains, and everything else on arrival. The seven-day itinerary and the ten-day itinerary build this route out day by day; the city guides – Beijing, Xi’an and Shanghai – are where you go deeper on each stop.
Sources
- National Immigration Administration – visa-free entry and 240-hour transit rules.
- China Railway 12306 – official English timetable and booking site.
- Palace Museum ticketing – Forbidden City reservations, prices and closures.
- gov.cn – inbound visitor services, transport and payment guidance.
Ready to price it? The budget page turns these daily bands into a per-trip total, and the itineraries hub lists every route we have written up.