Train Travel Guide

Beijing to Xi'an to Shanghai by Train: The First-Timer's Route Blueprint

Three cities. Two train rides. One unforgettable introduction to China. The complete blueprint for riding the rails from the imperial capital to the ancient Silk Road gateway to the futuristic eastern seaboard—without the guesswork.

If you're visiting China for the first time, this is the route. The "Golden Triangle" compresses 3,000 years of Chinese civilization into a single trip—and high-speed rail connects all three cities in under six hours per leg. No airport lines, no weather delays, no suburban airport treks. City center to city center, watching the landscape shift from the North China Plain through the Loess Plateau to the Yangtze Delta.

1. Why This Route: The "Golden Triangle" Explained

Travel industry insiders call it the "Golden Triangle" because Beijing, Xi'an, and Shanghai together compress 3,000 years of Chinese civilization into a single trip. Here's what each city represents:

CityWhat It RepresentsEraMust-See Highlight
BeijingImperial power and political heartMing/Qing dynasties → modern capitalThe Great Wall + Forbidden City
Xi'anAncient civilization and Silk Road gateway13 dynasties, 3,100 years of historyTerracotta Army + City Wall
ShanghaiChina's future and global commerce19th-century treaty port → 21st-century megacityThe Bund skyline + French Concession

The logic is simple: Beijing shows you where China was, Xi'an shows you where China began, and Shanghai shows you where China is going. You travel chronologically through time while moving geographically from north to east.

And critically—unlike a decade ago when domestic flights were the only practical option—China's high-speed rail network now makes this route seamless. You board in city centers and arrive in city centers, watching the landscape shift from the flat North China Plain through the golden-brown Loess Plateau and finally to the lush Yangtze Delta.

2. How Many Days You Really Need

The single biggest mistake first-timers make is cramming this route into five days. You'll spend half your time on trains and the other half standing in ticket lines.

DurationVerdictWhat You Get
5–6 daysToo rushedHit-and-run highlights only; you'll miss depth
7–8 daysMinimum viableCore sights in each city, but tight
9–10 daysSweet spotFull experience with breathing room
12–14 daysLuxury paceSide trips to Luoyang, Nanjing, or Suzhou

Recommended Split

CityMinimum DaysIdeal DaysWhy
Beijing34Great Wall alone takes a full day; Forbidden City + Tiananmen another; temples and hutongs a third
Xi'an23Terracotta Army is a half-day trip; City Wall, Muslim Quarter, and Shaanxi History Museum need another day
Shanghai23Bund + Yu Garden + French Concession in two days; third day for a water town like Zhujiajiao
For first-timers, 10 days is the sweet spot: four days in Beijing, three in Xi'an, three in Shanghai. This gives you one buffer day for travel delays, jet lag recovery, or simply wandering without an agenda—which is when the best China moments happen.

3. The Train Network: What You're Riding On

China's high-speed rail network is the largest in the world—over 48,000 kilometers of track carrying trains at 300–350 km/h. For this route, you'll be riding two main lines:

LegRailway LineDistanceTravel TimeTop Speed
Beijing → Xi'anBeijing-Guangzhou HSR + Zhengzhou-Xi'an HSR1,216 km (756 mi)4–6 hours350 km/h
Xi'an → ShanghaiZhengzhou-Xi'an HSR + Beijing-Shanghai HSR~1,500 km (932 mi)6–7 hours350 km/h

What to Expect Onboard

💺

Seating

Three classes: Second Class (3+2 layout), First Class (2+2, wider), Business Class (2+1, lie-flat). Second Class is perfectly comfortable for all legs.

🔌

Power & Wi-Fi

Power outlets at every seat on modern G-trains. Free Wi-Fi available but often slow and requires a Chinese phone number to log in.

🍜

Food & Drink

Snack carts with boxed meals (¥30–45), instant noodles, and drinks. Free hot water dispensers at carriage ends for tea and noodles.

🧳

Luggage

Generous overhead racks plus large storage at carriage ends. One large suitcase (up to 20 kg) plus carry-on is fine. No strict enforcement.

