About 28 pairs of high speed G trains are in service between Xi'an and Shanghai with a running distance of 1,509 km (938 miles). How long is the train ride from Shanghai to Xi'an? The travel time of these trains is 6 - 9 hours. It costs CNY 652 - 758 for a second class seat.
Also, there are about 4 pairs of overnight D trains with the duration of around 15 hours. The second class sleeper costs CNY 430 - 438. For normal speed ones, 10 pairs of sleeper trains are operating, taking 15 - 26 hours in total.
Xian to Shanghai High Speed Train

Open Date: September 6th, 2016

Duration: 6 - 9 hours

Running Distance: 1,509 km (938 miles)

Top Speed: 250 km/h (155 mph) or 300 km/h (186 mph)

Operate at:
Xian North Railway Station;
Shanghai Hongqiao Railway Station  |
| Xian - Shanghai High Speed Train |
Xian to Shanghai Bullet Train Schedule
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| G1914 | 06:20 - 13:22 | 7h2m |
| G3298 | 09:18 - 17:38 | 8h20m |
| G3166 | 11:46 - 20:15 | 8h29m |
| G3290 | 14:46 - 22:47 | 8h1m |
| G1942 | 16:00 - 23:57 | 7h57m |
Around 28 departures in total: departure time from 04:38 to 16:00; duration from 5H50M to 9H01M.
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| D218 | 00:53 - 15:50 | 14h57m |
| D94 | 15:10 - 06:13+ | 15h3m |
| D128 | 19:25 - 10:22+ | 14h57m |
| D124 | 21:16 - 12:30+ | 15h14m |
| D974 | 23:24 - 08:04+ | 8h40m |
| D978 | 23:29 - 08:58+ | 9h29m |
See more
Xian Schedule Shanghai to Xian High Speed Train Timetable
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| G1974 | 07:16 - 14:22 | 7h6m |
| G3164 | 09:38 - 17:47 | 8h9m |
| G1928 | 12:36 - 20:00 | 7h24m |
| G1916 | 16:09 - 23:00 | 6h51m |
| G1940 | 17:07 - 23:33 | 6h26m |
Around 28 departures in total: departure time from 06:09 to 17:07; duration from 5H39M to 9H36M.
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| D122 | 14:13 - 05:25+ | 15h12m |
| D216 | 16:54 - 07:49+ | 14h55m |
| D126 | 18:09 - 09:01+ | 14h52m |
| D92 | 18:19 - 09:07+ | 14h48m |
| D972 | 18:22 - 05:23+ | 11h1m |
| D976 | 18:44 - 05:28+ | 10h44m |
See more
Shanghai Schedule Notes: The above timetable is for reference only. The schedule searching by the search box on page top shall prevail.
Ticket Fare of Xian - Shanghai High Speed G Trains
(Last Update on Feb 4, 2026)
| Business Class Seat | First Class Seat | Second Class Seat | CNY 2,072.5 - 2,488.5 USD 300 - 361 | CNY 1,050.5 - 1,278.5 USD 152 - 185 | CNY 659 - 797 USD 96 - 116 |
Ticket Fare of Xian - Shanghai High Speed D Trains
(Last Update on Feb 4, 2026)
| 1st Class Sleeper | 2nd Class Sleeper | Second Class Seat | CNY 601 - 641 USD 87 - 93 | CNY 430 - 438 USD 62 - 63 | CNY 233 - 449 USD 34 - 65 |
 |
| Overnight High Speed Train between Xian and Shanghai |
 |
| Xian - Shanghai Railway Map |
Stopovers of some types:
Weinan North,
Huashan North, Lingbao West, Sanmenxia South, Mianchi South,
Luoyang Longmen, Gongyi South, Zhengzhou West,
Zhengzhou East, Kaifeng North, Lankao South, Minquan North, Shangqiu, Dangshan South, Yongcheng North, Xiaoxian North,
Xuzhou East, Suzhou East, Bengbu South,
Nanjing South,
Zhenjiang South, Danayng North, Changzhou North, Wuxi East,
Suzhou North, Kunshan South.
Stop-bys of other types:
Weinan North, Huashan North, Sanmenxia South, Luoyang Longmen, Zhengzhou East,
Xuzhou,
Nanjing and
Suzhou Running Route

