Hanoi to China by Train: Routes and Tickets

Green and yellow cross-border sleeper train standing at the platform of Gia Lam station in Hanoi
What this guide answers

  • The one daily train that crosses the border, and its published timetable
  • What the night is like, station by station, including both immigration stops
  • Ticket prices, where to buy, and why the name on the booking matters
  • The visa rule for your passport, and how to get a visa in Hanoi
  • High speed connections from Nanning, and the other land crossings

One train crosses the border, and it leaves at night

Destination plate on the cross-border train showing Ha Noi Gia Lam to Nam Ninh
The destination plate on this train. Both ends of the route are printed in Vietnamese and Chinese. Photo: Zhai Kaiqi / Wikimedia Commons / source page / CC BY-SA 4.0.
Green and yellow cross-border sleeper train standing at the platform of Gia Lam station in Hanoi
The cross-border sleeper at Gia Lam station in Hanoi, before the 22:20 departure for Nanning. Photo: Mars Hartdegen / Wikimedia Commons / source page / CC BY 2.0.

From Hanoi you can reach China by rail on a single overnight train that runs every day: MR1 on the Vietnamese side, T8702 once it enters China. It leaves Gia Lam station at 22:20, stops twice at the border, and arrives in Nanning at 10:06 the next morning. You stay in the same cabin the whole way; the only thing that changes is the country outside the window and the set of officials who want to see your passport.

It is not a fast train. It is roughly 400 km of single track, two immigration stops and a timetable built around freight. What it gives you instead is a night you would have spent in a hotel anyway, a land border crossed without a bus transfer, and a morning arrival in a city with metro line 1 running from the station forecourt.

Question Short answer
Where does it leave from Gia Lam station in Hanoi (481 Ngoc Lam), not Hanoi station. About 10 to 15 minutes by taxi or Grab from the Old Quarter.
How long is the whole trip 11 hours 46 minutes Hanoi to Nanning on the timetable, and expect 12 to 13 hours once the two border stops run long.
How often Daily in both directions.
What class Soft sleeper only, four berths per cabin, air conditioned. There is no hard seat and no day coach.
Where is the border You exit Vietnam at Dong Dang around 01:55 to 03:50, and enter China at Pingxiang around 04:31 to 06:05.
What does it cost The railway fare is reported around CNY 215; agencies quote around CNY 380 to 430 per berth including service. That is roughly USD 55 to 65.

The single most expensive mistake: you cannot use an e-visa or a visa on arrival at Dong Dang railway station. Your Chinese visa has to be issued and inside your passport before you board in Hanoi. There is no desk at the border that can fix this at 3 a.m.

Mobile data for the China side of the border

A China mainland eSIM activates when you cross, so maps, translation and train tickets keep working at Pingxiang and Nanning. Buy it before you leave Hanoi: the border does not sell tourist data plans.

  • China 4G/5G mainland eSIM (Klook): QR delivery by email, roaming based, so Google Maps and WhatsApp keep working without a separate VPN.
  • What to check: your phone must be unlocked and eSIM capable, and the plan must cover mainland China rather than Hong Kong only.

Affiliate disclosure: if you buy through this link, LaKà Travel may earn a small commission at no extra cost to you. The plan, coverage and refund terms are the provider’s.

The timetable, as published

These are the times operators publish for the current pair, checked in November 2026. Vietnam is one hour behind China, and the timetable below uses local time at each station, which is why the gap between Dong Dang and Pingxiang looks odd.

Station Country Arrive Depart
Hanoi (Gia Lam) Vietnam – 22:20
Bac Giang Vietnam 23:11 23:14
Dong Dang Vietnam 01:55 (next day) 03:50
Pingxiang China 04:31 06:05
Ningming China 06:52 06:55
Chongzuo China 07:56 08:01
Nanning China 10:06 –

The return service, MR2 and T8701, leaves Nanning at 18:05 and reaches Gia Lam at 06:30. Both are night trains, which is the point: the border formalities happen while you would otherwise be asleep on a bus or in an airport chair.

There is also a through service from Beijing. Z5 leaves Beijing West twice a week, connects with T8701 at Nanning, and the MR2 leg brings you into Gia Lam early morning two days later. In the other direction the numbers are Z6, T8702 and MR1, from Hanoi on Tuesdays and Fridays. The through carriages run a few days a week rather than daily, so if Beijing is your destination, check the current departure days before you build a plan around it.

What the night actually looks like

Twenty-two twenty is a civilised departure. Gia Lam is a small colonial-era station with a single platform for this train, and there is no restaurant, no convenience store and no food trolley on board. Eat before you go, and buy water and something for the morning while you are still in the city.

Platform and arched facade of Dong Dang railway station in Lang Son province at dusk
Dong Dang station, the Vietnamese side of the rail border, where the exit stamp is given around 02:00. Photo: [Tycho] / Wikimedia Commons / source page / CC BY-SA 3.0.

