censuswall MAR · 2026 · ages 0–100
Topics

Country or area · Northern Africa · Africa · UN WPP 2024

Morocco population

Morocco population now

38,841,869

A projection read at this second, not a count: the UN's totals for 1 January 2026 and 2027, joined by a straight line. 95% range for 31 December 2026: 38.5–39.3 million.

Mid-2023, UN estimate: 37,712,505

Year
2026
projection · medium
Population, mid-2026
38.7624 million
95% range, 31 Dec: 38.5–39.3 million
Median age
31.1
Aged 65+
8.8%
2023 | 2024 peak 2058

male female projection · one cell = 5,000 people

How to read this: one row for each age, newborns at the bottom; men on the left, women on the right.

Verified 2026-09-30 · 73 canaries

MAR · 1950–2100 · in brief

Morocco in numbers

The UN counts 37,712,505 people in Morocco in mid-2023, which makes it the 41st-largest population of the 236 countries and areas the UN reports, and 0.47% of the world's people. That is 4.2 times its 1950 population of 8.9 million.

The UN's medium projection has it peaking in 2058 at 43.7 million, then falling to 37.9 million by 2100. The projection is uncertain: on 1 January 2100 the UN's 95% range runs from 23.8 million to 58.5 million.

Births stay ahead of deaths until 2067; in the medium projection, deaths are ahead every year after it.

The median age was 19.3 in 1950 and 30.2 in 2023; the projection has 49.1 in 2100. 7.8% of people were 65 or older in 2023, against 30.3% projected for 2100. The working-age population (15–64) is projected to peak in 2045 at 28.3 million.

By size it is the 41st country in 2023; the projection puts it 50th in 2050 and 57th in 2100. In the medium projection it overtakes Ukraine in 2024, Poland in 2025 and South Korea in 2054. It is overtaken by Angola in 2025, Mozambique in 2029 and Uzbekistan in 2030.

Population, mid-2023
37,712,505
Rank by population, 2023
41 of 236
Share of the world, 2023
0.47%
Change in a year, mid-2022 to mid-2023
+1.03% · +383,441 people
People per km² of land, 2023
85
Land area, 2023
446,300 km²
Births, 2023
629,832
Deaths, 2023
212,624
Net migration, 2023
−39,650
Children per woman, 2023
2.23
Median age, 2023
30.2 years
Life expectancy at birth, 2023
75.3 years
In a city, 2025
52 of every 100
Population, mid-1950
8,935,450
Projected, mid-2050
43,440,430
Projected, mid-2100
37,884,370

MAR · 1950–2100 · total population

Population, 1950–2100

peak 2058estimates | projections010 m20 m30 m40 m50 m60 m1950197520002025205020752100

estimate   projection, up to the bottom of the 95% range   95% range   medium projection. Every column stands for a single year, counted on 1 January, and the paper rules slice it into cells of equal size.

