Geographic History

Flag of MoroccoPopulation of Morocco (2026)

The population of Morocco is 38,762,441 in 2026 (UN mid-year projection).

Morocco has the 41st largest population of 195 ranked countries (2026, UN).

Between 2025 and 2026, the population of Morocco rose by 331,671 people, or 0.86% (UN).

Morocco holds 0.47% of the world population in 2026; the world total is 8,300,678,396 (UN).

Population density in Morocco is 85.3 people per km² (2024, World Bank).

63.1% of the population of Morocco lives in urban areas (2025, World Bank).

The median age in Morocco is 29.2 years (2023, UN).

38,762,441

Live estimate: a straight-line interpolation between the UN mid-year figures for 2026 and 2027. It is not a count.

Key figures

Population, UN mid-year projection
38,762,441 people2026, UN
Population, World Bank
38,430,770 people2025, World Bank, 41 of 194
Change 2025-2026
+331,671 people+0.86%, UN
World rank
41 of 1952026, UN
Share of world population
0.47%2026, UN
Population density
85.3 people per km²2024, World Bank
Urban population share
63.1%2025, World Bank
Median age
29.2 years2023, UN

Population, 1950-2100

010M20M30M40M50M1950200020502100

Solid line: UN values to 2023. Dashed line: projection to 2100 (Medium variant).

Population by year

Population of Morocco by year
YearValue (people)ChangeChange, %Basis
202638,762,441+331,671+0.86%projection
202538,430,770+349,597+0.92%projection
202438,081,173+368,668+0.98%projection
202337,712,505+383,441+1.03%estimate
202237,329,064+374,622+1.01%estimate
202136,954,442+370,234+1.01%estimate
202036,584,208+373,310+1.03%estimate
201936,210,898+371,138+1.04%estimate
201835,839,760+393,368+1.11%estimate
201735,446,392+422,935+1.21%estimate
201635,023,457+415,869+1.20%estimate
201534,607,588+402,808+1.18%estimate
201434,204,780+417,209+1.23%estimate
201333,787,571+432,330+1.30%estimate
201233,355,241+442,653+1.34%estimate
201132,912,588+445,572+1.37%estimate
201032,467,016+436,238+1.36%estimate
200932,030,778+424,011+1.34%estimate
200831,606,767+420,299+1.35%estimate
200731,186,468+415,290+1.35%estimate
200630,771,178+413,034+1.36%estimate
200530,358,144+405,126+1.35%estimate
200429,953,018+381,603+1.29%estimate
200329,571,415+373,273+1.28%estimate
200229,198,142+383,499+1.33%estimate
200128,814,643+391,208+1.38%estimate
200028,423,435+396,256+1.41%estimate
199928,027,179+405,531+1.47%estimate
199827,621,648+408,311+1.50%estimate
199727,213,337+405,230+1.51%estimate
199626,808,107+408,678+1.55%estimate
199526,399,429+398,607+1.53%estimate
199426,000,822+386,236+1.51%estimate
199325,614,586+402,118+1.59%estimate
199225,212,468+413,454+1.67%estimate
199124,799,014+423,463+1.74%estimate
199024,375,551+436,137+1.82%estimate
198923,939,414+438,890+1.87%estimate
198823,500,524+446,132+1.94%estimate
198723,054,392+453,589+2.01%estimate
198622,600,803+486,850+2.20%estimate
198522,113,953+520,175+2.41%estimate
198421,593,778+533,082+2.53%estimate
198321,060,696+540,378+2.63%estimate
198220,520,318+534,916+2.68%estimate
198119,985,402+525,459+2.70%estimate
198019,459,943+504,354+2.66%estimate
197918,955,589+478,204+2.59%estimate
197818,477,385+462,629+2.57%estimate
197718,014,756+440,574+2.51%estimate
197617,574,182+423,396+2.47%estimate
197517,150,786+416,944+2.49%estimate
197416,733,842+407,574+2.50%estimate
197316,326,268+401,576+2.52%estimate
197215,924,692+397,467+2.56%estimate
197115,527,225+397,777+2.63%estimate
197015,129,448+395,192+2.68%estimate
196914,734,256+386,356+2.69%estimate
196814,347,900+379,725+2.72%estimate
196713,968,175+371,110+2.73%estimate
196613,597,065+357,894+2.70%estimate
196513,239,171+340,285+2.64%estimate
196412,898,886+321,384+2.56%estimate
196312,577,502+324,410+2.65%estimate
196212,253,092+322,006+2.70%estimate
196111,931,086+306,153+2.63%estimate
196011,624,933+307,926+2.72%estimate
195911,317,007+303,265+2.75%estimate
195811,013,742+293,194+2.73%estimate
195710,720,548+286,524+2.75%estimate
195610,434,024+275,896+2.72%estimate
195510,158,128+264,813+2.68%estimate
19549,893,315+253,747+2.63%estimate
19539,639,568+244,690+2.60%estimate
19529,394,878+235,588+2.57%estimate
19519,159,290+223,840+2.51%estimate
19508,935,450--estimate

