Morocco Population Pyramid 2017
Morocco in 2017
As of 2017, Morocco counted 35,446,392 inhabitants. Over the previous ten years the population grew by 13.7%, up from 31,186,468 in 2007.
The median age was 28.2 years, and for every 100 people of working age (15–64) there were 41.8 children under 15 and 9.4 people aged 65 or over. This is a stationary pyramid — similar numbers in each age group up to the older cohorts, the signature of near-replacement fertility.
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 | 35,446,392 | 28.2 | |
| Algeria | 41,689,299 | 28.0 | |
| Sudan | 42,714,307 | 18.3 | |
| Tunisia | 11,650,499 | 31.1 | |
| Libya | 6,738,770 | 26.8 |





