EN RO

Distance from Rabat to Shanghai

Straight line

10,983 km
6,825 mi · 5,931 NM

By road

13,037 km
8,101 mi

Travel time

151 h 36 min
flight ≈ 14 h 14 min

Direction

NE 43°
initial bearing

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

How far is Rabat from Shanghai?

Rabat (Morocco) and Shanghai (China) are very far apart: 10,983 km in a straight line, that is 6,825 miles or 5,931 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

By road, Rabat to Shanghai is 13,037 km (8,101 miles), about 151 h 36 min by car on the fastest route, without traffic or stops. The road is 19% longer than the straight line.

From Rabat, Shanghai lies to the north-east (initial bearing 43°). The route crosses from Morocco into China. The halfway point is at 55.7145°, 59.1554°.

A direct flight would take about 14 h 14 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 Rabat from Shanghai?

By road it is 13,037 km (8,101 miles) from Rabat to Shanghai; in a straight line it is 10,983 km (6,825 miles).

How long is the drive from Rabat to Shanghai?

About 151 h 36 min on the fastest route (13,037 km), without traffic or stops.

In which direction is Shanghai from Rabat?

Shanghai is to the north-east of Rabat, at an initial bearing of 43°.

How long is the flight from Rabat to Shanghai?

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