EN RO

Distance from Nanjing to Shanghai

Straight line

271 km
168 mi · 146 NM

By road

296 km
184 mi

Travel time

3 h 19 min
flight ≈ 50 min

Direction

ESE 109°
initial bearing

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.

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.