Distance from Spain to Morocco

Name Spain Morocco
Country flag Flag of Spain Flag of Morocco
Country ISO code ES / ESP MA / MAR
Continent Europe Africa
Continent code EU AF
Capital Madrid Rabat
Total cities 9081 4061
Cost of living Cost of living in Spain Cost of living in Morocco
DD coordinates 40.208500 / -3.713000 31.794525 / -7.084934
DMS coordinates 40°12'30.60" N / -3°42'46.80" W 31°47'40.29" N / -7°05'5.76" W
UTM coordinates 30T 439323.78236978 4451142.8287032 29R 681305.62351786 3519257.5053512
Time zone Europe/Madrid Africa/Casablanca
Airports Airports in Spain: 357 Airports in Morocco: 31
Straight distance from Spain to Morocco is 983 kilometers (611 miles).
Distance calculator from ES to MA
246 Countries
1208701 Cities
41339 Airports

Distance converter

There are many ways to find how far is Spain from Morocco, the distance calculated in kilometers and miles by Haversine formula - distance between coordinates: 40.208500 / -3.713000 (ES) and 31.794525 / -7.084934 (MA).


When trying to get from Spain to Morocco, a traveler needs to cover the distance of 983 km / 611 mil. Surely, both ES and MA are big enough for the distance to vary considerably depending on how it is measured.

Commonly, the shortest distance is calculated as the crow flies, meaning the most direct path between two points. However, to get more precise results, it is important to specify the remoteness of these points. So, the distance is shown as a straight line between the departure coordinates of 40.208500 / -3.713000 and the arrival coordinates of 31.794525 / -7.084934.

Obviously, the fastest way to travel from Spain to Morocco is by plane. Given the average speed of modern aircraft, the flight time is estimated as 1 hour, 10 minutes. Yet, the flight length may also vary based on a number of factors, such as the speed of a specific airliner, its route, and airports of departure and arrival.

Besides, the time is calculated without transfer activities, which may involve different modes of transportation. So, how far is it from Spain to Morocco? The average figures for different transportation options are shown on this web page, calculated by a precise formula of spherical trigonometry.

Reverse direction from Morocco to Spain.

Travel time by different modes of transport

Depart from Spain (ES)
Arrives in Morocco (MA)
Spain to Morocco distance 983 km / 611 mil
Avg car duration 10 hours, 55 minutes (90 km/h)
Avg bus duration 16 hours, 23 minutes (60 km/h)
Avg train duration 9 hours, 49 minutes (100 km/h)
Avg flight duration 1 hour, 5 minutes (900 km/h)

* Estimated time when driving in a straight line at the same speed.

Spain and Morocco on map

Related distances from Spain

Related distances to Morocco

People also ask - FAQ

The shortest distance between ES and MA is 983 kilometers = 611 miles, the calculation is carried out using the formula Haversine between latitude / longitude points on the Earth's surface, using an ellipsoidal model.
The shortest flight distance from ES to MA is 983 kilometers = 611 miles. If you travel by airplane (average speed of 560 miles) flight time to MA takes approximately 1 hour, 5 minutes.
It will take you about 16 hours, 23 minutes to drive from Spain (ES) to Morocco (MA), plus time for stops like food breaks, bathroom breaks, gas breaks and overnight stays.
Yes, but conditions apply when entering Spain from Morocco.