EN RO

Distance from Shanghai to Mogadishu

Straight line

8,576 km
5,329 mi · 4,631 NM

By road

8,559 km
5,319 mi

Travel time

103 h 49 min
flight ≈ 11 h 13 min

Direction

W 264°
initial bearing

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

How far is Shanghai from Mogadishu?

Shanghai (China) and Mogadishu (Somalia) are very far apart: 8,576 km in a straight line, that is 5,329 miles or 4,631 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

By road, Shanghai to Mogadishu is 8,559 km (5,319 miles), about 103 h 49 min by car on the fastest route, without traffic or stops. The road follows the straight line closely.

From Shanghai, Mogadishu lies to the west (initial bearing 264°). The route crosses from China into Somalia. The halfway point is at 20.7377°, 79.9173°.

A direct flight would take about 11 h 13 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 Mogadishu?

By road it is 8,559 km (5,319 miles) from Shanghai to Mogadishu; in a straight line it is 8,576 km (5,329 miles).

How long is the drive from Shanghai to Mogadishu?

About 103 h 49 min on the fastest route (8,559 km), without traffic or stops.

In which direction is Mogadishu from Shanghai?

Mogadishu is to the west of Shanghai, at an initial bearing of 264°.

How long is the flight from Shanghai to Mogadishu?

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