Show the numbers: Morocco, 1950–2100
Morocco: population on 1 January, births, deaths, fertility and life expectancy, 1950–2100
YearKindPopulation, 1 Jan95% rangeBirthsDeathsChildren per womanLife expectancy
1950estimate8,826,639435,623223,4076.1438.8
1951estimate9,044,261453,360227,8616.2239.1
1952estimate9,274,318471,956232,3336.3139.6
1953estimate9,515,439489,349236,6926.3940.0
1954estimate9,763,696503,233240,2926.4340.4
1955estimate10,022,934518,380243,4936.5040.8
1956estimate10,293,323532,832246,3346.5641.2
1957estimate10,574,726546,947248,6436.6341.7
1958estimate10,866,370561,533250,6186.7142.2
1959estimate11,161,115576,299252,3746.8042.7
1960estimate11,472,899590,641267,1426.8941.7
1961estimate11,776,967603,574254,9236.9743.7
1962estimate12,085,204620,122256,2747.0544.2
1963estimate12,420,979625,823256,5697.0144.8
1964estimate12,734,025631,489255,6606.9745.4
1965estimate13,063,746638,697254,7106.9345.9
1966estimate13,414,596645,608253,7226.8946.5
1967estimate13,779,534653,022252,4336.8447.1
1968estimate14,156,816658,866251,4366.7947.7
1969estimate14,538,983665,677250,7446.7348.2
1970estimate14,929,528676,670250,6566.6848.7
1971estimate15,329,369685,896250,7986.6249.2
1972estimate15,725,081696,964250,5156.5449.7
1973estimate16,124,303705,877250,1786.4850.2
1974estimate16,528,234713,472249,3246.4050.8
1975estimate16,939,451722,544247,9076.3051.4
1976estimate17,362,121727,295245,1516.1752.0
1977estimate17,786,244730,694241,5206.0452.8
1978estimate18,243,269736,672237,8365.9153.5
1979estimate18,711,501749,545233,9975.8554.4
1980estimate19,199,676764,790230,3465.7855.2
1981estimate19,720,210780,164227,2315.7156.0
1982estimate20,250,593788,048223,1305.6056.9
1983estimate20,790,043784,732218,4215.4157.7
1984estimate21,331,348777,977213,8155.2058.4
1985estimate21,856,208769,532208,7014.9959.2
1986estimate22,371,699761,984203,8744.7760.0
1987estimate22,829,907752,653199,6494.5860.6
1988estimate23,278,876741,830196,0524.3961.2
1989estimate23,722,173731,788192,7884.2261.8
1990estimate24,156,656725,559190,0634.0662.4
1991estimate24,594,446728,333188,4843.9562.9
1992estimate25,003,582712,513186,8303.7663.4
1993estimate25,421,355692,622184,9033.5563.9
1994estimate25,807,817684,959183,5383.4164.3
1995estimate26,193,828680,214183,6393.2964.7
1996estimate26,605,029684,460182,9753.2365.2
1997estimate27,011,186684,162183,3523.1565.6
1998estimate27,415,488676,123183,5133.0466.0
1999estimate27,827,808656,406183,3302.8866.4
2000estimate28,226,551644,893183,5462.7766.8
2001estimate28,620,320636,432183,8222.6967.2
2002estimate29,008,965630,693184,5382.6267.6
2003estimate29,387,318638,403185,7542.6168.0
2004estimate29,755,513649,571187,8102.6168.3
2005estimate30,150,524662,341188,0742.6168.8
2006estimate30,565,764672,603189,4112.6169.2
2007estimate30,976,591683,664190,1522.6269.6
2008estimate31,396,345690,897191,1372.6170.0
2009estimate31,817,188701,896192,5202.6270.5
2010estimate32,244,368710,089194,2772.6370.8
2011estimate32,689,663707,816194,5222.6071.3
2012estimate33,135,512699,725195,0162.5471.7
2013estimate33,574,971687,270194,9722.4872.1
2014estimate34,000,171676,799195,5182.4272.5
2015estimate34,409,389674,422196,7762.4172.9
2016estimate34,805,788673,304198,6582.4073.2
2017estimate35,241,127670,575199,5762.3873.6
2018estimate35,651,657665,650201,2922.3574.0
2019estimate36,027,863661,124203,8262.3474.2
2020estimate36,393,933653,031237,0132.3273.1
2021estimate36,774,483645,134237,3052.2973.4
2022estimate37,134,402635,906207,9902.2675.2
2023estimate37,523,726629,832212,6242.2375.3
2024estimate37,901,284624,620218,0492.2175.5
2025projection38,261,06238.1–38.4 million619,057223,3812.1875.7
2026projection38,600,47838.3–38.9 million613,838229,0222.1675.9
2027projection38,924,40438.5–39.3 million608,737234,9292.1476.0
2028projection39,235,79438.7–39.8 million604,819240,8902.1276.2
2029projection39,532,45738.8–40.3 million601,150246,8952.1076.4
2030projection39,816,66338.9–40.7 million598,285253,1352.0876.5
2031projection40,090,25739.0–41.2 million594,230259,6772.0676.7
2032projection40,353,22939.1–41.7 million591,376265,9512.0576.9
2033projection40,602,74439.2–42.1 million588,747272,4332.0377.0
2034projection40,843,20639.2–42.6 million586,104278,9652.0277.2
2035projection41,071,28239.3–43.0 million584,049285,6552.0077.3
2036projection41,292,90539.3–43.5 million581,604291,9001.9977.5
2037projection41,503,55539.3–43.9 million579,690298,4321.9877.7
2038projection41,704,51139.3–44.3 million577,725305,0461.9777.8
2039projection41,900,03839.3–44.7 million575,209311,2221.9578.0
2040projection42,080,85239.4–45.1 million572,779317,0991.9478.2
2041projection42,255,55839.3–45.5 million569,558323,4591.9378.3
2042projection42,422,52539.3–45.9 million566,535329,5221.9278.5
2043projection42,578,12939.3–46.3 million563,122335,4831.9178.7
2044projection42,722,86139.3–46.7 million559,442340,9601.9078.8
2045projection42,862,13539.3–47.1 million554,897346,7991.9079.0
2046projection42,988,47739.3–47.4 million550,260352,2811.8979.1
2047projection43,103,88139.2–47.8 million545,729357,7021.8879.3
2048projection43,212,45739.0–48.2 million541,309362,8391.8879.5
2049projection43,312,34838.9–48.5 million535,463367,8601.8779.6
2050projection43,399,09238.8–48.9 million530,486372,8911.8679.8
2051projection43,481,76938.7–49.2 million524,782377,8531.8679.9
2052projection43,552,52838.7–49.5 million519,787383,1871.8580.1
2053projection43,612,10738.5–49.8 million514,664388,2811.8580.2
2054projection43,659,26938.4–50.1 million509,099393,1791.8580.4
2055projection43,695,27338.2–50.4 million503,405398,1271.8480.5
2056projection43,720,11838.0–50.7 million497,970402,9511.8380.7
2057projection43,732,13237.8–51.0 million493,191408,0151.8380.8
2058projection43,737,40837.5–51.4 million488,108413,5081.8381.0
2059projection43,734,93437.4–51.7 million483,379418,4681.8281.1
2060projection43,719,49837.2–52.0 million479,062423,5191.8281.3
2061projection43,695,32236.9–52.3 million475,048428,4801.8281.4
2062projection43,663,95736.6–52.5 million471,142433,3161.8181.5
2063projection43,621,55536.4–52.8 million466,983438,0841.8181.7
2064projection43,574,24036.2–53.1 million463,563443,0141.8181.8
2065projection43,517,10535.9–53.4 million459,876447,5641.8082.0
2066projection43,448,44035.5–53.6 million456,472452,2121.8082.1
2067projection43,380,18435.3–53.9 million453,446456,5771.8082.2
2068projection43,301,96434.9–54.2 million450,680460,9911.8082.4
2069projection43,218,29534.7–54.5 million447,354464,8731.7982.5
2070projection43,127,98334.5–54.7 million443,901468,4651.7982.6
2071projection43,028,29434.1–54.9 million440,284471,4981.7982.8
2072projection42,925,19933.8–55.2 million436,868474,3941.7882.9
2073projection42,814,02833.5–55.4 million433,380477,3391.7883.1
2074projection42,696,16533.2–55.8 million429,957479,8821.7883.2
2075projection42,573,26232.9–55.8 million426,588482,2351.7883.3
2076projection42,446,59232.5–56.1 million422,932484,5751.7883.4
2077projection42,314,86632.2–56.4 million418,701486,8311.7783.6
2078projection42,177,22131.8–56.6 million414,536488,0591.7783.7
2079projection42,033,72631.4–56.7 million410,547489,1071.7783.8
2080projection41,883,29931.1–56.8 million406,491490,2191.7683.9
2081projection41,729,55230.7–56.9 million402,631491,0031.7684.1
2082projection41,571,08730.3–57.0 million398,458491,5651.7684.2
2083projection41,408,33130.0–57.2 million393,857492,2881.7684.3
2084projection41,243,05229.6–57.3 million389,588492,8751.7684.4
2085projection41,070,04229.2–57.5 million385,196493,6501.7584.5
2086projection40,891,09528.8–57.5 million381,160493,9951.7584.7
2087projection40,709,40728.4–57.5 million377,198494,4851.7584.8
2088projection40,526,30628.1–57.4 million372,904494,7601.7584.9
2089projection40,340,68427.8–57.6 million368,938495,8971.7585.0
2090projection40,147,14227.4–57.8 million364,849496,7521.7485.1
2091projection39,948,95827.0–57.7 million360,805497,6091.7485.3
2092projection39,745,57626.7–57.8 million358,039498,6111.7485.4
2093projection39,539,04726.3–57.8 million354,590499,6391.7485.5
2094projection39,328,89226.0–58.0 million351,199500,5501.7485.6
2095projection39,116,79525.7–58.0 million348,054501,6451.7485.7
2096projection38,900,14325.4–57.9 million344,953502,8021.7485.8
2097projection38,679,62825.0–58.0 million341,853503,8751.7485.9
2098projection38,456,78124.7–58.1 million339,079504,6071.7486.0
2099projection38,230,22924.2–58.3 million336,676505,2891.7486.1
2100projection38,000,82323.8–58.5 million333,713505,4651.7486.3
Show the numbers: Morocco, mid-2026, by single year of age
Morocco: population by single year of age, mid-2026
AgeMaleFemale
0310,410297,226
1311,952298,666
2313,944300,528
3316,252302,746
4319,556305,994
5323,286309,754
6326,754312,877
7329,408314,902
8331,559316,161
9333,676317,009
10334,682317,068
11335,073317,147
12337,685319,470
13342,874324,222
14347,336328,519
15348,954330,286
16346,102328,010
17339,452322,309
18332,501316,425
19325,114310,196
20316,843303,196
21308,073295,782
22300,864288,664
23297,606283,576
24298,438282,202
25298,431281,408
26294,471278,243
27292,988277,980
28293,625279,537
29290,710277,756
30288,032276,302
31289,607278,376
32292,658281,416
33295,898283,845
34298,855285,274
35299,666285,260
36296,165282,963
37291,081280,128
38289,376280,837
39288,480282,670
40284,562280,908
41279,586276,798
42274,920272,170
43270,281267,915
44265,026263,274
45258,409256,664
46251,440249,744
47244,877244,176
48239,060240,359
49233,301236,560
50226,972230,548
51220,705223,285
52214,906216,652
53209,725211,273
54204,068205,476
55197,296198,259
56190,378191,695
57183,954186,998
58178,829184,735
59174,514183,488
60169,364179,664
61164,009173,950
62159,864169,408
63156,993166,737
64153,344162,610
65147,421154,463
66141,100145,878
67135,448139,198
68129,830133,280
69123,438126,682
70115,193118,133
71105,896108,802
7296,596100,320
7387,58693,183
7478,45985,926
7568,89677,113
7659,86968,515
7751,70061,134
7844,65655,741
7938,40051,436
8032,59745,930
8127,46839,853
8223,17934,873
8319,72931,367
8416,45027,468
8513,13222,369
8610,33417,925
878,25814,831
886,52412,174
894,9109,464
903,5717,092
912,5665,336
921,8053,994
931,2302,904
948122,043
955181,390
96318908
97188573
98106348
9955200
100+53216

