Shanghai to Nanjing

270 km (168 miles)

Straight-line distance between Shanghai, CN and Nanjing, CN. This is the shortest distance between the two cities as the crow flies.

Route Overview

Direct path from Shanghai to Nanjing

Loading map...

Travel Information

Flight Time
~18 minutes
Driving Time
~3h 23m
Walking Time
~2d 6h

Interesting Facts

Speed of Light

Light would travel this distance in 0.001 seconds.

🚶

Walking Challenge

Walking non-stop at 5 km/h would take 54 hours.

🌍

Great Circle Distance

This 270 km distance follows the shortest path on Earth's surface.

Note about travel times:

These are approximate estimates based on straight-line distance. Actual travel times will vary significantly based on routes, traffic, weather, connections, and other factors.

Distance Details

Kilometers: 270 km
Miles: 168 mi
Nautical Miles: 146 nmi

Shanghai

Country: CN
Population: 24,874,500
Coordinates: °, °

Nanjing

Country: CN
Population: 9,314,685
Coordinates: °, °

Calculate More Distances

Explore distances from Shanghai to other cities, or calculate any route worldwide.

About This Distance Calculation

The distance between Shanghai and Nanjing is calculated using the Haversine formula, which determines the great-circle distance between two points on a sphere given their latitude and longitude coordinates. This represents the shortest distance over the earth's surface, giving an "as-the-crow-flies" distance of approximately 270 kilometers (168 miles).

This calculation assumes the Earth is a perfect sphere (it's actually slightly flattened at the poles), but the Haversine formula is accurate to within 0.5% for distances between most points on Earth. The coordinates used are:

  • Shanghai: °N, °W
  • Nanjing: °N, °W

Keep in mind that actual travel distances by car, train, or ship will be longer due to the need to follow roads, railways, shipping routes, and navigate around geographical obstacles. Flight paths may also differ from the great circle route due to air traffic control requirements, weather conditions, and airline-specific routing policies.