EN RO

Distance from Shanghai to Nanjing

Straight line

271 km
168 mi · 146 NM

By road

298 km
185 mi

Travel time

3 h 22 min
flight ≈ 50 min

Direction

WNW 291°
initial bearing

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.

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.