Distance from Nanjing to Shanghai
Straight line
By road
Travel time
Direction
Open in the calculator (stops, directions, fuel cost) → Shanghai → Nanjing
How far is Nanjing from Shanghai?
Nanjing (China) and Shanghai (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, Nanjing to Shanghai is 296 km (184 miles), about 3 h 19 min by car on the fastest route, without traffic or stops. The road is 9% longer than the straight line.
From Nanjing, Shanghai lies to the east (initial bearing 109°). 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 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
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
Frequently asked questions
How far is Nanjing from Shanghai?
By road it is 296 km (184 miles) from Nanjing to Shanghai; in a straight line it is 271 km (168 miles).
How long is the drive from Nanjing to Shanghai?
About 3 h 19 min on the fastest route (296 km), without traffic or stops.
In which direction is Shanghai from Nanjing?
Shanghai is to the east of Nanjing, at an initial bearing of 109°.
How long is the flight from Nanjing to Shanghai?
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.