🚻

Toilets

Both Western-style and squat toilets available. Clean, well-maintained on G-trains. Bring your own tissues just in case.

📢

Announcements

Bilingual in Mandarin and English on most G-trains. Station arrival announcements are clear and timely.

Key Stations You'll Use

StationCityMetro LinesTip
Beijing West (北京西)BeijingLine 7, Line 9Trains to Xi'an depart here. Arrive 40 min early—it's massive.
Beijing South (北京南)BeijingLine 4, Line 14Direct Beijing–Shanghai trains leave from here.
Xi'an North (西安北)Xi'anLine 2, Line 4, Line 1415 km from downtown; 30 min by Metro Line 2.
Shanghai Hongqiao (上海虹桥)ShanghaiLine 2, Line 10, Line 17Connected to Hongqiao Airport (SHA). Not Pudong (PVG).
Critical tip: Always check which station your train departs from. Beijing has multiple major stations, and going to the wrong one is the #1 reason foreigners miss their trains.

4. Beijing to Xi'an: Your First Leg

This is the easier of the two train rides—shorter, more frequent, and through dramatic scenery as you climb from the North China Plain onto the Loess Plateau.

MetricDetails
Daily G-trains~23 departures
First departure06:38
Last departure19:00
Fastest journey4h 10m (G323)
Typical journey4.5–5.5 hours
Second Class fare¥470–578 (US$69–85)
First Class fare¥753–923 (US$110–135)
Business Class fare¥1,453–1,816 (US$213–266)

Which Train to Book

Your SituationRecommended TrainWhy
Want afternoon free in Xi'anG89 or G321 (~07:00 → ~11:20)In Xi'an by lunch; full afternoon for sightseeing
Prefer a relaxed morningG329 (~11:00 departure)No alarm stress; arrive by late afternoon
Want scenic daylight rideAny 09:00–14:00 departureBest light for Loess Plateau scenery
On a budgetOvernight D-train (D43, 20:30)Arrives ~08:23; saves a hotel night. Sleeper ¥350–373.
Scenery highlight: The stretch between Luoyang and Xi'an, where the train threads through mountains and plateau landscapes, is the most visually dramatic part of the journey. Sit on the right side for the best views.

5. Xi'an to Shanghai: The Long Haul

This is the longer leg—6 to 7 hours—and the one where your choice of train vs. flight matters most.

Train vs. Flight: Xi'an to Shanghai

FactorHigh-Speed TrainFlight
Travel time6–7 hours2.5h flight + 2h airport = ~4.5 hours
Cost (economy)¥670–740 (US$92–102)¥400–1,200 (US$55–165)
DepartureXi'an North (city center)Xianyang Airport (47 km from downtown)
ArrivalShanghai Hongqiao (city center)Pudong or Hongqiao (varies)
SceneryYellow River, Henan plains, Yangtze DeltaAerial views, mostly clouds
Reliability99%+ on-timeSubject to weather/ATC delays
LuggageNo weight enforcement20 kg checked + 5 kg carry-on
Take the train. The 6–7 hour ride sounds long, but it's door-to-door competitive with flying once you factor in airport transit (Xi'an's airport is 47 km away), check-in time, and China's frequent air traffic control delays. Plus, you'll see the landscape transition from dry northwest through central plains to the green, water-laced Yangtze Delta.

Which Train to Book

Your SituationRecommended DepartureWhy
Arrive for dinner08:00–09:00In Shanghai by 14:00–15:00; time to check in and explore
Relaxed morning11:00–13:00No rush; arrive Shanghai by evening
Best scenery09:00–10:00Full daylight for the entire route
G-trains sold outOvernight Z/T/K train14–21 hours, sleeper berth; cheaper but slower
Scenery highlight: The approach to Shanghai in the final hour—endless green paddies, canal networks, and increasingly dense urban development—is a visual preview of China's economic engine.

6. Buying Train Tickets as a Foreigner

This is the part that intimidates first-timers the most. It shouldn't.

Booking Platforms Compared