Around 01:55 the train stops at Dong Dang. Everyone gets off, takes all luggage, queues for the Vietnamese exit stamp, and waits on the platform. The train is shunted over the border while you are inside the terminal. Reboarding is usually finished by 03:50, and by then most passengers are too tired to care about the order in which it happened.

At 04:31, China time, you are at Pingxiang. This is the slower of the two stops: entry cards, immigration, and an X-ray of the bags you just carried through the other side. You are back on board around 06:05, the sun comes up somewhere between Ningming and Chongzuo, and Nanning appears at 10:06.

Two practical notes from that sequence. Keep your passport and visa in one pocket you can reach without opening your main bag, because you will show them four times. And keep a pen: the arrival card is still a paper form, and the same pen gets borrowed by the whole carriage.

The cabin: what a four berth soft sleeper is like

Upper berth of a Chinese soft sleeper carriage with pillow and folded bedding
A soft sleeper berth on a Chinese carriage of the type used on cross-border services. Photo: N509FZ / Wikimedia Commons / source page / CC BY-SA 4.0.

Four bunks in a closed compartment: two lower, two upper. Each berth has a pillow, a folded duvet or blanket, a reading light and a small shelf. There is a table by the window, a thermos of hot water in the corridor, and a washroom at the end of the carriage that is acceptable at 23:00 and less so at 05:00.

The upper berth is cheaper and hotter; the lower berth costs more and lets you sit upright without hitting the ceiling. If you are travelling as a couple, book both lower berths or both uppers in the same compartment, and expect to share with strangers otherwise. Luggage goes under the lower berth or on the rack above the door: a 65 litre backpack fits, a large hard suitcase is awkward.

Power sockets exist but are shared per compartment and are the first thing to fail when everyone charges at once. Bring a power bank and a short cable. There is no shower. Bedding is provided; a sleep sheet and earplugs are still the two items people wish they had brought.

Buying the ticket without a Chinese phone number

There are three workable routes, and they fail in different ways.

Where you buy How it works What to watch
Official channels China Railway 12306 in its English version, or Vietnam Railways for the Vietnamese leg. Register with your passport number. Foreign cards sometimes fail at the payment step, and the interface expects a Chinese mobile number for some notifications.
An agency or a Hanoi hotel They hold the berth, hand you a paper ticket or a booking reference, and charge a service fee. Ask for the carriage and berth numbers in writing. A “soft sleeper” booking that turns out to be a hard sleeper is the classic substitution.
At the station Gia Lam sells the international service at the counter, and 12306 counters sell the Chinese legs once you are in Nanning. Popular dates sell out first. Tet, the September long weekend and the run up to Chinese New Year are the tight ones.

Names matter more than most travellers expect. A Chinese rail ticket is tied to the passport, and a Vietnamese ticket is checked against the document at the gate. Book under the exact spelling and order shown on the bio page, without accents, and carry that same passport. If the booking has your middle name missing, fix it before you travel rather than at 01:55 on a platform.

Price reality: the fare quoted by the railway has been reported at around CNY 215 for the through berth in recent seasons, while agencies sell the same berth for roughly CNY 380 to 430 including their service fee. Both numbers move, and neither includes food. Treat USD 55 to 65 per person as a planning figure and confirm the total before you pay.

The visa question decides whether this trip happens

This is where most readers of an English guide get caught out, because the rules depend on your passport, not on your route.

Your situation What you need for China Can you board the train in Hanoi?
Passport from one of the 30 day visa-free countries (most of the EU, UK, Canada, Australia, New Zealand, Japan, South Korea, Brazil, Gulf states) Nothing in advance while the policy runs to 31 December 2026. Show up, get stamped, stay up to 30 days. Yes.
Russian passport Visa-free 30 days, extended to 31 December 2027. Yes.
Passport from the mutual exemption countries (Singapore, Malaysia, Thailand, UAE, Qatar and others) Visa-free 30 days under a bilateral agreement with no end date. Yes, and the 90 days in any 180 days cap applies.
US, Indian, Mexican, Indonesian, Philippine passports and others outside both lists A visa in the passport, or the 240 hour visa-free transit if you are flying on to a third country. A visa yes, the transit rule no: it requires an onward air ticket to a third country, and a train into China does not qualify as transit.
Vietnamese passport, or a foreigner living in Vietnam A visa from the visa centre, unless using the 240 hour transit by air. Vietnam itself joined that transit programme on 20 August 2026. Only with a visa in the passport.

The 30 day policy for the 48 country list is a deadline you can plan around but should not assume away: it currently ends at midnight Beijing time on 31 December 2026, and no extension for 2027 had been announced when this page was checked on 15 November 2026. The 240 hour transit rule and the mutual exemption agreements are separate and are not tied to that date.

