Morocco Population Pyramid 2040
Morocco in 2040
By 2040, the population of Morocco is expected to reach 42,168,205. Ten years before, in 2030, the projected population is 39,953,460 — 5.5% lower.
With a projected median age of 35.2 years, Morocco would have a youth dependency ratio of 30.6 and an old-age dependency ratio of 19.3 per 100 people of working age. The pyramid is stationary: cohort sizes are roughly even through the younger ages, reflecting fertility close to replacement level and slow population change.
Data source: United Nations World Population Prospects, 2024 revision (medium variant) — last updated July 2024.
In 2023 women in Morocco had on average 2.23 children, above the replacement level of 2.1.
Source: World Bank World Development Indicators, latest available year.
A child born there in 2023 could expect to live 75.3 years on average (77.6 years for girls, 73.2 for boys).
Source: World Bank World Development Indicators, latest available year.
92,403 immigrants live in Morocco, 0.2% of the population.
| France | 41,301 |
| Algeria | 15,731 |
| Spain | 4,797 |
| Syrian Arab Republic | 3,989 |
| Tunisia | 3,018 |
3,626,262 people born in Morocco live in other countries.
| Spain | 1,088,408 |
| France | 1,066,129 |
| Italy | 472,734 |
| Belgium | 246,575 |
| Israel | 190,607 |
Source: United Nations International Migrant Stock 2024.
| Country | Population | Median age | Relative size |
|---|---|---|---|
| Morocco | 42,168,205 | 35.2 | |
| Algeria | 54,873,476 | 32.5 | |
| Tunisia | 12,953,865 | 39.2 | |
| Sudan | 71,730,600 | 22.5 | |
| Libya | 8,651,417 | 33.8 |