PlatformEnglishForeign PassportForeign CardFeeBest For
Trip.com¥20–40/ticketFirst-timers; easiest overall
12306.cn (official)PartialLimitedNoneReturning visitors; best prices
China DiscoveryService feeHassle-free; includes support
Station ticket officeCash/AlipayNoneLast-minute emergency only

Step-by-Step Booking Guide

1️⃣

Create Account

Sign up on Trip.com 2+ weeks before your trip. Add your passport details—required for every ticket.

2️⃣

Set Reminder

Tickets open 15 days before departure. Popular trains sell out within hours. Set a calendar alert.

3️⃣

Search & Select

Enter city names (e.g., "Beijing" to "Xi'an"). Platform auto-assigns correct station. Pick train + seat class.

4️⃣

Pay & Confirm

Trip.com accepts Visa, Mastercard, Amex. You'll receive a booking confirmation with QR code.

5️⃣

Board with Passport

No paper ticket needed. Your passport IS your ticket. Scan it at the self-service gate at the station.

6️⃣

Enjoy the Ride

Find your carriage and seat number on your booking. Trains are spotless, fast, and genuinely fun to ride.

Ticket Timing Cheat Sheet

ScenarioWhen to Book
Off-season (Nov–Mar, excl. holidays)3–5 days before departure
Shoulder season (Apr–May, Sep–Oct)7–10 days before departure
Peak season (Jul–Aug, CNY, Golden Week)The moment tickets open (15 days before)

7. What It Costs: Full Budget Breakdown

Expense CategoryBudget (US$)Mid-Range (US$)Comfort (US$)
International round-trip flight500–900700–1,2001,500–3,000
Train tickets (BJ→XA→SH)160–170160–170250–350 (First Class)
Accommodation (9 nights)270–450540–9901,800–2,700
Local transport50–8080–150150–300
Food (9 days)90–135180–270450–900
Attraction tickets50–7070–100100–150
Visa (if required)30–9030–9030–90
VPN + SIM/eSIM + apps20–4020–4020–40
Total (excl. intl. flight)$670–935$1,080–1,810$2,800–4,530

Major Attraction Ticket Prices

AttractionCityPrice (¥)Price (US$)Booking Required?
Forbidden CityBeijing608.50Yes, 7 days ahead
Great Wall (Mutianyu)Beijing40 + 120 cable car5.60 + 17No (book shuttle)
Temple of HeavenBeijing344.80No
Summer PalaceBeijing304.20No
Terracotta ArmyXi'an12017No (book guide)
Xi'an City WallXi'an54 + 45 bike7.50 + 6.30No
Shaanxi History MuseumXi'anFree (30 exhibit)Free / 4.20Yes, book ahead
Yu GardenShanghai405.60No
Shanghai Tower ObservatoryShanghai18025No
Huangpu River CruiseShanghai100–15014–21No
The Terracotta Army and Xi'an City Wall together cost ¥174 (US$24). A single day at Disney costs US$150+. China's attraction pricing is genuinely budget-friendly—your biggest expenses will be hotels and international flights.

8. Where to Stay in Each City

Beijing: Stay Central

AreaVibePrice/Night (¥)Walk To
Wangfujing / DongdanCommercial, central, convenient400–1,500 (US$55–210)Forbidden City, shopping, subway
Qianmen / DashilarHistoric hutong atmosphere300–1,000 (US$42–140)Tiananmen, hutong walking
SanlitunModern, nightlife, international500–2,000 (US$70–280)Embassies, bars, dining
Shichahai / NanluoguxiangLakeside, hutong culture, charming350–1,200 (US$49–168)Houhai lakes, hutong alleys

First-timer pick: Wangfujing. 15 minutes' walk from the Forbidden City, on two subway lines, surrounded by restaurants and shops.

Xi'an: Stay Inside the Wall

AreaVibePrice/Night (¥)Walk To
Bell Tower / Muslim QuarterHeart of old city, food everywhere200–800 (US$28–112)Bell Tower, Muslim Quarter, City Wall
South Gate (Yongningmen)Near City Wall, quieter250–900 (US$35–126)City Wall, short taxi to museum
Great Wild Goose PagodaModern hotels, evening fountain show300–1,000 (US$42–140)Pagoda, Tang Paradise

