EN RO

Distance from Shanghai to Rabat

Straight line

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

By road

13,036 km
8,100 mi

Travel time

151 h 45 min
flight ≈ 14 h 14 min

Direction

NW 319°
initial bearing

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

How far is Shanghai from Rabat?

Shanghai (China) and Rabat (Morocco) 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, Shanghai to Rabat is 13,036 km (8,100 miles), about 151 h 45 min by car on the fastest route, without traffic or stops. The road is 19% longer than the straight line.

From Shanghai, Rabat lies to the north-west (initial bearing 319°). The route crosses from China into Morocco. 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 Shanghai from Rabat?

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

How long is the drive from Shanghai to Rabat?

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

In which direction is Rabat from Shanghai?

Rabat is to the north-west of Shanghai, at an initial bearing of 319°.

How long is the flight from Shanghai to Rabat?

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.