Getting the visa in Hanoi

Foreigners living in or passing through Hanoi apply at the Chinese Visa Application Service Centre on the 7th floor of Truong Thinh Tower, Trang An Complex, 1 Phung Chi Kien, Cau Giay. It is open Monday to Friday, submissions and collection 09:00 to 15:00, closed on public holidays of both countries.

Step What you do Time to allow
1. Online form Create an account on the visaforchina site for Vietnam, fill in the form, upload the photo and documents. 1 to 2 days for the preliminary review in busy periods.
2. Print and assemble Printed form, passport with six months validity and two blank pages, two photos 48 by 33 mm on white, flight or train booking out of China, hotel bookings or an invitation letter, and a copy of your Vietnamese visa or entry stamp. One afternoon, and printing costs a few thousand dong per page at the centre.
3. Submit in person Take a queue number at the counter. Staff check the file and send you to pay. About an hour in the morning, longer near holidays.
4. Pay The centre fee is paid in dong at submission; the visa fee is paid when you collect. Budget roughly USD 45 to 90 in government fees for a single entry depending on nationality and speed, plus a service fee in dong.
5. Collect Bring the receipt. Check the name, the number of entries, the validity dates and the number of days per stay before you leave the counter. Typically about four working days for regular processing.

If you are travelling within a week, pay for express rather than hoping. The timetable of the train will not wait for a visa, and the fee difference is smaller than a replacement flight.

After Nanning: the rest of China is high speed

Nanning is where the slow part ends. From Nanning East, high speed trains run to Guangzhou in under three hours, and onward connections put Shanghai, Shenzhen and Beijing within a single long day.

Leg Fastest time Rough fare Note
Nanning East to Guangzhou South 2 hours 43 minutes From about USD 28 second class Around 90 departures a day, so a missed train is an inconvenience rather than a disaster.
Nanning to Beijing About 10 to 13 hours by high speed Seasonal, check at booking Day trains exist, but the overnight option saves a hotel night.
Nanning to Guilin and Yangshuo Under 3 hours Low The easiest add on if you have two spare days.
Hanoi to Nanning by bus 8 to 9 hours In the same range as the train Cheaper, less comfortable, and the border stop happens at a road crossing rather than a station.
Facade of Nanning East railway station in Guangxi under a blue sky
Nanning East, where the cross-border line meets the Chinese high speed network. Photo: Mars Hartdegen / Wikimedia Commons / source page / CC BY 2.0.

Two station details save an hour each. Nanning station, where the Hanoi train arrives, is connected to metro line 1, so the run to a hotel in the centre does not need a taxi negotiation. Nanning East, where the high speed trains leave, is a different station; allow 40 minutes between the two if you are connecting on the same day.

Book the legs after the border

Compare Chinese high speed legs, seat classes and total prices for the dates you actually want, in English and with foreign passport support.

The link below is a sponsored affiliate link. LaKà may receive a small commission if you book, without increasing the displayed price. Confirm the passenger name matches the passport, the seat class and the change rules before paying.

The other ways across, and when they beat the train

Facade of Pingxiang railway station in Guangxi, the Chinese border station on the Hanoi line
Pingxiang, the Chinese side of the rail border. The train waits here while passengers clear entry formalities. Photo: Yhxc57082 / Wikimedia Commons / source page / CC BY-SA 4.0.

The rail crossing is the most comfortable option, not the only one. Three alternatives are worth knowing.

  • Bus or minivan, Hanoi to Nanning. Eight to nine hours door to door, cheaper, and it uses a road border post. It is the right choice if you cannot sleep on trains or if the rail berths are sold out.
  • High speed to Pingxiang East plus the road border. From Nanning, D trains reach Pingxiang East in 1 hour 10 minutes to 2 hours for roughly CNY 100 to 177. From there it is a short road transfer to Friendship Pass, the crossing known in Vietnamese as Huu Nghi Quan. This is the fastest way to reach the border, useful if you are coming from Guangzhou rather than from Hanoi.
  • Lao Cai and Hekou, in the north west. The Lao Cai international border gate faces Hekou in Yunnan, and it is the crossing to use if you are going to Kunming rather than to Guangxi. The old Hanoi to Kunming rail link is not currently a through passenger service, so this is a road crossing plus a Chinese train onward.
  • Mong Cai and Dongxing, on the coast, is the crossing that pairs with Ha Long Bay. Ferries and coaches run on the Vietnamese side, and Chinese high speed trains continue from Dongxing and Fangchenggang.
Main gate of the Youyiguan or Friendship Pass border checkpoint seen from the Chinese side
Friendship Pass, the road crossing next to the rail line at Pingxiang. Chinese side of the gate. Photo: Yumeto / Wikimedia Commons / source page / CC BY-SA 4.0.

