Quick answer
To travel from Beijing to Shanghai by train, ride the Beijing–Shanghai HSR: G trains leave Beijing South for Shanghai Hongqiao 90+ times a day, take 4h 18m at the fastest, and cost CNY 522–553 in second class — buy on 12306 or Trip.com with your passport, show the passport at the station's document lane, and board at the gate letter on the board. It is the flagship of a 48,000+ km network that rides like flying: e-tickets bound to your passport, security screening, gates that close 5 minutes before departure, and 300–350 km/h cruise speeds. Arrive 45–60 minutes early and keep your power bank in your cabin bag. Last verified: 2026-10-20.
Why this matters in 2026
HSR is how China moves: over 3 billion passenger rides a year, trains every 10–20 minutes on trunk routes, and station-to-station punctuality that airlines cannot match at under 1,500 km. For travelers it reshapes itineraries — Chengdu to Xi'an is 3–4 hours by rail versus a half-day by road; Hangzhou sits 45–60 minutes from Shanghai. The system is also intimidating only from outside: in practice it is three moves (security, gate, seat) with excellent English signage at major stations. What trips visitors is procedural, not physical — passport lanes, gate closing times, and the class system — and all three are on this page.
Key facts at a glance
- Network: 48,000+ km of HSR; all provincial capitals and most major cities covered
- Train letters: G = 300–350 km/h flagship; D = 200–250 km/h; C = intercity shuttles
- Benchmark runs: Beijing–Shanghai 4.5 h (CNY 500–660 second class); Beijing–Guangzhou ~7.5–8 h; Shanghai–Hangzhou 45–60 min (CNY 73–117)
- Seat classes: second class 3+2 (the default), first class 2+2, business class 1+2 with lie-flat seats
- Gates: ticket checks open 15 minutes before departure and close 5 minutes before; passport riders use staffed lanes
Beijing–Shanghai, the benchmark run (spot-checked against 12306):
| Train | Route | Duration | Second class |
|---|---|---|---|
| G1 | Beijing South → Shanghai Hongqiao | 4h 18m | CNY 553 |
| G21 | Beijing South → Shanghai Hongqiao | 4h 21m | CNY 553 |
| G13 | Beijing South → Shanghai Hongqiao | 4h 22m | CNY 553 |
| G7 | Beijing South → Shanghai Hongqiao | 5h 50m | CNY 522 |
| G101 | Beijing South → Shanghai Hongqiao | 6h 13m | CNY 522 |
90+ services daily; fares float by demand, so treat the fare column as the current anchor rather than a guarantee.
Step-by-step walkthrough
Step 1: Arrive at the right station, 45–60 minutes early
Megacities have multiple HSR stations (Beijing South vs. Beijing West vs. Fengtai) — your ticket names the exact one. Security screening (passport + bag X-ray) and the walk to your gate at a mega-station can each eat 10–20 minutes.
Step 2: Clear the real-id gate
Entry to the station hall needs your passport at the manual document lane (auto gates at most stations read Chinese IDs only; a growing minority of stations now have passport-capable machines — follow the staff). Bags go through X-ray. Water is fine; knives and loose lithium in checked rules apply like airports.
Step 3: Find the waiting room and your boarding gate
Boards list trains by number (车次, e.g., G17) with the gate letter (检票口 A/B). Trains board 15 minutes out and the gate shuts 5 minutes before departure — the schedule is not aspirational. Waiting rooms have hot water, convenience stores, and charging benches.
Step 4: Board and find your seat
The gate scans your passport (staff lane) and your face. Onboard, carriage and seat numbers run 01–16 carriages; second class is 3+2 (A/B/C + D/F — note there is no E), first 2+2 (A/C + D/F), business 1+2. Luggage goes on the overhead racks or the racks at carriage ends.
Step 5: Ride by the onboard rules
Smoking anywhere — including vestibules and toilets — triggers alarms and fines plus future booking bans; it is the one rule with teeth. Hot water is free at carriage ends; the dining car sells CNY 15–45 boxed meals, and 12306's meal delivery brings restaurant food to your seat at major stops. Phone signal holds through most tunnels.
Step 6: Exit with the flow
Arrival gates open 2–3 minutes before stopping. Follow 出站口 signs; your passport is not checked again on exit at most stations. Taxis, metro, and ride-hail zones are all signed from the arrival level.
Common scenarios and use cases
1. Beijing–Shanghai business run
G trains depart Beijing South every 20–30 minutes; 4.5 hours, second class CNY 500–660 (floating by demand), first class roughly CNY 1,000. Pick a 静音车厢 (quiet car) booking on Fuxing services if you will work.
2. Shanghai–Hangzhou day trip
45–60 minutes each way, CNY 73–117, departures every 10–20 minutes — no advance booking needed beyond a few hours. Hangzhou East station connects to West Lake by metro in 30 minutes.
3. Chengdu–Xi'an through the mountains
3–4 hours through tunnels and viaducts, second class around CNY 260–320. Signal dips in the long tunnel sections; download entertainment before boarding.
4. Overnight-range day seat vs. sleeper
For 1,000+ km, some D trains run sleeper (动卧) services overnight — Beijing–Shanghai in ~11 hours lying down, from about CNY 600–900. Daytime HSR beats it on every count except saving a hotel night.
Costs and pricing breakdown
- Second class: roughly CNY 0.4–0.5 per km (Beijing–Shanghai CNY 500–660)
- First class: about 1.6× second class
- Business class: about 3× second class
- Standing tickets (short runs): same price as second class, no seat
- Children: under 1.2 m free; 1.2–1.5 m half price
- Meal on board: CNY 15–45; delivered restaurant meals CNY 30–70
Per-kilometre value ranking plus second/first-class fares for all 20 trunk lines: our HSR price index, verified route by route.
Pitfalls to avoid
- Going to the wrong station in the same city: Beijing has five major rail terminals; the ticket names yours — double-check before every departure.
- Cutting the gate timing: the 5-minute closure is enforced; at 300 km/h there is no waiting for stragglers.
- Ticket name not matching the passport exactly: the gate checks the document, not the person's face alone — one typo in the booking and the staffed lane sends you to rebook.
- Smoking in the vestibule: alarms stop the train's booking system for you personally — fines start around CNY 500 plus a 180-day ticketing ban.
- Assuming the seat lettering is Western: there is no E seat; F is the window on the 2-side. A/C are aisle+window in first class.
Alternatives and trade-offs
- Flying: faster on paper above 1,500 km, but door-to-door HSR usually wins below that once you count airport transfers and security.
- Conventional overnight trains (Z/K): half to a third the price, 2–3× the time; the sleeper remains a genuine experience and a hotel-night saver.
- Buses: cheapest, for routes HSR has not reached; book via apps, bring motion-sickness supplies.
- Private car: only for scenic corridors (Guilin–Yangshuo); CNY 2–4 per km with a driver.
Local context and customs
The HSR car is a cross-section of contemporary China: students on laptops, aunties with peeled eggs, businessmen on calls that end when the quiet-car conductor glares. Seat-back etiquette is real — recline slowly, announce yourself when passing (借过), and offer to swap if a family got split. The tea ritual survives at 350 km/h: the hot-water dispenser at the carriage end refills a thousand instant-noodle cups a day, and the smell of 老坛酸菜 is the true national soundtrack of rail travel. Punctuality is a civic pride point — the departure board countdown is treated like a launch window.
Verifying current information
Timetables refresh quarterly; prices float by demand since 2020-ish. Last verified October 11, 2026. Reconfirm through:
- 12306: https://www.12306.cn — official timetable and live prices (English UI available)
- Trip.com: English booking with train-type explanations
- Station announcement screens: day-of platform and delay truth
- Amap/Baidu: last-train and station-facility info
Putting it all together
The ride formula: passport in pocket, arrive 45–60 minutes early, clear the document lane, wait at gate letter from the board, board 15 minutes out, and let the 350 km/h do the rest. Budget CNY 0.4–0.5 per km in second class, eat before boarding or order 12306 delivery to your seat, and never plan a connection tighter than 30 minutes between two HSR trains. Master one ride and you have mastered the whole country's rail network — the system is identical from Harbin to Kunming.
FAQ
Do I need to print my ticket?
No — e-tickets bind to your passport. You show the passport at security and at the boarding gate; that is the entire transaction.
How do I travel from Beijing to Shanghai by train?
Buy a G-train ticket on 12306 or Trip.com with your passport as the ID, pick Beijing South as the departure station (Shanghai Hongqiao on arrival), and arrive 45–60 minutes early. Trains run 90+ times daily from early morning into the evening; the fastest take 4h 18m and second class costs CNY 522–553. At the station: document lane, then the gate letter on the board, boarding 15 minutes out.
How much does the Beijing–Shanghai train cost?
Second class runs CNY 522–553 depending on the service; first class is roughly CNY 1,000 and business class about 3× second class. Fares float with demand.
Can foreign passports use the automatic gates?
At most stations, no — staffed lanes handle passports (30–60 seconds). A few big stations have passport-capable machines; staff will direct you.
Is Wi-Fi available onboard?
On newer Fuxing trains, free Wi-Fi exists but is patchy at 350 km/h. Mobile 4G/5G signal is the practical internet, with dips in long tunnels.
How much luggage can I bring?
Rules say 20 kg per adult with size limits; enforcement is lenient for two normal suitcases. Oversized items travel as freight — ask at the station.
Can I eat on board?
Yes, and most people do. Instant noodles at the hot-water dispenser are a national institution; strong-smelling food draws looks in quiet cars.
Are there toilets onboard?
Yes — western-style toilets in at least one carriage per train, plus squat-style. At the end cars, with a wash basin.
What if I miss my train?
Same-day rule: you can change to a later train's standing or free seats at the ticket window before that train departs — go immediately, do not dawdle.
Is HSR really always on time?
Trunk-route punctuality runs high — departures within a minute are the norm. Weather (typhoon, deep snow) can slow or suspend lines; announcements and 12306 push notices when it happens.
