Distance from Shanghai to Nanjing
Straight line
By road
Travel time
Direction
Open in the calculator (stops, directions, fuel cost) → Nanjing → Shanghai
How far is Shanghai from Nanjing?
Shanghai (China) and Nanjing (China) are a medium distance apart: 271 km in a straight line, that is 168 miles or 146 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.
By road, Shanghai to Nanjing is 298 km (185 miles), about 3 h 22 min by car on the fastest route, without traffic or stops. The road is 10% longer than the straight line.
From Shanghai, Nanjing lies to the west (initial bearing 291°). Both cities are in China. The halfway point is at 31.6489°, 120.1240°.
A direct flight would take about 50 min (800 km/h cruise plus take-off and landing). The road distance and driving time are calculated on the map from OpenStreetMap roads.
Other distances from Shanghai
- Shanghai – Kunshan 51 km
- Shanghai – Suzhou 83 km
- Shanghai – Changshu City 83 km
- Shanghai – Wuxi 118 km
- Shanghai – Ningbo 150 km
- Shanghai – Hangzhou 161 km
- Shanghai – Puyang 247 km
- Shanghai – Hefei 402 km
Other distances from Nanjing
- Nanjing – Hefei 143 km
- Nanjing – Wuxi 153 km
- Nanjing – Huainan 179 km
- Nanjing – Changshu City 191 km
- Nanjing – Suzhou 192 km
- Nanjing – Kunshan 219 km
- Nanjing – Hangzhou 237 km
- Nanjing – Tongshan 280 km
Frequently asked questions
How far is Shanghai from Nanjing?
By road it is 298 km (185 miles) from Shanghai to Nanjing; in a straight line it is 271 km (168 miles).
How long is the drive from Shanghai to Nanjing?
About 3 h 22 min on the fastest route (298 km), without traffic or stops.
In which direction is Nanjing from Shanghai?
Nanjing is to the west of Shanghai, at an initial bearing of 291°.
How long is the flight from Shanghai to Nanjing?
A direct flight would take about 50 min at an average cruising speed of 800 km/h.
How is the distance calculated?
The straight-line distance is computed on the WGS84 ellipsoid with the Vincenty formula, accurate to the metre. The road distance comes from OpenStreetMap roads.