Home › Countries › Morocco

Morocco Population Pyramid 2026: 38.8M People by Age & Sex

By the AgePyramids research team · Data: UN World Population Prospects 2024

Morocco has a population of 38,762,441 in 2026, according to the UN World Population Prospects 2024 (projection for 1 July). That is the 41st-largest population in the world and 0.47% of the global total of 8.3B. Children under 15 make up 24.8% of the population and people aged 65 and over 8.8%, with 101.6 males for every 100 females.

Total population
38,762,441
1 July 2026 · UN projection
Median age
30.1 years
half the population is younger
Pyramid type
Stationary
shape of the age structure
DTM stage
Stage 3
demographic transition model
Population density
86.8 per km²
people per square kilometre
Morocco population pyramid 2026MaleFemale5%2.5%0%2.5%5%100+ male: 53100+ female: 216100+95-99 male: 1,18595-99 female: 3,41895-9990-94 male: 9,98590-94 female: 21,37090-9485-89 male: 43,15885-89 female: 76,76285-8980-84 male: 119,42480-84 female: 179,49180-8475-79 male: 263,52275-79 female: 313,93975-7970-74 male: 483,73070-74 female: 506,36270-7465-69 male: 677,23665-69 female: 699,50165-6960-64 male: 803,57460-64 female: 852,36860-6455-59 male: 924,97255-59 female: 945,17455-5950-54 male: 1,076,37650-54 female: 1,087,23450-5445-49 male: 1,227,08745-49 female: 1,227,50245-4940-44 male: 1,374,37540-44 female: 1,361,06640-4435-39 male: 1,464,76835-39 female: 1,411,85835-3930-34 male: 1,465,05030-34 female: 1,405,21230-3425-29 male: 1,470,22425-29 female: 1,394,92325-2920-24 male: 1,521,82420-24 female: 1,453,41820-2415-19 male: 1,692,12415-19 female: 1,607,22815-1910-14 male: 1,697,65110-14 female: 1,606,42610-145-9 male: 1,644,6845-9 female: 1,570,7035-90-4 male: 1,572,1140-4 female: 1,505,1600-4
Morocco population pyramid, 1 July 2026 (UN medium-variant projection; UN estimates end in 2023). Free to reuse with credit to AgePyramids and the UN.

Embed this pyramid: <a href="https://agepyramids.com/morocco"><img src="https://agepyramids.com/images/pyramids/morocco-2026.svg" alt="Morocco population pyramid 2026"></a>

Show the numbers — Morocco population by age group, 2026
Age groupMaleFemaleTotalShare
100+532162690.00%
95-991,1853,4184,6030.01%
90-949,98521,37031,3550.08%
85-8943,15876,762119,9200.31%
80-84119,424179,491298,9150.77%
75-79263,522313,939577,4611.49%
70-74483,730506,362990,0922.55%
65-69677,236699,5011,376,7373.55%
60-64803,574852,3681,655,9424.27%
55-59924,972945,1741,870,1464.82%
50-541,076,3761,087,2342,163,6105.58%
45-491,227,0871,227,5022,454,5896.33%
40-441,374,3751,361,0662,735,4417.06%
35-391,464,7681,411,8582,876,6267.42%
30-341,465,0501,405,2122,870,2627.40%
25-291,470,2241,394,9232,865,1477.39%
20-241,521,8241,453,4182,975,2427.68%
15-191,692,1241,607,2283,299,3528.51%
10-141,697,6511,606,4263,304,0778.52%
5-91,644,6841,570,7033,215,3878.30%
0-41,572,1141,505,1603,077,2747.94%
Total19,533,11619,229,33138,762,447100.00%

Men outnumber women by 303,785 (0.8% of the population).

Morocco population pyramid, 1950 to 2100

Drag the slider or press play to watch the age structure change. Figures to 2023 are UN estimates; from 2024 they are the UN's medium-variant projection.