MAR · 1950–2100 · every age, every year

Morocco, every age in every year

Each column is a year and each row an age; the denser the ink in a cell, the more people. Everyone born in the same year climbs one 45° diagonal, so famines, baby booms and migration show up as streaks. Select a cell to follow its generation.

MAR · ages 15–64

Who does the work in Morocco

On the UN's projection, Morocco will have the most working-age people it ever has in 2045: 28,274,100 people aged 15–64. In 2023 it had 24,942,700.

100 aged 15–64
39 children
12 aged 65+

aged 15–64   children under 15   aged 65 and over

How to read this: one orange square for each of 100 people aged 15–64 in 2023. Beneath them, teal for the children living alongside those 100 and violet for the people aged 65 or older.

Fewer than 50 dependants live alongside every 100 people aged 15–64 in 12 years: 2029–2040.

fewer than 50 dependants per 100   the same, projected   50 or more

How to read this: one stripe a year from 1950 to 2100. A stripe takes colour in a year when fewer than 50 dependants live alongside every 100 people of working age, and stays grey otherwise; hatching means the year is projected.

How every country compares

MAR · arrivals minus departures

Who arrives in Morocco, and who leaves

In 2020–2025 Morocco loses 43,764 people a year: everyone who arrives, minus everyone who leaves. The age at which that happens most is 20–24, at 11,379 a year more leaving than arriving.