First-timer pick: Bell Tower area. Walk to the Muslim Quarter for dinner, the City Wall for a sunset bike ride, and the Bell Tower for photos. Everything within 15 minutes on foot.

Shanghai: Stay Where You'll Explore

AreaVibePrice/Night (¥)Walk To
The Bund / Nanjing EastIconic skyline, tourist central600–2,500 (US$84–350)The Bund, Nanjing Road, Yu Garden
French Concession (Xuhui)Leafy streets, cafes, boutiques500–2,000 (US$70–280)Wukang Road, Tianzifang, Xintiandi
Jing'anCentral, business, mixed450–1,800 (US$63–252)Jing'an Temple, shopping, subway hub
Pudong (Lujiazui)Futuristic, skyscraper views600–3,000 (US$84–420)Shanghai Tower, Oriental Pearl

First-timer pick: The Bund or Nanjing East Road. Yes, it's touristy, but for a first visit you want to walk outside and see the Bund. Stay on the Puxi (west) side—not Pudong.

9. Common Mistakes First-Timers Make

❌ Mistake #1: Booking the Wrong Beijing Station

Beijing has five major railway stations. Trains to Xi'an leave from Beijing West (北京西). Trains to Shanghai leave from Beijing South (北京南). Getting them mixed up means a 40-minute, ¥60 taxi ride—and probably a missed train.

Fix: Triple-check the station name on your ticket. The Chinese characters matter: 西 = West, 南 = South, 北 = North, 东 = East.
❌ Mistake #2: Arriving 15 Minutes Before Departure

Chinese high-speed rail stations are airport-sized. Beijing West has 18 platforms across three levels. Security, ticket check, and walking to your platform can take 25–35 minutes.

Fix: Arrive 40–45 minutes before departure. Waiting halls have food courts, shops, and free Wi-Fi.
❌ Mistake #3: Skipping the Terracotta Army Guide

The pits have minimal English signage. Without a guide, you're looking at clay soldiers with zero context. With a guide, you learn each warrior has a unique face, the paint disintegrates in minutes, and archaeologists are still excavating.

Fix: Hire an English-speaking guide at the entrance (¥150–200 / US$21–28). It's the best US$25 you'll spend in China.
❌ Mistake #4: Eating Only in Tourist Areas

Restaurants on Nanjing Road and the Muslim Quarter main strip are overpriced and underwhelming. The good food is one street over.

