Skip to content
PopulationCount

Morocco vs Spain population (2026)

ASpain

47.9 million

#34 in the world · -0.10% a year

Open Spain →

BMorocco

38.8 million

#41 in the world · +0.84% a year

Open Morocco →

Summary

Spain has 47.9 million people in 2026, 9.1 million more than Morocco (38.8 million). Morocco is projected to overtake Spain around 2055.

Updated:

Side by side

IndicatorSpainMorocco
Population47,850,79338,762,441
World rank3441
Annual change-0.10%0.84%
Density (per km²)9587
Median age46.330.1
Fertility rate1.242.16
Life expectancy84.175.9
Urban population80.5%63.1%
Birth rate6.815.8
Death rate9.65.9
Net migration rate+1.8−1.6
Infant mortality2.112.8
Under-5 mortality2.715.2
Life expectancy, women86.778.1
Life expectancy, men81.473.7
Children under 1512.3%24.8%
Working age, 15–6465.5%66.5%
People aged 65+22.2%8.8%
Dependency ratio52.750.4
Sex ratio96.4101.6
Population 205044,928,55843,440,431
Population 210033,127,47837,884,370

Population, 1950–2100

  • Spain
  • Morocco
Spain vs Morocco population, 1950–2100010M20M30M40M50M1950197520002025205020752100Spain vs Morocco population, 1950–2100010M20M30M40M50M1950200020502100
UN medium scenario. Hover or tap the chart for exact values. Dashed line: current year.

Fertility rate

  • Spain
  • Morocco
Fertility rate: Spain vs Morocco, 1950–2100024681950197520002025205020752100Fertility rate: Spain vs Morocco, 1950–2100024681950200020502100
Fertility rate, births per woman, 1950–2100. After 2026: UN medium projection.

Median age

  • Spain
  • Morocco
Median age: Spain vs Morocco, 1950–21001020304050601950197520002025205020752100Median age: Spain vs Morocco, 1950–21001020304050601950200020502100
Median age, years, 1950–2100. After 2026: UN medium projection.

Life expectancy

  • Spain
  • Morocco
Life expectancy: Spain vs Morocco, 1950–2100204060801001950197520002025205020752100Life expectancy: Spain vs Morocco, 1950–2100204060801001950200020502100
Life expectancy, years, 1950–2100. After 2026: UN medium projection.

Spain age pyramid

  • Male
  • Female
Spain age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemaleSpain age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemale
Thousands of people by 5-year age group. Each pyramid has its own scale.

Morocco age pyramid

  • Male
  • Female
Morocco age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemaleMorocco age pyramid 20260-45-910-1415-1920-2425-2930-3435-3940-4445-4950-5455-5960-6465-6970-7475-7980-8485-8990-9495-99100+MaleFemale
Thousands of people by 5-year age group. Each pyramid has its own scale.
Compare other countries

Frequently asked questions

Which has a larger population, Spain or Morocco?

Spain has 47.9 million people in 2026, 9.1 million more than Morocco (38.8 million). Morocco is projected to overtake Spain around 2055.

Will Morocco overtake Spain?

Under the UN medium scenario, Morocco is projected to overtake Spain around 2055.

Which country is younger, Spain or Morocco?

The median age is 46.3 years in Spain and 30.1 years in Morocco.

More comparisons

Sources and how to cite

Data: United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024. Medium scenario, mid-year (1 July) estimates and projections. Licence CC BY 3.0 IGO. See the methodology and editorial policy.

Spotted an error? Report it.

APA

PopulationCount. (2026). Morocco vs Spain Population (2026). Retrieved 2026-11-27, from https://populationcount.com/compare/morocco-vs-spain

MLA

"Morocco vs Spain Population (2026)." PopulationCount, 2026, populationcount.com/compare/morocco-vs-spain. Accessed 27 Nov. 2026.

Chicago

PopulationCount. "Morocco vs Spain Population (2026)." 2026. Accessed November 27, 2026. https://populationcount.com/compare/morocco-vs-spain.

Harvard

PopulationCount (2026) Morocco vs Spain Population (2026). Available at: https://populationcount.com/compare/morocco-vs-spain (Accessed: 2026-11-27).

BibTeX

@misc{populationcount2026comparemoroccovsspain,
  author = {{PopulationCount}},
  title = {Morocco vs Spain Population (2026)},
  year = {2026},
  url = {https://populationcount.com/compare/morocco-vs-spain},
  note = {Data: United Nations, World Population Prospects 2024. Accessed 2026-11-27}
}