Skip to content

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

Population estimate 38.76 million 2026 · UN WPP 2024 via Worldometer
Official legal population 36.83 million 2024 census · HCP RGPH 2024
Population growth 0.86% 2026 · UN WPP 2024 via Worldometer
Median age 30.1 years 2026 · UN WPP 2024 via Worldometer
Fertility rate 2.16 Births per woman · 2026 · UN WPP 2024 via Worldometer
Life expectancy 75 years 2024 · World Bank WDI, rounded display value
Urban population share 67.9% 2026 · UN WPP 2024 via Worldometer
Net migration -60,886 2026 · UN WPP 2024 via Worldometer

Detailed Demographic Indicators

IndicatorValueYearSource
Mid-year population estimate38,762,4412026UN WPP 2024 via Worldometer
Official legal population36,828,3302024HCP RGPH 2024
Moroccan citizens in legal population36,680,1782024HCP RGPH 2024
Foreign residents in legal population148,1522024HCP RGPH 2024
Average annual census growth0.85%2014-2024HCP RGPH 2024
World Bank total population38,081,1732024World Bank WDI
Population growth rate0.86%2026UN WPP 2024 via Worldometer
Median age30.1 years2026UN WPP 2024 via Worldometer
Total fertility rate2.16 births per woman2026UN WPP 2024 via Worldometer
Life expectancy at birth, total75 years2024World Bank WDI, rounded display value
Life expectancy at birth, women77.8 years2024Destatis Statistical Country Profile, WB-WDI source line
Life expectancy at birth, men73.3 years2024Destatis Statistical Country Profile, WB-WDI source line
Urban population share, international series67.9%2026UN WPP 2024 via Worldometer
Urban legal population23,110,1082024HCP RGPH 2024
Rural legal population13,718,2222024HCP RGPH 2024
Urban share, census-derived62.8%2024Calculated from HCP urban and total legal population
Aged 65 and over8.5%2025PopulationPyramids.org, based on UN WPP 2024
Net migration-60,886 people2026UN WPP 2024 via Worldometer
Population density87 people per km²2026UN 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.

Hover or click the chart to inspect values.

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

YearPopulationYearly % changeYearly changeNet migrationMedian ageFertility rateDensityUrban pop %Urban populationWorld shareGlobal rankSource
202638,762,4410.86%331,671-60,88630.12.168767.9%26,319,4190.47%41UN WPP 2024 via Worldometer
202538,430,7700.92%349,597-56,25429.82.188667.3%25,869,0350.47%41UN WPP 2024 via Worldometer
202438,081,1730.98%368,668-46,80229.52.218566.7%25,413,8830.47%40UN WPP 2024 via Worldometer
202337,712,5051.03%383,441-39,65029.22.238566.2%24,954,3550.47%41UN WPP 2024 via Worldometer
202237,329,0641.01%372,428-38,59428.92.268465.6%24,490,6520.47%41UN WPP 2024 via Worldometer
202036,584,2081.12%395,324-35,47428.22.328264.4%23,551,5990.46%40UN WPP 2024 via Worldometer
201534,607,5881.29%428,114-81,24826.42.417861.2%21,163,5940.46%39UN WPP 2024 via Worldometer
201032,467,0161.35%421,774-70,51024.72.637357.9%18,803,3020.46%37UN WPP 2024 via Worldometer
200530,358,1441.33%386,942-59,02423.02.616855.5%16,839,6540.46%37UN WPP 2024 via Worldometer
200028,423,4351.49%404,801-67,56921.42.776454.1%15,386,9390.46%36UN WPP 2024 via Worldometer
199526,399,4291.61%404,776-85,38619.93.295953.0%13,995,7880.46%36UN WPP 2024 via Worldometer
199024,375,5511.97%452,320-97,71118.44.065549.4%12,039,2790.46%35UN WPP 2024 via Worldometer
198522,113,9532.59%530,802-45,33617.24.995045.6%10,091,9970.45%35UN WPP 2024 via Worldometer
198019,459,9432.56%461,831-13,89916.45.784442.4%8,250,1720.44%34UN WPP 2024 via Worldometer
197517,150,7862.54%404,267-51,96815.86.303839.1%6,714,4830.42%34UN WPP 2024 via Worldometer
197015,129,4492.71%378,056-26,16815.56.683436.5%5,516,3140.41%35UN WPP 2024 via Worldometer
196513,239,1712.63%322,848-33,13915.66.933034.2%4,533,6720.40%34UN WPP 2024 via Worldometer
196011,624,9332.73%293,361-19,43416.86.892631.1%3,619,3340.39%35UN WPP 2024 via Worldometer
195510,158,1292.60%244,536-4,49418.06.502328.7%2,913,4190.37%37UN 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.

Hover or click the chart to inspect values.

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+.

Hover or click the chart to inspect values.

Source: PopulationPyramids.org, based on UN DESA World Population Prospects 2024. This is a broad age structure chart, not a full population pyramid.

