Xiamen to Shanghai train: the short answer
Take the train from Xiamen North (厦门北). In the 12306 English results for 2026-10-14, all 24 trains board there. Prices and train lists below are the 2026-10-14 results and change with the date.
- Fastest: G258, Xiamen North to Shanghai Hongqiao, 11:42 to 16:47, 5h05m, second class ¥566 (2% off).
- Range: travel times run from 5h05m to 8h22m. Second class runs ¥406 to ¥581.5 across all 30 results, all marked "x% off", so full fares are higher.
- Times: departures run 07:18 to 17:12 and the last arrival is 23:32. There is no evening or overnight train and no sleeper on that date.
Xiamen North or Xiamen Station: which one to leave from?
Xiamen North. All 24 trains in the 2026-10-14 results board there, and one of them, G256, can also be boarded at Xiamen Station (厦门站) at 07:46. 12306 writes the two as Xiamenbei (厦门北) and Xiamen (厦门).
| G256 to Hongqiao | Departs | Arrives | Time | Second | First | Business |
|---|---|---|---|---|---|---|
| From Xiamen Station | 07:46 | 13:17 | 5h31m | ¥576 | ¥935 | ¥1,964 |
| From Xiamen North | 08:10 | 13:17 | 5h07m | ¥566 | ¥919 | ¥1,928 |
It is the same train. From Xiamen North it is 24 minutes shorter and ¥10 cheaper in second class (both marked 2% off on that date). Choose Xiamen Station only if it suits your hotel better.
The China State Railway Group describes both stations on undated pages. Xiamen Station is in Siming District, the terminus of the Yingtan-Xiamen railway; the rebuilt station has been fully in use since 2016-01-24, with 5 platforms (8 platform faces) and 21,600 sq m of building. Xiamen North is in Jimei District, where the Hangzhou-Shenzhen and Xingxia (杏厦) lines meet. It has 6 platforms (10 platform faces), 109,000 sq m and a business-class waiting area. Those pages give no travel time, distance, metro, bus or taxi information.
Which Shanghai station does the train arrive at?
It depends on the train. The 2026-10-14 results name four: Hongqiao (上海虹桥) for 15 trains, Shanghai South (上海南) for 9, Jinshanbei (金山北) for 3 and Songjiang (上海松江) for 2. None arrived at Shanghai Railway Station (上海站). Hongqiao has the most choice and the fastest trains. For the city itself, see our Shanghai travel guide.
Xiamen to Shanghai train times and prices by station pair
Every price is the 2026-10-14 result and changes with the date. Each result carries an "x% off" label, 1% to 21% on that date, so every price below is a discounted fare and the full fare is higher. Labels vary by train and date, and 12306 prints one price per seat type. Second class and standing ticket cost the same on every result.
| From, to | Trains | Travel time | First and last departure | Fastest | Second class | First class | Business class |
|---|---|---|---|---|---|---|---|
| Xiamen North, Hongqiao | 15 (D 9, G 6) | 5h05m to 8h22m | 08:02 (D3142), 14:58 (G3092) | G258, 11:42 to 16:47, 5h05m | ¥419 to ¥581.5 | ¥671 to ¥950.5 | ¥1,655 to ¥1,928 (6 trains) |
| Xiamen North, Shanghai South | 9 (G 6, D 3) | 5h11m to 7h57m | 07:18 (G3756), 17:12 (G1640) | G260, 15:05 to 20:16, 5h11m | ¥418 to ¥568.5 | ¥668 to ¥930.5 | ¥1,670 to ¥1,894 (6 trains) |
| Xiamen North, Jinshanbei | 3 | 7h02m to 7h53m | 07:27 (G1642), 10:18 (D3292) | G1642, 07:27 to 14:29, 7h02m | ¥429 to ¥492.5 | ¥687 to ¥795 | ¥1,620 to ¥1,658 (2 trains) |
| Xiamen North, Songjiang | 2 | 6h44m to 7h39m | 07:18 (G3756), 13:29 (D3202) | G3756, 07:18 to 14:02, 6h44m | ¥406 to ¥485 | ¥651 to ¥770 | ¥1,692 (G3756) |
| Xiamen Station, Hongqiao | 1 (G256) | 5h31m | 07:46 | G256 | ¥576 | ¥935 | ¥1,964 |
To Hongqiao, only G258 and G256 come near five hours; the third-fastest there, G3092, takes 7h01m. To Shanghai South, G260 takes 5h11m. The D trains to Hongqiao take 7h29m to 8h22m. The earliest train to Shanghai South is G3756 at 07:18. Business class is on 12 trains.
Why the counts add up to more than 24
We count a train once, by the identifier 12306 gives it. The 30 results are 24 trains (G 12, D 12), because six trains are listed twice: G3756 (Songjiang, Shanghai South), G1642 (Jinshanbei, Shanghai South), G1674 (Jinshanbei, Hongqiao), D3292 (Jinshanbei, Hongqiao), D3202 (Songjiang, Hongqiao) and G256 (Xiamen Station and Xiamen North, both to Hongqiao). Station counts count a train at each station it serves: 24 boarding at Xiamen North plus 1 at Xiamen Station is 25, and the four arrival stations add up to 29, because 5 trains serve two arrival stations. Each pair in the table counts its own results, which total 30.
Is there a sleeper or overnight train from Xiamen to Shanghai?
Not on 2026-10-14. Every result was a G or D train, nothing left after 17:12, and the last arrival was 23:32 (G1640, Shanghai South). That covers one date only, so it does not show that sleepers never run. The sleeper-price tip at the bottom of the results page is generic text.
How to buy the ticket on 12306 with a foreign passport
Use 12306, the official site of the China Railway Customer Service Center. It says the railway will not handle ticket problems from other websites. If you would rather not do it yourself, we can book train tickets for you.
- Register. The English registration page accepts only foreign passports. You enter name, passport number, passport expiry date, date of birth, gender, username, password and email.
- Verify your identity. Per the Ministry of Commerce guide, enter your name, nationality and ID number for automatic verification, or upload a photo of the passport information page for manual verification. You can also take the passport to a station ticket office.
- Search and buy. Search Xiamen to Shanghai on the English site or app and pay by Chinese or foreign bank card or mobile payment app.
The English site sells tickets from 05:00 to 01:00 the next day (05:00 to 23:30 on Tuesday). Searching and refunds run 24 hours. Neither the 12306 FAQ nor its presale help page gives a daily on-sale time for a travel date.
How far ahead can you book?
12306's Chinese help page, which is undated, says online sales cover 15 days including the day itself, with on-sale times staggered by region. Station and agent windows also use 15 days, and railway groups may adjust this, so read station notices. On 2026-10-06 the English site offered dates from 2026-10-06 to 2026-10-20.
Can I buy at the station with my passport?
Yes. The Ministry of Commerce guide (2024-04-24) lists the passport among the documents accepted at the station ticket office. There you pay by Chinese or foreign bank card, RMB cash or mobile payment. The guide names only the Foreign Permanent Resident ID Card for self-service machines and does not say passports work on them, so go to a window.
How do I get through the gate and onto the train?
Keep the e-ticket information and the passport you used to buy. 12306 says you show the ID to enter the station, exit it and board. Foreign travellers pass automatic or manual ticket-check gates with that original document. The itinerary sheet and reimbursement receipt are not tickets.
Refund or change a Xiamen to Shanghai ticket
You can refund or change on the 12306 English site and app, or at a station ticket office, and fees may apply. A station refund is normally done before departure; the 12306 FAQ says that in special cases it can be handled within 2 hours after departure with approval of the chief of the selling station or the departure station. Bring the ticket and the original ID used to buy it; if that was a passport, bring the purchase order number too. For amounts, see 12306 refund and change fees. More on the other end of the trip: Xiamen travel guide.