Fix: Use Dianping (China's Yelp) or ask your hotel where they eat. In Xi'an, walk 100m past the Muslim Quarter main street—side alleys have the real biangbiang noodles.
❌ Mistake #5: Not Booking the Forbidden City 7 Days Ahead

The Forbidden City requires advance online booking. Tickets are released 7 days before and sell out—especially April–October. There are no walk-up tickets. None.

Fix: Book exactly 7 days before at 8 PM Beijing time on the official Palace Museum website. Use your passport number.
❌ Mistake #6: Going to Badaling Great Wall

Badaling is the closest section to Beijing and therefore the most crowded. On an October weekend, you'll be shoulder-to-shoulder with 70,000 other visitors.

Fix: Go to Mutianyu instead. 30 minutes further but dramatically less crowded, with cable car and toboggan slide. Book a shuttle from downtown in advance.

10. The 10-Day Blueprint: Day-by-Day

1

Beijing (Days 1–4)

DayMorningAfternoonEvening
Day 1Arrive Beijing; check in; recover from jet lagTiananmen Square + Forbidden City (book 7 days ahead!)Jingshan Park sunset over Forbidden City; Peking Duck dinner
Day 2Great Wall at Mutianyu (full day—book shuttle)Cable car up, toboggan slide downHouhai lakeside bars
Day 3Temple of Heaven (6 AM for local exercises)Hutong walking (Nanluoguxiang side alleys); Summer PalaceWangfujing night market (lamb skewers)
Day 4798 Art District or Lama Temple13:00 G-train to Xi'an (arrive ~17:30)First night in Xi'an: Bell Tower, roujiamo
2

Xi'an (Days 5–7)

DayMorningAfternoonEvening
Day 5Terracotta Army (hire guide!; depart 08:00)Huaqing Palace (nearby)Muslim Quarter food crawl: biangbiang noodles, lamb skewers
Day 6Shaanxi History Museum (book ahead)City Wall bike ride (South Gate; 14 km loop)Giant Wild Goose Pagoda fountain show (free, 20:00)
Day 7Flexible: Xi'an Museum, Great Mosque, cooking class13:00 G-train to Shanghai (arrive ~19:30)Late dinner near Hongqiao or hotel delivery
3

Shanghai (Days 8–10)

DayMorningAfternoonEvening
Day 8Yu Garden (go at 08:30 opening)The Bund walking tour + Nanjing East RoadHuangpu River cruise (¥100–150); French Concession dinner
Day 9French Concession walking (Wukang → Anfu → Yongkang)Shanghai Tower observation deck (546 m) or Power Station of ArtXintiandi nightlife or jazz bar on the Bund
Day 10Zhujiajiao water town (45 min Metro Line 17) or Tianzifang shoppingDepart Shanghai

Train Summary

LegDayTrain TypeDurationCost (2nd Class)
Beijing → Xi'anDay 4G-train4.5–5.5 hrs¥515 (US$72)
Xi'an → ShanghaiDay 7G-train6–7 hrs¥670 (US$93)

Visa Quick Check

🛂

30-Day Visa-Free

Available for citizens of 54+ countries (France, Germany, Italy, Spain, Malaysia, and more). Check current list—if eligible, no visa needed for this 10-day trip.

⏱️

240-Hour Transit Visa

Transiting through China to a third country? Stay up to 10 days visa-free. Beijing and Shanghai both qualify as entry/exit ports.

📋

Standard L Visa

If your country isn't visa-free, apply at a Chinese embassy or consulate 4–6 weeks before departure. Cost: US$30–90 depending on nationality.

Before booking anything, check whether your passport qualifies for visa-free entry or the 240-hour transit visa. It could save you US$30–90 and weeks of paperwork.

FAQ: Your Questions Answered

Can I do this route in reverse (Shanghai → Xi'an → Beijing)?
Absolutely. The trains run in both directions with identical frequencies and prices. Choose your direction based on which city has cheaper or better international flight connections.
Is the train safe for solo travelers?
Yes. China's high-speed rail is extremely safe and well-monitored. Stations have security screening, and trains have attendants in every carriage. Solo travelers—including women—report feeling safer on Chinese trains than on most European rail networks.
Can I buy food on the train?
Yes. Food carts pass through every 1–2 hours with boxed meals (¥30–45 / US$4–6), instant noodles, snacks, and drinks. The selection is limited, so bring your own snacks for the Xi'an–Shanghai leg. Hot water is free at the end of each carriage.
What if I miss my train?
Go to the ticket office immediately. You can change your ticket to a later train on the same day for a small fee (usually ¥20–50), subject to availability. This is only possible on the day of travel—if the day is over, your ticket is void.
Do I need to pick up a paper ticket?
No. Since 2020, China's high-speed rail uses e-tickets. Your passport is your ticket. Simply scan it at the self-service gate. If the gate can't read your passport, use the manual channel—show your booking confirmation and passport.
Is Wi-Fi available on the train?
Most G-trains offer free Wi-Fi, but it's often slow and requires a Chinese phone number to log in. Download a VPN before entering China, and consider getting a Chinese SIM card or eSIM at the airport for reliable data.
Should I book a tour or travel independently?
If you're comfortable navigating with Google Translate and have your hotels and train tickets booked, independent travel is perfectly doable. If you want to skip the logistics—especially the Forbidden City booking, Great Wall shuttle, and Terracotta Army guide—a private tour with English-speaking guides is worth it.
Customized China Tours Tailored Just for You