Africa · Northern Africa · Maghreb
Morocco Demographics
Morocco combines continued population growth, lower fertility, a rising median age, a large working-age population, and a visible gap between the 2024 legal census count and international mid-year population estimates.
Sources used on this page: Morocco High Commission for Planning RGPH 2024, World Bank WDI, UN DESA World Population Prospects 2024 as displayed by Worldometer and PopulationPyramids.org, and Destatis Statistical Country Profile Morocco for sex-specific life expectancy values sourced to WB-WDI.
Last updated: June 30, 2026
Core Demographic Indicators
Detailed Demographic Indicators
| Indicator | Value | Year | Source |
|---|---|---|---|
| Mid-year population estimate | 38,762,441 | 2026 | UN WPP 2024 via Worldometer |
| Official legal population | 36,828,330 | 2024 | HCP RGPH 2024 |
| Moroccan citizens in legal population | 36,680,178 | 2024 | HCP RGPH 2024 |
| Foreign residents in legal population | 148,152 | 2024 | HCP RGPH 2024 |
| Average annual census growth | 0.85% | 2014-2024 | HCP RGPH 2024 |
| World Bank total population | 38,081,173 | 2024 | World Bank WDI |
| Population growth rate | 0.86% | 2026 | UN WPP 2024 via Worldometer |
| Median age | 30.1 years | 2026 | UN WPP 2024 via Worldometer |
| Total fertility rate | 2.16 births per woman | 2026 | UN WPP 2024 via Worldometer |
| Life expectancy at birth, total | 75 years | 2024 | World Bank WDI, rounded display value |
| Life expectancy at birth, women | 77.8 years | 2024 | Destatis Statistical Country Profile, WB-WDI source line |
| Life expectancy at birth, men | 73.3 years | 2024 | Destatis Statistical Country Profile, WB-WDI source line |
| Urban population share, international series | 67.9% | 2026 | UN WPP 2024 via Worldometer |
| Urban legal population | 23,110,108 | 2024 | HCP RGPH 2024 |
| Rural legal population | 13,718,222 | 2024 | HCP RGPH 2024 |
| Urban share, census-derived | 62.8% | 2024 | Calculated from HCP urban and total legal population |
| Aged 65 and over | 8.5% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
| Net migration | -60,886 people | 2026 | UN WPP 2024 via Worldometer |
| Population density | 87 people per km² | 2026 | UN WPP 2024 via Worldometer |
Table analysis
- The official 2024 legal census count is 36,828,330, while the international 2024 mid-year series reports 38,081,173.
- The census-based urban share, calculated from HCP legal counts, is 62.8%; the international mid-year urban share for 2026 is 67.9%.
- Fertility remains near the replacement benchmark but is lower than Morocco’s historical levels, at 2.16 births per woman in the 2026 UN WPP series.
- Sex-specific life expectancy values show women at 77.8 years and men at 73.3 years in 2024.
Population Trend
Morocco Population Trend
Mid-year population estimates from 1955 to 2026.
Source: UN DESA World Population Prospects 2024 as displayed by Worldometer. Estimates are mid-year values and are not the same measure as Morocco’s legal census count.
Trend analysis
- The mid-year estimate rises from 10.16 million in 1955 to 38.76 million in 2026.
- Growth continues in the latest UN series, but the annual growth rate is lower than in the 1960s, 1970s, and 1980s.
- The 2024 HCP legal census count is lower than the UN/WDI mid-year estimate because the two series use different population concepts and reference dates.
Historical Population Table
| Year | Population | Yearly % change | Yearly change | Net migration | Median age | Fertility rate | Density | Urban pop % | Urban population | World share | Global rank | Source |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026 | 38,762,441 | 0.86% | 331,671 | -60,886 | 30.1 | 2.16 | 87 | 67.9% | 26,319,419 | 0.47% | 41 | UN WPP 2024 via Worldometer |
| 2025 | 38,430,770 | 0.92% | 349,597 | -56,254 | 29.8 | 2.18 | 86 | 67.3% | 25,869,035 | 0.47% | 41 | UN WPP 2024 via Worldometer |
| 2024 | 38,081,173 | 0.98% | 368,668 | -46,802 | 29.5 | 2.21 | 85 | 66.7% | 25,413,883 | 0.47% | 40 | UN WPP 2024 via Worldometer |
| 2023 | 37,712,505 | 1.03% | 383,441 | -39,650 | 29.2 | 2.23 | 85 | 66.2% | 24,954,355 | 0.47% | 41 | UN WPP 2024 via Worldometer |
| 2022 | 37,329,064 | 1.01% | 372,428 | -38,594 | 28.9 | 2.26 | 84 | 65.6% | 24,490,652 | 0.47% | 41 | UN WPP 2024 via Worldometer |
| 2020 | 36,584,208 | 1.12% | 395,324 | -35,474 | 28.2 | 2.32 | 82 | 64.4% | 23,551,599 | 0.46% | 40 | UN WPP 2024 via Worldometer |
| 2015 | 34,607,588 | 1.29% | 428,114 | -81,248 | 26.4 | 2.41 | 78 | 61.2% | 21,163,594 | 0.46% | 39 | UN WPP 2024 via Worldometer |
| 2010 | 32,467,016 | 1.35% | 421,774 | -70,510 | 24.7 | 2.63 | 73 | 57.9% | 18,803,302 | 0.46% | 37 | UN WPP 2024 via Worldometer |
| 2005 | 30,358,144 | 1.33% | 386,942 | -59,024 | 23.0 | 2.61 | 68 | 55.5% | 16,839,654 | 0.46% | 37 | UN WPP 2024 via Worldometer |
| 2000 | 28,423,435 | 1.49% | 404,801 | -67,569 | 21.4 | 2.77 | 64 | 54.1% | 15,386,939 | 0.46% | 36 | UN WPP 2024 via Worldometer |
| 1995 | 26,399,429 | 1.61% | 404,776 | -85,386 | 19.9 | 3.29 | 59 | 53.0% | 13,995,788 | 0.46% | 36 | UN WPP 2024 via Worldometer |
| 1990 | 24,375,551 | 1.97% | 452,320 | -97,711 | 18.4 | 4.06 | 55 | 49.4% | 12,039,279 | 0.46% | 35 | UN WPP 2024 via Worldometer |
| 1985 | 22,113,953 | 2.59% | 530,802 | -45,336 | 17.2 | 4.99 | 50 | 45.6% | 10,091,997 | 0.45% | 35 | UN WPP 2024 via Worldometer |
| 1980 | 19,459,943 | 2.56% | 461,831 | -13,899 | 16.4 | 5.78 | 44 | 42.4% | 8,250,172 | 0.44% | 34 | UN WPP 2024 via Worldometer |
| 1975 | 17,150,786 | 2.54% | 404,267 | -51,968 | 15.8 | 6.30 | 38 | 39.1% | 6,714,483 | 0.42% | 34 | UN WPP 2024 via Worldometer |
| 1970 | 15,129,449 | 2.71% | 378,056 | -26,168 | 15.5 | 6.68 | 34 | 36.5% | 5,516,314 | 0.41% | 35 | UN WPP 2024 via Worldometer |
| 1965 | 13,239,171 | 2.63% | 322,848 | -33,139 | 15.6 | 6.93 | 30 | 34.2% | 4,533,672 | 0.40% | 34 | UN WPP 2024 via Worldometer |
| 1960 | 11,624,933 | 2.73% | 293,361 | -19,434 | 16.8 | 6.89 | 26 | 31.1% | 3,619,334 | 0.39% | 35 | UN WPP 2024 via Worldometer |
| 1955 | 10,158,129 | 2.60% | 244,536 | -4,494 | 18.0 | 6.50 | 23 | 28.7% | 2,913,419 | 0.37% | 37 | UN WPP 2024 via Worldometer |
Table analysis
- The table uses a single international series, so trend rows are comparable within the table.
- The highest fertility value shown is 6.93 births per woman in 1965; the 2026 value is 2.16.
- The urban population share rises from 28.7% in 1955 to 67.9% in 2026 in this UN-based series.
- Net migration is negative in every displayed row, with the largest negative value shown at -97,711 in 1990.
- World share remains near 0.47% in the latest rows, while Morocco’s global rank is listed as 41 in 2026.
Population Growth Rate
Annual Population Growth Rate
Selected years from the same UN-based mid-year series.
Source: UN DESA World Population Prospects 2024 as displayed by Worldometer.
Trend analysis
- The displayed annual growth rate falls from 2.73% in 1960 to 0.86% in 2026.
- The latest rows still show positive population growth, but at a slower pace than the pre-2000 period.
Broad Age Structure
Population by Broad Age Group
Share of population aged 0-14, 15-64, and 65+.
Source: PopulationPyramids.org, based on UN DESA World Population Prospects 2024. This is a broad age structure chart, not a full population pyramid.
| Age group | Population | Share | Year | Source |
|---|---|---|---|---|
| 0-14 | 9,684,354 | 25.2% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
| 15-64 | 25,498,906 | 66.4% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
| 65+ | 3,247,522 | 8.5% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
Data analysis
- The largest broad group is ages 15-64, with 25,498,906 people, or 66.4% of the 2025 source total.
- Children aged 0-14 make up 25.2%, while the 65+ group accounts for 8.5%.
- A native population pyramid is not produced here because the visible dataset used for this module is broad-age only, not five-year male/female age groups.
Sex Distribution
| Measure | Value | Share or ratio | Year | Source |
|---|---|---|---|---|
| Male population | 19,372,084 | 50.4% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
| Female population | 19,058,698 | 49.6% | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
| Sex ratio | 101.6 males per 100 females | 101.6 | 2025 | PopulationPyramids.org, based on UN WPP 2024 |
Table analysis
- The broad sex distribution is close to balanced, with 50.4% male and 49.6% female.
- The reported total sex ratio is 101.6 males per 100 females.
- Age-specific sex ratios are not listed because this page does not use five-year male/female age rows.
Fertility Rate
Fertility Rate Compared With Replacement Level
Total fertility rate compared with the 2.1 births-per-woman benchmark.
Source: UN DESA World Population Prospects 2024 as displayed by Worldometer. Replacement level is a broad benchmark, not a country-specific threshold.
Chart analysis
- The 2026 UN-based fertility value is 2.16 births per woman.
- The value is slightly above the broad 2.1 replacement-level benchmark in this source series.
- The historical table shows a long decline from higher fertility values in the 1960s and 1970s.
Life Expectancy
Life Expectancy at Birth by Sex
Women and men, latest sex-specific values available in the cited profile.
Source: Destatis Statistical Country Profile Morocco, citing WB-WDI for 2024 sex-specific values. Total life expectancy shown in the indicator table uses the rounded World Bank country-page display value.
| Measure | Value | Year | Source |
|---|---|---|---|
| Life expectancy at birth, women | 77.8 years | 2024 | Destatis Statistical Country Profile, WB-WDI source line |
| Life expectancy at birth, men | 73.3 years | 2024 | Destatis Statistical Country Profile, WB-WDI source line |
| Female-male gap | 4.5 years | 2024 | Calculated from the two sex-specific values above |
| Life expectancy at birth, total | 75 years | 2024 | World Bank WDI, rounded display value |
Data analysis
- Women are listed at 77.8 years and men at 73.3 years in the sex-specific 2024 source display.
- The calculated female-male gap is 4.5 years.
- The World Bank country page displays total life expectancy as a rounded 75 years for 2024.
Urban Population
Urban Population Share
International mid-year urban share compared with census-derived urban share.
Sources: UN WPP 2024 via Worldometer for the 2026 international series; HCP RGPH 2024 for the census-derived 2024 urban share.
Data analysis
- The UN-based 2026 urban share is 67.9%.
- The HCP 2024 legal census counts give 23,110,108 urban residents out of 36,828,330, or about 62.8%.
- The difference should be read as a source and definition difference, not as a direct year-to-year change.
Net Migration
Net Migration Over Time
Selected net migration values from the UN-based population series.
Source: UN DESA World Population Prospects 2024 as displayed by Worldometer. Net migration is immigrants minus emigrants.
| Year | Immigration | Emigration | Net migration | Source |
|---|---|---|---|---|
| 1990 | Data not available | Data not available | -97,711 | UN WPP 2024 via Worldometer |
| 2000 | Data not available | Data not available | -67,569 | UN WPP 2024 via Worldometer |
| 2010 | Data not available | Data not available | -70,510 | UN WPP 2024 via Worldometer |
| 2020 | Data not available | Data not available | -35,474 | UN WPP 2024 via Worldometer |
| 2024 | Data not available | Data not available | -46,802 | UN WPP 2024 via Worldometer |
| 2025 | Data not available | Data not available | -56,254 | UN WPP 2024 via Worldometer |
| 2026 | Data not available | Data not available | -60,886 | UN WPP 2024 via Worldometer |
Data analysis
- Every displayed year has negative net migration in the UN-based series.
- The 2026 net migration value is -60,886.
- Separate immigration and emigration counts are not available in the current visible dataset, so only the net balance is listed.
Population Projection
Population Projection to 2050
UN medium-variant projection values after the estimate period.
Source: UN DESA World Population Prospects 2024 medium variant as displayed by Worldometer. Projection values are scenario-based estimates.
| Year | Projected population | Yearly % change | Yearly change | Net migration assumption | Median age | Fertility rate | Urban pop % | Urban population | Scenario | Source |
|---|---|---|---|---|---|---|---|---|---|---|
| 2030 | 39,953,460 | 0.78% | 304,538 | -71,552 | 31.4 | 2.08 | 70.3% | 28,068,510 | Medium variant | UN WPP 2024 via Worldometer |
| 2035 | 41,182,094 | 0.61% | 245,727 | -76,775 | 32.8 | 2.00 | 73.2% | 30,126,912 | Medium variant | UN WPP 2024 via Worldometer |
| 2040 | 42,168,205 | 0.47% | 197,222 | -80,988 | 34.2 | 1.94 | 75.9% | 32,017,574 | Medium variant | UN WPP 2024 via Worldometer |
| 2045 | 42,925,306 | 0.36% | 151,420 | -81,753 | 35.8 | 1.90 | 78.6% | 33,725,978 | Medium variant | UN WPP 2024 via Worldometer |
| 2050 | 43,440,431 | 0.24% | 103,025 | -74,927 | 37.4 | 1.86 | 81.2% | 35,257,592 | Medium variant | UN WPP 2024 via Worldometer |
Projection analysis
- The medium-variant projection rises from 39.95 million in 2030 to 43.44 million in 2050.
- The projected annual growth rate slows from 0.78% in 2030 to 0.24% in 2050.
- Projected fertility falls from 2.08 in 2030 to 1.86 in 2050.
- Population projections are scenario-based estimates, not guaranteed outcomes.
Demographic Overview
The UN-based series still shows population growth, but annual growth has slowed from above 2.5% in several earlier rows to 0.86% in 2026.
The 2024 HCP legal census count is 36.83 million, while the World Bank/WPP 2024 total population value is 38.08 million; the page keeps these measures separate.
The 2025 broad age profile is centered on the working ages: 66.4% are aged 15-64, 25.2% are 0-14, and 8.5% are 65+.
The 2026 fertility rate is 2.16 births per woman in the UN-based series, slightly above the broad replacement-level benchmark of 2.1.
The international series reports 67.9% urban in 2026; the 2024 HCP legal census counts give a lower census-derived urban share of about 62.8%.
The medium-variant projection reaches 43.44 million by 2050, with lower projected annual growth and higher median age than the latest estimate rows.
Data Sources and Methodology
Values on this page keep official census counts, international mid-year estimates, and projection rows separate. Rounded values may not add exactly. Derived values are used only where the formula is direct and visible, such as the census-derived urban share and the female-male life expectancy gap.
| Source | Year or release | Used for |
|---|---|---|
| Morocco High Commission for Planning, RGPH 2024 | 2024 census release | Official legal population, Moroccan and foreign residents, urban and rural legal population, 2014-2024 average annual census growth |
| World Bank World Development Indicators | 2024 values, World Bank display updated through 2026 | World Bank total population value and rounded total life expectancy display value |
| UN DESA World Population Prospects 2024 via Worldometer | WPP 2024; 1955-2050 values displayed by Worldometer | Mid-year population estimates, historical trend table, growth rate, median age, fertility, net migration, urban share, density, projection table |
| PopulationPyramids.org, based on UN WPP 2024 | 2025 profile | Broad age structure, male population, female population, total sex ratio |
| Destatis Statistical Country Profile Morocco | 2026 country profile using 2024 WB-WDI values | Life expectancy at birth for women and men |
Source Comparison Notes
| Measure | Official census concept | International series concept | Page handling |
|---|---|---|---|
| Population | Legal population counted by RGPH 2024 reference date | Mid-year total population estimate used for cross-country series | Both values are shown separately; they are not merged into one trend line |
| Urban population | Urban legal residents counted by HCP RGPH 2024 | UN-based urban share and urban population estimate | The chart displays both values with source labels and different years |
| Projection | Observed count only | UN medium-variant scenario after the estimate period | Projection values are in a separate projection table and chart |
| Age-sex data | Detailed census age-sex release not used in this page | Broad age and total sex values from UN-based display pages | Broad age structure is shown; a full population pyramid is not produced |
Indicator Definitions
| Indicator | Definition | Unit | Source note |
|---|---|---|---|
| Population | Total population count or estimate depending on source and reference date. | People | HCP is legal census; WDI/WPP is international mid-year estimate. |
| Yearly change | Change in population over the period used by the source table. | People | Shown as displayed in the UN-based Worldometer table. |
| Net migration | Immigrants minus emigrants. | People | Separate immigration and emigration counts are not available in the visible source table. |
| Total fertility rate | Average births per woman implied by period age-specific fertility rates. | Births per woman | Compared with 2.1 only as a broad replacement-level benchmark. |
| Median age | Age at which half the population is younger and half is older. | Years | Source-year differences can change displayed values. |
| Urban population share | Share of the population classified as urban under the source definition. | Percent | Urban definitions vary, so HCP and UN-based shares are not treated as identical. |
| Projection | Scenario-based estimate for a future year. | People | Projection rows are not observed census counts. |
Method note
- The page prioritizes official census values when the measure is legal resident population.
- The page uses UN/WDI-style series for long trend charts because those values are internally consistent across many years.
- Worldometer and PopulationPyramids.org are used only where they display UN WPP 2024-derived values that are visible in the source record.
- No missing immigration, emigration, or detailed five-year age-sex rows are estimated.
Methodological Safety Note
Methodological Safety Note: Morocco’s official legal population from the 2024 census is not the same measure as UN/WDI mid-year population estimates. Census values refer to the RGPH legal population count and its reference date; WPP and WDI values are international series used for comparison over time. Projection rows are scenario-based estimates, not observed data. Urban shares can differ because source definitions and coverage differ. Rounded values may not add exactly, and broad age groups should not be read as a full age-sex population pyramid.
FAQ
What is Morocco’s population?
The UN-based 2026 mid-year estimate used here is 38,762,441 people. The official HCP 2024 legal census count is 36,828,330 people, so the answer depends on whether the question refers to an international estimate or the official legal census count.
Why do the 2024 population values differ?
The HCP figure is a legal population count from the 2024 census. The World Bank/WPP figure is an international mid-year estimate used for cross-country population series. They use different population concepts and reference dates.
Is Morocco’s fertility below replacement level?
In the UN-based series displayed here, the 2026 fertility value is 2.16 births per woman, slightly above the broad 2.1 replacement-level benchmark. The benchmark is general and should not be treated as a country-specific threshold.
Does this page include a Morocco population pyramid?
No. The page includes broad age groups and total male/female counts, but it does not include a full five-year age-by-sex dataset. A native population pyramid should only be produced from detailed male and female age-group counts.