Age groupPopulationShareYearSource
0-149,684,35425.2%2025PopulationPyramids.org, based on UN WPP 2024
15-6425,498,90666.4%2025PopulationPyramids.org, based on UN WPP 2024
65+3,247,5228.5%2025PopulationPyramids.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

MeasureValueShare or ratioYearSource
Male population19,372,08450.4%2025PopulationPyramids.org, based on UN WPP 2024
Female population19,058,69849.6%2025PopulationPyramids.org, based on UN WPP 2024
Sex ratio101.6 males per 100 females101.62025PopulationPyramids.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.

Hover or click the chart to inspect values.

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.

Hover or click the chart to inspect values.

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.

MeasureValueYearSource
Life expectancy at birth, women77.8 years2024Destatis Statistical Country Profile, WB-WDI source line
Life expectancy at birth, men73.3 years2024Destatis Statistical Country Profile, WB-WDI source line
Female-male gap4.5 years2024Calculated from the two sex-specific values above
Life expectancy at birth, total75 years2024World 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.

Hover or click the chart to inspect values.

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.

Hover or click the chart to inspect values.

Source: UN DESA World Population Prospects 2024 as displayed by Worldometer. Net migration is immigrants minus emigrants.

YearImmigrationEmigrationNet migrationSource
1990Data not availableData not available-97,711UN WPP 2024 via Worldometer
2000Data not availableData not available-67,569UN WPP 2024 via Worldometer
2010Data not availableData not available-70,510UN WPP 2024 via Worldometer
2020Data not availableData not available-35,474UN WPP 2024 via Worldometer
2024Data not availableData not available-46,802UN WPP 2024 via Worldometer
2025Data not availableData not available-56,254UN WPP 2024 via Worldometer
2026Data not availableData not available-60,886UN 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.

Hover or click the chart to inspect values.

Source: UN DESA World Population Prospects 2024 medium variant as displayed by Worldometer. Projection values are scenario-based estimates.

YearProjected populationYearly % changeYearly changeNet migration assumptionMedian ageFertility rateUrban pop %Urban populationScenarioSource
203039,953,4600.78%304,538-71,55231.42.0870.3%28,068,510Medium variantUN WPP 2024 via Worldometer
203541,182,0940.61%245,727-76,77532.82.0073.2%30,126,912Medium variantUN WPP 2024 via Worldometer
204042,168,2050.47%197,222-80,98834.21.9475.9%32,017,574Medium variantUN WPP 2024 via Worldometer
204542,925,3060.36%151,420-81,75335.81.9078.6%33,725,978Medium variantUN WPP 2024 via Worldometer
205043,440,4310.24%103,025-74,92737.41.8681.2%35,257,592Medium variantUN 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

Population direction

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.

Census and estimate gap

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.

Age structure

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+.

Fertility pattern

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.

Urban profile

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%.

Projection path

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.

SourceYear or releaseUsed for
Morocco High Commission for Planning, RGPH 20242024 census releaseOfficial legal population, Moroccan and foreign residents, urban and rural legal population, 2014-2024 average annual census growth
World Bank World Development Indicators2024 values, World Bank display updated through 2026World Bank total population value and rounded total life expectancy display value
UN DESA World Population Prospects 2024 via WorldometerWPP 2024; 1955-2050 values displayed by WorldometerMid-year population estimates, historical trend table, growth rate, median age, fertility, net migration, urban share, density, projection table
PopulationPyramids.org, based on UN WPP 20242025 profileBroad age structure, male population, female population, total sex ratio
Destatis Statistical Country Profile Morocco2026 country profile using 2024 WB-WDI valuesLife expectancy at birth for women and men

Source Comparison Notes

MeasureOfficial census conceptInternational series conceptPage handling
PopulationLegal population counted by RGPH 2024 reference dateMid-year total population estimate used for cross-country seriesBoth values are shown separately; they are not merged into one trend line
Urban populationUrban legal residents counted by HCP RGPH 2024UN-based urban share and urban population estimateThe chart displays both values with source labels and different years
ProjectionObserved count onlyUN medium-variant scenario after the estimate periodProjection values are in a separate projection table and chart
Age-sex dataDetailed census age-sex release not used in this pageBroad age and total sex values from UN-based display pagesBroad age structure is shown; a full population pyramid is not produced

Indicator Definitions

IndicatorDefinitionUnitSource note
PopulationTotal population count or estimate depending on source and reference date.PeopleHCP is legal census; WDI/WPP is international mid-year estimate.
Yearly changeChange in population over the period used by the source table.PeopleShown as displayed in the UN-based Worldometer table.
Net migrationImmigrants minus emigrants.PeopleSeparate immigration and emigration counts are not available in the visible source table.
Total fertility rateAverage births per woman implied by period age-specific fertility rates.Births per womanCompared with 2.1 only as a broad replacement-level benchmark.
Median ageAge at which half the population is younger and half is older.YearsSource-year differences can change displayed values.
Urban population shareShare of the population classified as urban under the source definition.PercentUrban definitions vary, so HCP and UN-based shares are not treated as identical.
ProjectionScenario-based estimate for a future year.PeopleProjection 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.