Morocco population pyramidMaleFemale5%2.5%0%2.5%5%100+ male: 53100+ female: 216100+95-99 male: 1,18595-99 female: 3,41895-9990-94 male: 9,98590-94 female: 21,37090-9485-89 male: 43,15885-89 female: 76,76285-8980-84 male: 119,42480-84 female: 179,49180-8475-79 male: 263,52275-79 female: 313,93975-7970-74 male: 483,73070-74 female: 506,36270-7465-69 male: 677,23665-69 female: 699,50165-6960-64 male: 803,57460-64 female: 852,36860-6455-59 male: 924,97255-59 female: 945,17455-5950-54 male: 1,076,37650-54 female: 1,087,23450-5445-49 male: 1,227,08745-49 female: 1,227,50245-4940-44 male: 1,374,37540-44 female: 1,361,06640-4435-39 male: 1,464,76835-39 female: 1,411,85835-3930-34 male: 1,465,05030-34 female: 1,405,21230-3425-29 male: 1,470,22425-29 female: 1,394,92325-2920-24 male: 1,521,82420-24 female: 1,453,41820-2415-19 male: 1,692,12415-19 female: 1,607,22815-1910-14 male: 1,697,65110-14 female: 1,606,42610-145-9 male: 1,644,6845-9 female: 1,570,7035-90-4 male: 1,572,1140-4 female: 1,505,1600-4
2026
Population: 38,762,441 Median age: 30.1

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Morocco sex ratio and gender balance

Morocco has 101.6 males for every 100 females in 2026. Men outnumber women by 303,785 (0.8% of the population). The male population is 19,533,113 (50.4%) and the female population is 19,229,328 (49.6%). Sex ratios differ by age: boys slightly outnumber girls at birth, while at older ages women usually outnumber men because of longer female life expectancy — in Morocco, life expectancy is 78.1 years for women and 73.7 years for men.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Births and fertility in Morocco

In 2026 there are 613,838 births in Morocco — about 1,681 per day, 70 per hour, or roughly one birth every 51 seconds. The crude birth rate is 15.8 births per 1,000 people and the total fertility rate is 2.16 children per woman, above the replacement level of 2.1. Morocco accounts for 0.5% of all births worldwide. Deaths number 229,022, so births exceed deaths by 384,816.

YearBirthsBirth rate (per 1,000)Fertility rateType
2021645,13417.52.29estimate
2022635,90617.02.26estimate
2023629,83216.72.23estimate
2024624,62016.42.21projection
2025619,05716.12.18projection
2026613,83815.82.16projection

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Median age in Morocco

The median age in Morocco is 30.1 years in 2026 — the 133rd-highest of 236 countries. Half the population is younger than 30.1 and half is older. The world median age is 31.1, so Morocco is 1.0 years younger than the world average. The generation at the median age is the Millennials generation. In 1950 the median age was 18.3; the UN projects it to reach 37.4 by 2050.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Age distribution in Morocco

Youth (0–14) make up 24.8% of the population (9,596,738 people), the working-age group (15–64) 66.5% (25,766,357), and older people (65+) 8.8% (3,399,352). Morocco has a stationary population pyramid: fairly even bands from childhood through the working ages. Its largest five-year band is 10-14, at 8.5% of the population.

Age groupPopulationShareCategory
100+2690.0%Senior
95-994,6030.0%Senior
90-9431,3550.1%Senior
85-89119,9200.3%Senior
80-84298,9150.8%Senior
75-79577,4611.5%Senior
70-74990,0922.6%Senior
65-691,376,7373.6%Senior
60-641,655,9424.3%Working age
55-591,870,1464.8%Working age
50-542,163,6105.6%Working age
45-492,454,5896.3%Working age
40-442,735,4417.1%Working age
35-392,876,6267.4%Working age
30-342,870,2627.4%Working age
25-292,865,1477.4%Working age
20-242,975,2427.7%Young adult
15-193,299,3528.5%Young adult
10-143,304,0778.5%Youth
5-93,215,3878.3%Youth
0-43,077,2747.9%Youth

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Life expectancy in Morocco

Life expectancy at birth in Morocco is 75.9 years in 2026 — the 118th-highest of 236 countries: 73.7 years for men and 78.1 years for women, a gap of 4.4 years. The world average is 73.8 years. Life expectancy in Morocco has risen from 38.8 years in 1950, and the UN projects 79.8 years by 2050.

3562901950197520002025205020752100

Solid line: UN estimates to 2023. Dashed: medium-variant projection. Source: UN World Population Prospects 2024.