one square = 2,000 people a year
020406080+

more arrive than leave   more leave than arrive

How to read this: each column is one age, youngest on the left. Above the line, in blue, are the ages gaining people; below it, in orange, the ages losing them. This is the UN's projection for 2020–2025 — the record of migration by age does not go back beyond 2020.

Across the counted years, 1950 to 2023, its biggest single-year gain was 5,407 (1950); its biggest loss, 130,717 (1991).

In 2024, 111,069 people living in Morocco had been born in another country, fewer than 1 of every 100 people there, against fewer than 1 in 1990.

How migration works everywhere

MAR · births by the mother's age · 1950–2100

Who has the babies in Morocco

Of every 100 babies born in Morocco in 2023, 6 had a mother under 20, 71 a mother aged 20 to 34 and 23 a mother aged 35 or older. In 1950 it was 21 under 20 and 12 aged 35 or older.

1950
21 · 67 · 12
2023
6 · 71 · 23
2050 · projected
5 · 71 · 24

The mother's age: under 20 20 to 34 35 or older projected

How to read this: shrink a year's babies to 100 and colour each one by the age of its mother — that is a block. Under it, the same three groups as numbers, starting with the youngest mothers.

Babies born, 2023
629,832
Average age when women have a baby
29.9 years
28.5 in 1950
Babies a year per 1,000 girls aged 15–19
25
159 in 1950
Babies by the mother's age, 1950–2100
Babies born in Morocco by the mother's age
Mother's age19501975200020232050 projected2100 projected
10–1411,8073,96638821113256
15–1980,38085,21355,94738,45024,6788,687
20–24130,229192,802157,319128,40195,70244,991
25–29101,231172,127168,479162,963140,18793,275
30–3458,754122,161139,632155,754143,558106,453
35–3932,52988,42784,55199,34989,93761,424
40–4415,79945,14031,27038,93031,18616,625
45–494,63512,1136,9785,5604,8962,145
50–5425959532921421057
All babies435,623722,544644,893629,832530,486333,713

