EN RO

Distance from Madrid to Rabat

Straight line

763 km
474 mi · 412 NM

By road

684 km
425 mi

Travel time

7 h 58 min
flight ≈ 1 h 27 min

Direction

SSW 202°
initial bearing

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

How far is Madrid from Rabat?

Madrid (Spain) and Rabat (Morocco) are quite far apart: 763 km in a straight line, that is 474 miles or 412 nautical miles. The distance is measured over the Earth's surface (WGS84 ellipsoid) along the shortest possible path.

By road, Madrid to Rabat is 684 km (425 miles), about 7 h 58 min by car on the fastest route, without traffic or stops. The road follows the straight line closely.

From Madrid, Rabat lies to the south (initial bearing 202°). The route crosses from Spain into Morocco. The halfway point is at 37.2252°, -5.3341°.

A direct flight would take about 1 h 27 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 Madrid from Rabat?

By road it is 684 km (425 miles) from Madrid to Rabat; in a straight line it is 763 km (474 miles).

How long is the drive from Madrid to Rabat?

About 7 h 58 min on the fastest route (684 km), without traffic or stops.

In which direction is Rabat from Madrid?

Rabat is to the south of Madrid, at an initial bearing of 202°.

How long is the flight from Madrid to Rabat?

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