Morocco vs Spain: Population Comparison 2026
By Marko Visic · Updated
In the UN projection for 1 July 2026, Spain has 9,088,351 more people than Morocco (1.2× as many): 47.9 million vs 38.8 million. Median age is 30.1 in Morocco and 46.3 in Spain; fertility is 2.16 vs 1.24 children per woman.
Figures are a UN projection for 1 July 2026 from World Population Prospects 2024, medium variant; peak years and the 2050 values are medium-variant projections for later years. Replacement-level fertility is 2.1 children per woman.
Key demographic metrics, 2026
Morocco
2026- Median age
- 30.1
- Fertility (TFR)
- 2.16
- Working age (15–64)
- 66.5%
- Trend
- Growing (+0.86%)
Spain
2026- Median age
- 46.3
- Fertility (TFR)
- 1.24
- Working age (15–64)
- 65.5%
- Trend
- Declining (−0.08%)
Source: UN World Population Prospects 2024, projection for 1 July 2026 (medium variant).
Population pyramids, 2026
Total Population
Morocco
38.8M
Spain
47.9M
Youth (0-14)
Morocco
24.8%
Spain
12.3%
Elderly (65+)
Morocco
8.8%
Spain
22.2%
Source: UN World Population Prospects 2024, projection for 1 July 2026 (medium variant).
Where the two pyramids differ
Largest differences (more than 20%):
Source: UN World Population Prospects 2024, projection for 1 July 2026 (medium variant).
Demographic comparison, 2026
| Indicator | Morocco | Spain | Difference |
|---|---|---|---|
| Population (2026) | 38.8 million38,762,441 | 47.9 million47,850,792 | Spain has 9.1 million more (1.2×) |
| Change 2025–2026 | +0.9% (Growing) | −0.1% (Declining) | |
| Median age (2026) | 30.1 | 46.3 | Spain older by 16.2 yrs |
| Total fertility rate | 2.16 — 0.06 above replacement | 1.24 — 0.86 below replacement | |
| Fertility rate, 2030 (UN projection) | 2.08 | 1.26 | |
| Birth rate (per 1,000) | 15.8 | 6.8 | |
| Population 2050 (UN projection) | 43.4 million (+12.1%) | 44.9 million (−6.1%) | |
| Peak population | Projected to peak in 2058 | Peaked in 2023 |
Differences by age group, 2026
| Age | Morocco (M / F) | Spain (M / F) | Difference |
|---|---|---|---|
| 0-4 | 1572K / 1505K | 873K / 825K | Morocco has 81.2% more people aged 0-4 |
| 5-9 | 1645K / 1571K | 984K / 934K | Morocco has 67.6% more people aged 5-9 |
| 10-14 | 1698K / 1606K | 1175K / 1109K | Morocco has 44.7% more people aged 10-14 |
| 15-19 | 1692K / 1607K | 1326K / 1252K | Morocco has 27.9% more people aged 15-19 |
| 20-24 | 1522K / 1453K | 1337K / 1272K | Morocco has 14.1% more people aged 20-24 |
| 25-29 | 1470K / 1395K | 1267K / 1208K | Morocco has 15.8% more people aged 25-29 |
| 30-34 | 1465K / 1405K | 1310K / 1277K | Morocco has 10.9% more people aged 30-34 |
| 35-39 | 1465K / 1412K | 1424K / 1411K | Morocco has 1.5% more people aged 35-39 |
| 40-44 | 1374K / 1361K | 1612K / 1600K | Spain has 17.4% more people aged 40-44 |
| 45-49 | 1227K / 1228K | 1962K / 1919K | Spain has 58.1% more people aged 45-49 |
| 50-54 | 1076K / 1087K | 2002K / 1955K | Spain has 82.9% more people aged 50-54 |
| 55-59 | 925K / 945K | 1853K / 1870K | Spain has 99.1% more people aged 55-59 |
| 60-64 | 804K / 852K | 1704K / 1784K | Spain has 110.6% more people aged 60-64 |
| 65-69 | 677K / 700K | 1422K / 1567K | Spain has 117.1% more people aged 65-69 |
| 70-74 | 484K / 506K | 1114K / 1283K | Spain has 142.1% more people aged 70-74 |
| 75-79 | 264K / 314K | 908K / 1134K | Spain has 253.6% more people aged 75-79 |
| 80-84 | 119K / 179K | 646K / 898K | Spain has 416.3% more people aged 80-84 |
| 85-89 | 43K / 77K | 351K / 584K | Spain has 680.1% more people aged 85-89 |
| 90-94 | 10K / 21K | 171K / 363K | Spain has 1604.1% more people aged 90-94 |
| 95-99 | 1K / 3K | 38K / 109K | Spain has 3081.5% more people aged 95-99 |
| 100+ | 0K / 0K | 4K / 14K | Spain has 6464.7% more people aged 100+ |
Source: UN World Population Prospects 2024, projection for 1 July 2026 (medium variant).
Frequently Asked Questions
Which has more people, Morocco or Spain?
Spain has more: 47.9 million vs 38.8 million in 2026 (1.2× as many, 9.1 million more people).
Which country is older?
Spain, with a median age of 46.3 vs 30.1 in Morocco (2026).
Which has higher fertility?
Morocco, at 2.16 children per woman vs 1.24 in Spain. Replacement is 2.1, so both are compared against it.
How will Morocco and Spain compare in 2050?
By 2050 the UN projects Morocco at 43.4 million (+12.1% from 2026) and Spain at 44.9 million (−6.1%).
Are Morocco and Spain growing or shrinking?
Morocco is growing (+0.9% in 2026); Spain is declining (−0.1%).