Morocco through history

Morocco became independent on March 2, 1956.

In 1956, the year Morocco became independent, its population was 10,434,024 (UN mid-year estimate).

The nearest world map in the atlas to that year is 1960.

Map quizzes that include Morocco

Population projection to 2100

Population projection to 2100
YearPopulationChange from 2026
203039,953,460+3.1%
204042,168,205+8.8%
205043,440,431+12.1%
206043,707,410+12.8%
207043,078,138+11.1%
208041,806,425+7.9%
209040,048,050+3.3%
210037,884,370-2.3%

Morocco in context

Morocco in context
CountryPopulationYearDensityRankRelation
Algeria48,028,334202619.7 people per km² (2024)32 of 195land neighbour
Spain47,850,793202697.8 people per km² (2024)34 of 195land neighbour
Angola40,215,180202630.4 people per km² (2024)39 of 195similar size
Ukraine39,535,848202665.3 people per km² (2024)40 of 195similar size
Morocco38,762,441202685.3 people per km² (2024)41 of 195this country
Poland37,843,1882026119 people per km² (2024)42 of 195similar size
Uzbekistan37,724,223202682.9 people per km² (2024)43 of 195similar size
Mozambique36,639,850202644.0 people per km² (2024)44 of 195similar size
Western Sahara610,8132026-not rankedland neighbour

Frequently asked questions

How many people live in Morocco?

The population of Morocco is 38,762,441 in 2026 (UN mid-year projection).

How does Morocco rank in the world by population?

Morocco has the 41st largest population of 195 ranked countries (2026, UN).

Is the population of Morocco growing?

Yes. The UN data show a rise from 8,935,450 in 1950 to 38,762,441 in 2026, a change of +333.8%.

What was the population of Morocco in 1956, the year it became independent?

In 1956, the year Morocco became independent, its population was 10,434,024 (UN mid-year estimate).

What is the population density of Morocco?

Population density in Morocco is 85.3 people per km² (2024, World Bank).

What will the population of Morocco be in 2050?

The UN medium-variant projection for Morocco is 43,440,431 in 2050. A projection is not a forecast of certainty: it depends on assumptions about births, deaths and migration.

What it measures

Total population counts all residents of a country regardless of legal status or citizenship. The UN figure is for 1 July of the year; the World Bank figure is its latest annual value.

Sources and method

UN figures are from UN - World Population Prospects 2024, Medium variant, World Population Prospects 2024 (revision 1): Interim update, released 19 January 2026 (Togo replaced; all other locations as released 11 July 2024); downloaded 2026-11-24. They count people on 1 July of each year. Values up to 2023 are estimates; later values are projections.

World Bank figures are the latest annual value in the data (World Development Indicators). Where the two sources give a population for the same year and differ by more than 2%, the page says so.

The population rank is computed from the UN values for 2026 among the 195 independent states that have a value; territories and dependencies are not ranked.

The yearly table lists the UN values for each year where the source has one; years without a value are left out.

Last updated:

More about Morocco

More statistics for Morocco

Every year has a map

Drag a timeline across 2,500 years in the free Geographic History app - every province, ruler and battle, also offline.