EN RO

Distance from Shanghai to Nairobi

Straight line

9,578 km
5,951 mi · 5,171 NM

By road

…
calculating

Travel time

…
flight ≈ 12 h 28 min

Direction

W 266°
initial bearing

Open in the calculator (stops, directions, fuel cost) → Nairobi → Shanghai

How far is Shanghai from Nairobi?

Shanghai (China) and Nairobi (Kenya) are very far apart: 9,578 km in a straight line, that is 5,951 miles or 5,171 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

From Shanghai, Nairobi lies to the west (initial bearing 266°). The route crosses from China into Kenya. The halfway point is at 19.8350°, 75.0774°.

A direct flight would take about 12 h 28 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 Nairobi?

The straight-line distance between Shanghai and Nairobi is 9,578 km (5,951 miles). The road distance is longer and is calculated on the map.

In which direction is Nairobi from Shanghai?

Nairobi is to the west of Shanghai, at an initial bearing of 266°.

How long is the flight from Shanghai to Nairobi?

A direct flight would take about 12 h 28 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.