GoAsia
China

How to Get from Shanghai to Xian

How to travel from Shanghai to Xian: fast day trains from 5h 39min, overnight sleeper trains and flights to the Terracotta Warriors city.

Last updated: November 17, 2026

How to Get from Shanghai to Xian

Photo: 沈澄心 / Wikimedia Commons, CC0

Contents

Leaving the futuristic skyline of Shanghai for the ancient walled city of Xian is a journey through China's timeline. While Shanghai represents the nation's rapid modernization and global financial reach, Xian is the guardian of its imperial soul. This is one of the most popular routes in the country, connecting the bustling Bund with the silent ranks of the Terracotta Army.

Train, Bus, Flight and Ferry tickets

Booking and payment are handled by 12Go, not GoAsia. We may receive a commission when you book through our links.

The two cities lie far apart, so most travelers choose between the fast daytime train and a flight. You can browse and book tickets for this route on GoAsia.cc.

Shanghai to Xian by High-Speed Train

Daytime G trains run from Shanghai Hongqiao to Xi'an North all day. The fastest, G94, leaves Hongqiao at 08:55 and arrives at 14:34, a journey of 5 hours 39 minutes. Most other G trains take between about 6.5 and 9.5 hours, with departures from 06:09 until 17:07.[1]

Overnight D trains with sleeper berths leave Shanghai, or Shanghai Songjiang, in the afternoon or evening and arrive in Xi'an the next morning. D92, for example, leaves at 18:19 and arrives at 09:07 after 14 hours 48 minutes. These trains stop at Xi'an station, closer to the old city than Xi'an North.[1]

Tickets are sold on the English version of the official China Railway site 12306.cn, or in the 12306 app.

Shanghai to Xian by Flight

Flying is the quickest way to bridge the gap. Flights depart from both Shanghai Pudong International Airport (PVG) and Shanghai Hongqiao International Airport (SHA) and land at Xian Xianyang International Airport (XIY), which lies northwest of the city. Allow time for the transfer into town: whether you take the airport shuttle bus, the metro or a taxi, it is a long ride to the Bell Tower area.

Hongqiao sits much closer to central Shanghai than Pudong, so choose it if your schedule gives you the option. Chinese airports run thorough security checks, so arrive early for a domestic flight.

Comparing Your Options

ModeDurationGood for
Day train (G)From 5h 39min[1]Station to station, no airport transfers
Overnight train (D)About 15h[1]Sleeping on the way, arriving in the morning
FlightFastest in the airSaving the most time on the day

Tips for Traveling from Shanghai to Xian

  • Check the station: Day trains arrive at Xi'an North, which is outside the center; the overnight D trains arrive at Xi'an station. Pick your hotel with the arrival station in mind.
  • Pack for the climate: Shanghai is humid and coastal, while Xian has a drier, continental climate. In winter Xian can be much colder, so bring layers.
  • Download offline maps: A translation app and offline maps help you find your way around Xian, especially in the Muslim Quarter.
  • Book ahead: This is a busy business and tourism corridor, and popular daytime trains can sell out around holidays.

Timetable

Flight Shanghai - Xian $ 88.46–462.11 2h 15m – 3h
  • →  Economy 06:45, 07:20, 07:35, 08:20, 08:30, 09:15, 09:25, 10:30, 10:55, 12:25, 13:20, 14:25, 15:10, 15:15, 15:55, 16:20, 16:55, 17:30, 18:00, 19:30, 20:00, 20:15, 20:30, 21:05, 21:30, 23:00

Frequently Asked Questions

How can I book tickets from Shanghai to Xian?

Use the booking tool on this page to compare the transport options currently available from Shanghai to Xian, including current prices and schedules.

What is the fastest way to get from Shanghai to Xian?

Flying is the fastest way overall. The fastest train, G94, takes 5 hours 39 minutes from Shanghai Hongqiao to Xi'an North.

How long does the train from Shanghai to Xian take?

Day trains take from 5 hours 39 minutes to about 9.5 hours. Overnight D trains take around 15 hours.

Is there a night train from Shanghai to Xian?

Yes. Overnight D trains with sleeper berths leave in the afternoon or evening and arrive in Xi'an the next morning, for example D92 at 18:19, arriving at 09:07.

Which airports serve the Shanghai to Xian route?

Flights depart from Shanghai Pudong (PVG) and Shanghai Hongqiao (SHA) and arrive at Xian Xianyang International Airport (XIY).

Which train station does the day train use in Xian?

Day G trains arrive at Xi'an North. Overnight D trains arrive at Xi'an station.

Sources and background

Numbers in the text such as [1] refer to these sources.

  1. [1] China Railway 12306: Shanghai Hongqiao to Xi'an North train schedule, 20 Nov 2026. Retrieved November 17, 2026.

Guide prices and journey times are indicative, not live quotes. A booked package may include transfers and waiting time as well as the main journey. Check the selected offer, pickup point and current conditions before booking.