World SurveyPlay
Comparison · land neighboursMAR · ESP

Morocco and Spain compared

Neighbours across Africa and Europe: people, land, economy and capitals side by side

Locator map of Morocco and SpainMOROCCOSPAINRabatMadridALGERIALIBYAMAURITANIANIGERMALIFRANCECHAD0500 km
Morocco and Spain hatched in opposite directions; Rabat and Madrid marked with triangles and joined by a dashed line. Orthographic projection centred on 33.1°N 7.7°W; the scale bar is true at that point.

The world-countries data lists a land border between Morocco and Spain; the 1:50m outlines drawn on this map do not show one.

Morocco, in Africa, and Spain, in Europe, share a land border; their capitals, Rabat and Madrid, are 762 km apart in a straight line. Spain is the larger of the two on both counts, with 13% more area (505,992 km² against 446,550 km², world-countries) and 28% more people (49.4 million against 38.4 million in 2025, World Bank).

GDP per capita in Spain is 8.3 times that of Morocco: US$38,627 against US$4,672 in 2025 (World Bank, current US$). Life expectancy at birth is 8.4 years longer in Spain: 83.9 years against 75.5 years in 2024 (World Bank). They have no other neighbour in common: Morocco also borders one other country and Spain four.

Side by side larger figure in bold

World Bank figures are the latest for each country, with the year beside each one; a figure older than 2018 is shown but not compared. Area, land neighbours, capitals, languages and currencies: world-countries, which gives no year. Density is population divided by area.
MeasureMoroccoSpainDifference
PopulationWorld Bank38,430,770 202549,355,143 2025Spain28% more people
Areaworld-countries446,550 km²505,992 km²Spain13% larger
Population densitypopulation ÷ area86.1 per km² 202597.5 per km² 2025Spain13% denser
GDPWorld Bank, current US$US$182.4 billion 2025US$1.91 trillion 2025Spain10 times as large
GDP per capitaWorld Bank, current US$US$4,672 2025US$38,627 2025Spain8.3 times as high
Life expectancyWorld Bank75.5 years 202483.9 years 2024Spain8.4 years longer
Land neighboursworld-countries25Spain3 more
Capitalworld-countriesRabatMadrid762 kmapart, in a straight line
Languagesworld-countriesArabic, BerberSpanishnone in common
Currencyworld-countriesMoroccan dirham (MAD)Euro (EUR)none in common