MAR · MA · United Nations WPP 2024 · 2026
Morocco
Morocco had a population of 38,762,441 people in 2026, ranking 41 of 237 countries and areas. Explore its age pyramid, trends and demographic indicators.
Source: United Nations World Population Prospects 2024, medium variant.
- Total population
- 38,762,441 people 2026 · Projection
- Rank
- #41/ 237 Africa #12 / 58
- Share of world population
- 0.47% 2026
- Density
- 86.9 people/km² 2026
- Median age
- 30.1 years
- Life expectancy
- 75.86 years
Country or area overview
Morocco is in Africa. In 2026, its population was 38,762,441 people, about 0.47% of the world total. It ranks #41 of 237 countries and areas worldwide. The population was 8,935,450 people in 1950 and is projected to reach 37,884,370 people in 2100. The annual population growth rate in 2026 is 0.84%. The median age is 30.1. 24.8% of the population is under 15 and 8.8% is 65 or older. Life expectancy is 75.86 and the total fertility rate is 2.16. Within Africa, it ranks #12 of 58 by population and #24 of 58 by population density. Data note This page uses the UN World Population Prospects 2024 medium variant. Data for 1950–2023 are estimates; 2024 onward, including 2026, are projections. Values for 2100 are long-range projections.
Population history and projection
Population from 1950 to 2100. The dashed section shows the UN medium-variant projection from 2024 onward.
Age group · 2026
Population age pyramid
Male and female population by five-year age group. Move the year slider to compare 1950, today and the 2100 projection.
Age-group data
| Age group | Male | Female | Total | Share |
|---|---|---|---|---|
| 0–4 | 1,572,113 | 1,505,159 | 3,077,272 | 7.94% |
| 5–9 | 1,644,684 | 1,570,703 | 3,215,387 | 8.30% |
| 10–14 | 1,697,651 | 1,606,426 | 3,304,077 | 8.52% |
| 15–19 | 1,692,123 | 1,607,227 | 3,299,350 | 8.51% |
| 20–24 | 1,521,824 | 1,453,418 | 2,975,242 | 7.68% |
| 25–29 | 1,470,224 | 1,394,923 | 2,865,147 | 7.39% |
| 30–34 | 1,465,050 | 1,405,212 | 2,870,262 | 7.40% |
| 35–39 | 1,464,768 | 1,411,858 | 2,876,626 | 7.42% |
| 40–44 | 1,374,375 | 1,361,065 | 2,735,440 | 7.06% |
| 45–49 | 1,227,087 | 1,227,502 | 2,454,589 | 6.33% |
| 50–54 | 1,076,376 | 1,087,234 | 2,163,610 | 5.58% |
| 55–59 | 924,971 | 945,174 | 1,870,145 | 4.82% |
| 60–64 | 803,574 | 852,369 | 1,655,943 | 4.27% |
| 65–69 | 677,236 | 699,501 | 1,376,737 | 3.55% |
| 70–74 | 483,731 | 506,363 | 990,094 | 2.55% |
| 75–79 | 263,522 | 313,939 | 577,461 | 1.49% |
| 80–84 | 119,424 | 179,491 | 298,915 | 0.77% |
| 85–89 | 43,158 | 76,762 | 119,920 | 0.31% |
| 90–94 | 9,985 | 21,369 | 31,354 | 0.08% |
| 95–99 | 1,185 | 3,418 | 4,603 | 0.01% |
| 100+ | 53 | 216 | 269 | 0.00% |
Demographic indicators
UN WPP 2024 indicators for 2026.
| Indicator | 2026 | Projection for 2100 | Unit |
|---|---|---|---|
| Total population | 38,762,441 people | 37,884,370 people | people |
| Male population | 19,533,113 people | 19,232,908 people | people |
| Female population | 19,229,328 people | 18,651,463 people | people |
| Population density | 86.9 people/km² | 84.9 people/km² | people/km² |
| Sex ratio | 101.6 | 103.1 | males per 100 females |
| Median age | 30.1 | 48.1 | years |
| Natural change | 384,816 | -171,752 | people |
| Natural change rate | 9.93 ‰ | -4.53 ‰ | ‰ |
| Population change | 323,926 | -232,906 | people |
| Population growth rate | 0.84% | -0.62% | % |
| Population doubling time | 82.9 | — | years |
| Births | 613,838 people | 333,713 people | people |
| Births to women aged 15–19 | 38,735 | 8,690 | people |
| Birth rate | 15.84 ‰ | 8.81 ‰ | ‰ |
| Total fertility rate | 2.16 | 1.74 | children per woman |
| Net reproduction rate | 1.030 | 0.842 | |
| Mean age at childbearing | 29.95 | 30.75 | years |
| Sex ratio at birth | 104.7 | 104.7 | males per 100 females |
| Deaths | 229,022 people | 505,465 people | people |
| Male deaths | 128,258 | 257,777 | people |
| Female deaths | 100,764 | 247,689 | people |
| Death rate | 5.91 ‰ | 13.34 ‰ | ‰ |
| Life expectancy at birth | 75.86 | 86.25 | years |
| Male life expectancy at birth | 73.71 | 85.33 | years |
| Female life expectancy at birth | 78.13 | 87.21 | years |
| Life expectancy at age 15 | 62.22 | 71.58 | years |
| Life expectancy at age 65 | 16.24 | 23.09 | years |
| Life expectancy at age 80 | 7.02 | 11.01 | years |
| Infant deaths | 7,872 | 925 | people |
| Infant mortality rate | 12.82 ‰ | 2.77 ‰ | ‰ |
| Survivors to age 1 | 606,594 | 332,835 | people |
| Deaths under age 5 | 9,363 | 1,098 | people |
| Under-5 mortality rate | 15.20 ‰ | 3.28 ‰ | ‰ |
| Net migration | -60,886 | -61,150 | people |
| Net migration rate | -1.57 ‰ | -1.61 ‰ | ‰ |
Frequently asked questions
- What is the population of Morocco?
- In 2026, Morocco had a population of 38,762,441 people. It ranks #41 of 237 countries and areas worldwide.
- How has the population of Morocco changed?
- The population was 8,935,450 people in 1950 and is projected to reach 37,884,370 people in 2100.
- What is the age structure of Morocco?
- The median age is 30.1. 24.8% of the population is under 15 and 8.8% is 65 or older.
- How does Morocco compare within Africa?
- By total population, Morocco ranks #12 of 58 in Africa and #41 of 237 worldwide.
Estimates cover 1950–2023; 2024 and later are UN medium-variant projections. Rankings use the latest available value for the selected year. The world total is the sum of all countries and areas in the dataset.