Flying is the fourth option and often the cheapest once you price the hotel night you no longer need. Hanoi has direct services to several Chinese cities, including Guangzhou, Kunming and Shanghai, with schedules that change by season. Compare the flight plus one night in Hanoi against the train plus one night on board before you decide.

Route shapes that work with a night train

The train lands you in Nanning at 10:06, which is early enough to keep moving but late enough that you will not want a five hour connection. Three shapes fit the timetable without waste.

Route Days Why it works
Hanoi, Nanning, Guilin, Yangshuo, back to Hanoi 7 to 8 Nanning to Guilin is under three hours, and the karst scenery starts before Yangshuo.
Hanoi, Nanning, Guangzhou, Hong Kong 7 to 9 Under three hours from Nanning East, and Hong Kong is a straightforward border crossing by rail from Guangzhou.
Hanoi, Nanning, Guilin, Beijing, Shanghai, out by air 12 to 15 The night train replaces the first domestic flight, and you leave from Shanghai rather than doubling back.
Hanoi, Lao Cai, Hekou, Kunming 6 to 7 Uses the north west crossing instead, for Yunnan rather than Guangxi.

Book the return leg before you leave. The Nanning to Hanoi berths sell out in the other direction too, and the alternative is a bus seat you did not plan for. If your trip ends in a different city, book a flight out of China rather than a second night train.

Mistakes that cost travellers money on this route

  • Arriving at Hanoi station instead of Gia Lam. They are different stations on different lines. Gia Lam is across the Red River, and a taxi at 21:00 takes 15 to 25 minutes from the Old Quarter.
  • Assuming the train has food. It does not. Hot water is free and constant; everything else is what you carried on.
  • Having the visa in an email instead of the passport. A printout or a PDF is not a visa at Dong Dang.
  • Booking a Chinese domestic connection for 11:00 from Nanning East. A delayed border stop at Pingxiang is normal. Leave three hours after the scheduled arrival before you commit to a second train.
  • Changing money only at the border. The rates at the crossing are poor. Bring a small amount of yuan for the first morning, and use an ATM or a bank in Nanning for the rest.
  • Forgetting the arrival card pen. It sounds trivial until forty people are queueing behind you.
Want the current timetable and a route that fits your dates?

Send your travel dates, your passport nationality and whether you want to continue to Guilin, Guangzhou or Beijing. Border timetables and visa rules on this corridor change more often than the guides that describe them.

Email LaKà Travel and we will reply with the current timetable, the visa checklist for your passport and a route that fits your dates. We do not sell tickets or visas: you keep the booking in your own name.

Frequently asked questions

Can foreigners book the Hanoi to Nanning train online?

Yes, through the official China Railway English service or an agency, using your passport number. Foreign cards fail at the payment step often enough that many travellers book through a Hanoi hotel or an agent and pay a service fee instead.

Is the border crossing done on the train or in a station?

In a station, twice. You leave the train at Dong Dang for the Vietnamese exit stamp and at Pingxiang for Chinese entry, taking all your luggage each time. The train is shunted across the border while you are in the terminal.

Do I need a visa if my country is on the 30 day visa-free list?

No, for now. The policy covers 48 countries up to 31 December 2026, and Russia separately to 31 December 2027. Nothing had been announced for 2027 when this page was checked, so confirm the rule in the week before you travel.

Can I use the 240 hour visa-free transit to enter by train?

No. That programme requires an onward ticket to a third country or region, which in practice means a flight. A train from Vietnam into China does not satisfy the transit condition.

Is there a day train between Hanoi and Nanning?

No. Both directions run overnight, which is why the timetable pairs so well with a hotel night you no longer pay for.

How much luggage can I take?

There is no strict weighed allowance on the international service, but space is the limit: under the lower berth or on the rack above the door. A large hard suitcase is awkward in a four berth cabin, and you will carry it yourself at both border stops.

Can I break the journey at Dong Dang or Pingxiang?

Not usefully with this ticket. Both stops are for immigration. If you want to spend time in Lang Son or Pingxiang, travel on a normal Vietnamese train to Dong Dang or a Chinese train from Pingxiang East and cross by road.

What if the train is late and I miss my connection in Nanning?

Leave at least three hours between the scheduled 10:06 arrival and any onward train, and more if your connection leaves from Nanning East rather than Nanning station. Tickets on separate bookings are not protected.

Does LaKà book this train for me?

No. We do not sell tickets and we do not issue visas. We help you choose the right route, check the current timetable and plan the days around it; the booking stays in your own name with the provider you choose.

Primary and official checks

Schedules, fares and visa rules on this corridor change without much notice. Verify the departure time, the class and the entry rule on the official or provider page before you pay, and check the visa rule again in the week you travel.

LaKà Travel – practical travel planning for Vietnam and China. Checked 15 November 2026.

You may also like...