The UN's births for each year, split by the mother's age in the UN's own proportions.

MAR · healthy years · 2021

Years in good health in Morocco

Of the 72.6 years a baby born in Morocco in 2021 could expect, about 62.3 would be lived in full health (95% range 61.6–63.3). The years in less than full health come to 10.3, above the world's 9.5.

Women

61.8 in full health, 11.9 not: 73.7 years

Men

62.8 in full health, 8.7 not: 71.5 years

a year in full health   a year in less than full health

How to read this: each square is a year of life, each row ten years; filled squares are years in full health, rounded to whole years.

Women: 61.8 healthy years of 73.7. Men: 62.8 of 71.5. In 2019, before the pandemic, the healthy years were 63.6.

MAR · forced from home · end of 2025

Displacement in Morocco

At the end of 2025, Morocco was hosting 22,337 people who had crossed a border into it, about 0.6 of every 1,000 people living there.

  1. hosted from abroad22,337
  2. Morocco nationals abroad32,520

stayed inside their own country   crossed a border

How to read this: one square stands for 1,000 people, so the rows can be compared with one another. The last row is people from Morocco living in another country, wherever they are.

In 2025, 5,036 people asked for asylum in Morocco for the first time; 22,266 people from Morocco asked for asylum in another country. Of every 100 people from Morocco whose claims were decided that year, 7 were given protection. Who asks for asylum, and who is given it

How the world's displacement is counted

MAR · of every 100 people

How people live in Morocco

Of every 100 people in Morocco in 2025, 52 lived in a city, 26 in a town or suburb and 22 in the countryside.

cities towns and suburbs rural areas

Nearly everyone has electricity at home (2024). 8.8 of every 100 do not use the internet (2024).

How to read this: one square for every hundredth person, coloured as the key shows. Because the rule behind the colours is the same everywhere, two countries' squares can be compared directly.

How the world's people live

MAR · adults 25 and over · 2020

How far people in Morocco went in school

Of every 100 adults in Morocco in 2020, 40 never went to school and 19 finished upper secondary or went further.

40 never went to school 12 some primary 17 finished primary 12 finished lower secondary 10 finished upper secondary 9 studied after school

Among women, 16.5 of every 100 aged 25–29 never went to school, against 71.6 of every 100 aged 60–64; among men, 8.6 against 47.

Its people aged 15 to 64 are projected to be most numerous in 2050; the ones who finished upper secondary are most numerous later, in 2075.

How to read this: the row is the adults (25 and over) shrunk to 100 people, coloured by how far each went in school, least schooling on the left. The Wittgenstein Centre's count, 2020.

How far the world's people went in school

MAR · cities · 2025

Cities in Morocco

Morocco had 73 cities in 2025, home to 20.0 million people. The largest, Casablanca, holds 12 of every 100 people in Morocco.

  1. Casablanca4,457,471
  2. Rabat2,069,287
  3. Fez1,359,989
  4. Tangier1,217,976
  5. Marrakesh1,021,530
  6. Agadir869,990
  7. Meknes722,852
  8. Oujda583,116
  9. Kenitra566,802
  10. Tétouan469,642
All 11 cities in Morocco that reach 300,000 people

How to read this: one bar for each of the 10 largest cities, 2025, all on the same scale. "City" here means the built-up area the UN measures, not the boundary the city draws itself.

All the world's cities

Apparatus

Sources and method

Every figure on this page comes from the UN's World Population Prospects 2024: the annual country tables (estimates to 2023, projections with 95% intervals from 2024), and the population by single year of age and sex for the pyramid.

The censuses, surveys and registers behind the UN's estimates for Morocco are listed, source by source, on the UN's own data sources page.

Sources: UN WPP 2024 · World Bank · UNHCR · country code lists · UN WUP 2025 · Wittgenstein Centre · WHO GHO · flag-icons · Natural Earth. Every source, its licence and how to cite it →

Checked before it was drawn

Verified 2026-09-30 · 73 canaries The pyramid for every year was checked against the published total. What that stamp counts, and what every page here has to pass before it can be built: how this site checks its figures.