Dependency ratios and the demographic dividend

Morocco's total dependency ratio is 50.4 in 2026 — 37.2 children and 13.2 older people for every 100 working-age people. The working-age share is projected to peak at 67.0% in 2035. A high and rising working-age share is the window demographers call the demographic dividend: fewer dependants per worker can support faster economic growth, if jobs are available.

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Future trend: Morocco to 2050 and beyond

The UN projects Morocco's population to reach 43,440,430 by 2050 (+12.1% from 2026) and 37,884,370 by 2100. Its population is projected to peak at 43,736,171 in 2058. The median age rises to 37.4 by 2050. Full year-by-year figures, including the UN’s low and high variants, are on the Morocco population projection page.

Compare: Morocco vs Algeria · Morocco vs Egypt · Morocco vs Sudan

How Morocco compares with its neighbours

CountryPopulationMedian ageUnder 1565+Pyramid type
Morocco (this page)38,762,44130.124.8%8.8%Stationary
Egypt120,101,17624.731.1%5.4%Expansive
Sudan53,282,71818.839.8%3.5%Expansive
Algeria48,028,33428.829.4%7.0%Stationary
Tunisia12,415,13833.423.0%10.3%Stationary
Libya7,539,85228.026.2%5.4%Stationary

Source: UN World Population Prospects 2024 (estimates to 2023, medium-variant projections from 2024), 1 July of each year. See methodology.

Frequently asked questions

What is the population of Morocco in 2026?

Morocco has a population of 38,762,441 on 1 July 2026, according to the UN World Population Prospects 2024 (medium-variant projection). Men make up the majority: there are 19,533,113 men and 19,229,328 women.

What type of population pyramid does Morocco have?

Morocco has a stationary population pyramid in 2026. Children under 15 make up 24.8% of the population and people aged 65 and over make up 8.8%. Its largest five-year age group is 10-14, at 8.5% of the population.

What is the median age in Morocco?

The median age in Morocco is 30.1 years in 2026 — half the population is younger and half is older. The world median age is 31.1 years, so Morocco is 1.0 years younger than the world average.

Is the population of Morocco growing or shrinking?

Morocco's population is projected to peak at 43,736,171 in 2058. In 2050 it is projected at 43,440,430, a change of +12.1% from 2026. In 2026 there are 613,838 births and 229,022 deaths.

What is the dependency ratio in Morocco?

Morocco's total dependency ratio is 50.4 in 2026: for every 100 people of working age (15–64) there are 37.2 children under 15 and 13.2 people aged 65 and over who are supported by them.

How many births are there in Morocco each day?

About 1,681 babies are born in Morocco each day in 2026 (613,838 over the year, or roughly one birth every 51 seconds). The fertility rate is 2.16 children per woman and the crude birth rate is 15.8 births per 1,000 people.

More on Morocco

Population by generation in Morocco · Morocco population projection to 2100 · Africa region page · All countries and areas

About this data: UN World Population Prospects 2024, released 11 July 2024. Figures for 2024 and later are medium-variant projections for 1 July; 1950–2023 are estimates. Cite this page: AgePyramids. (2026). Morocco Population Pyramid and Demographic Analysis. Retrieved from https://agepyramids.com/morocco

Morocco Population Pyramid — Classroom Worksheet

Name: ______________________   Class: ____________   Date: ____________

Use the pyramid and the data tables on this page (1 July 2026, UN World Population Prospects 2024) to answer:

  1. What is the total population of Morocco in 2026?
  2. Which five-year age group is the largest, and what share of the population is it?
  3. What percentage of the population is aged 65 or over?
  4. In the 80–84 age group, are there more men or more women, and by how many?
  5. Is Morocco's pyramid expansive, stationary or constrictive? Use the under-15 share (24.8%) and the shape of the base in your answer.
  6. Write one sentence describing how this population is likely to change over the next 25 years, using evidence from the pyramid. (Discussion question.)

Answer key (teacher)

  1. 38,762,441
  2. 10-14 — 8.5%
  3. 8.8% (3,399,352 people)
  4. Women — by 60,067
  5. Stationary
  6. Open — look for a claim backed by the base width, the 65+ share or the median age.