Xian - Zhengzhou: This section shares the railway track with
Xian-Luoyang-Zhengzhou High Speed Rail Line, which has been put into service since 6th February in 2010 and it shortens the journey time between the two cities to 2 - 3 hours.

Zhengzhou - Xuzhou: The Zhengzhou-Xuzhou High Speed Railway has been put into service since Sep 10th, 2016. The duration is 1.5 to 2.5 hours only.

Xuzhou - Shanghai: This section is a part of
Beijing-Shanghai High Speed Railway which has been put into use since June 30, 2011. The journey between the two cities takes 2.5 - 6 hours or so.
Normal Trains
They are mostly running overnight between
Xian Railway Station and Shanghai Railway Station. Traveling overnight will save you one-night hotel expenditure and day time and it will be a preferrable choice for budget travelers because they cost less than bullet types.
 | | Shanghai Railway Station | |  | | Xian Railway Station | |
Xian to Shanghai Train Schedule
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| K4032 | 03:25 - 01:49+ | 22h24m |
| K4668 | 08:21 - 04:34+ | 20h13m |
| K2188 | 08:36 - 05:33+ | 20h57m |
| K362 | 10:17 - 05:22+ | 19h5m |
| K4798 | 15:51 - 17:00+ | 25h9m |
| K558 | 17:07 - 14:12+ | 21h5m |
| T118 | 19:55 - 13:26+ | 17h31m |
| Z166 | 20:53 - 12:03+ | 15h10m |
| Z378 | 21:03 - 12:09+ | 15h6m |
| Z42 | 21:10 - 12:15+ | 15h5m |
| Z306 | 21:41 - 12:54+ | 15h13m |
| K4028 | 22:22 - 00:54++ | 26h32m |
Shanghai to Xian Train Timetable
(Last Update on Feb 4, 2026)
| Train No. | Departure - Arrival | Travel Time |
|---|
| K4796 | 00:09 - 20:06 | 19h57m |
| K4026 | 02:05 - 23:07 | 21h2m |
| K4030 | 03:00 - 02:25+ | 23h25m |
| K2186 | 08:57 - 05:36+ | 20h39m |
| K360 | 09:29 - 06:06+ | 20h37m |
| K4666 | 11:58 - 11:40+ | 23h42m |
| Z376 | 13:55 - 04:53+ | 14h58m |
| T116 | 15:38 - 08:30+ | 16h52m |
| K560 | 15:52 - 12:26+ | 20h34m |
| Z40 | 16:48 - 08:17+ | 15h29m |
| Z304 | 17:46 - 08:42+ | 14h56m |
| Z164 | 18:33 - 09:19+ | 14h46m |
Notes:
1. "+" indicates the second day.
2. The above timetable is for reference only. The schedule searching by the search box on the page top shall prevail.
Xian - Shanghai Train Ticket Fare
(Last Update on Feb 4, 2026)
| Soft Sleeper | Hard Sleeper | Hard Seat | CNY 509.5 USD 74 | CNY 331.5 USD 48 | CNY 180.5 USD 26 |

See more about
Xian-Shanghai Overnight Sleeper Trains,
Shanghai - Xian Bullet Trains Major Cities along the Way
LuoyangLocated in the west Henan Province, Luoyang was once the capital city of 13 ancient dynasties. Nowadays, Luoyang is well-known for
Longmen Grottoes,
Song Mountain,
White Horse Temple etc. Besides, you can go to
Shaolin Temple easily by coaches from this city. Transportation around the city is pretty convenient. The trains, flights and long-distance buses connect this city with other major cities in China.
NanjingAs the capital city of Jiangsu Province, Nanjing is one of the hot tourist destinations in China. The city was once the capital city of six dynasties in ancient times, so it has many historical sites, museum and memorials such as
Confucius Temple, and
Nanjing Museum. Nowadays, because of the rapid development, it is a major city in China and an important junction point of China's north-south and east-west railway trunks. You can take both ordinary and high speed trains from Nanjing Railway Station or
Nanjing South Station to major China cities.

Major Rail Lines from Xian to:

Major Rail Lines from Shanghai to:
- Last updated on Feb. 04, 2026 by Charlotte Qiu -