Photo: NASA Goddard Space Flight Center/Reto Stöckli

Morocco: population and ages

Morocco: 38.6 million people on 1 January 2026, number 41 of 237 countries and areas by population.

The UN projects growth until 2058, to a peak of 43.7 million, and a decline after that.

Figures for 2026 are UN projections (medium variant). Estimates end in 2023.

Population, 1 January 2026
38,600,478
Median age
30.1
Births in 2026
613,838
Deaths in 2026
229,022
Life expectancy at birth
75.9
Children per woman
2.16
Under 15
25.0%
65 and over
8.6%
Population pyramid, Morocco, 1 January 2026MaleFemale0102030405060708090100+0200K200K400K400K
Population pyramid, Morocco, 1 January 2026 Projection

Where does your age fit here?

Only the year is needed. It stays in this browser.

Enter your birth year to see where you fit in.

Population over time

In mid-1950 there were 8.94 million people, so the population is now 4.3 times as large.

The UN projects 614,000 births and 229,000 deaths in 2026, 385,000 more births than deaths.

The UN projects the first year with more deaths than births in 2067.

Population, 1950 to 2100Projected from 2024010M20M30M40M50M1950197520002025205020752100
2026 Morocco: 38.8M

Ages

The median age is 30.1, close to the world’s 31.1.

25% of the people are under 15 and 8.6% are 65 or older (world: 24% and 11%).

The UN projects that people aged 65 and over will outnumber children under 15 from 2056.

Women have 2.2 children on average at today’s rates (world: 2.2), against 6.1 in 1950.

Life expectancy at birth is 75.9 years, above the world’s 73.8. In 1950 it was 38.8.

Median age, 1950 to 2100Projected from 2024010203040501950197520002025205020752100MoroccoWorld
2026 Morocco: 30World: 31

See how the pyramid changes from 1950 to 2100

Births, deaths and the years ahead

For mid-2050 the UN projects 43.4 million people, 12% more than now, with a median age of 37.4.

Births and deaths per year, 1950 to 2100Projected from 20240200K400K600K800K1950197520002025205020752100DeathsBirths
2026 Births: 613.8KDeaths: 229K

Compare Morocco with other countries

Development and urbanisation

In 2025, 52% of the people lived in cities, 26% in towns and semi-dense areas and 22% in rural areas. For 2050 the UN projects 52% in cities.

Degree of urbanisation: one rule for every country, a city has at least 50,000 people at 1,500 or more per km². National definitions of “urban” differ.

IndicatorLatest valueYear
People using the internet91.2%2024
Access to electricity100.0%2024
Adult literacy (ages 15 and over)64.3%2014
92.2%2024
87.8%2024
97.0%2024
Human Development Index0.7102023

Each value is the latest one published, with the year it refers to. Countries publish in different years. Sources: World Bank, World Development Indicators (ITU, SDG 7.1.1, UNESCO UIS), UNDP, Human Development Report, UN, World Urbanization Prospects 2025.

Longevity, ageing and the future

By the death rates of 2023, life expectancy at birth was 75.3 years. People who had reached 65 could expect 17.4 more years for women and 14.5 for men.

On 1 January 2026, there are 13.0 people aged 65 or more for every 100 aged 15 to 64. For 2050, the UN projects 25.0.

For 2100 the UN projects a population of 37.9 million, with a 95 percent prediction interval of 23.7 million to 58.6 million.

Life expectancy at birth is a period measure. It sums up the death rates of one year and is not a forecast of how long the babies born that year will live.

Sources: World Population Prospects 2024, life tables, probabilistic projections, UN DESA Population Division (CC BY 3.0 IGO).

International migrants

In mid-2024, 111,000 international migrants lived here, 0.3% of the population.

In mid-2024, 3.63 million people from here lived in other countries.

Largest countries of origin
CountryPeople
France41,301
Algeria15,731
Spain4,797
Syria3,989
Tunisia3,018
Largest countries of destination
CountryPeople
Spain1,088,408
France1,066,129
Italy472,734
Belgium246,575
Israel190,607

Counted by citizenship. Refugees are included. A migrant stock counts people living outside their country at mid-year, not journeys or yearly moves. Sources: International Migrant Stock 2024, UN DESA Population Division (CC BY 3.0 IGO).

Cities

Cities of 50,000 people or more here, by the UN degree of urbanisation: 73.

CityPopulation 2025
Casablanca4,457,471
Rabat2,069,287
Fez1,359,989
Tangier1,217,976
Marrakesh1,021,530
Agadir869,990
Meknes722,852
Oujda583,116
Kenitra566,802
Tétouan469,642

Sources: World Urbanization Prospects 2025, UN DESA Population Division (CC BY 3.0 IGO).

All cities

Data and sources

Morocco every ten years
YearPopulation (1 July)Median ageBirthsDeathsLife expectancyChildren per woman
19508,935,45018.3435,623223,40738.86.14
196011,624,93316.8590,641267,14241.76.89
197015,129,44815.5676,670250,65648.76.68
198019,459,94316.4764,790230,34655.25.78
199024,375,55118.4725,559190,06362.44.06
200028,423,43521.4644,893183,54666.82.77
201032,467,01624.7710,089194,27770.82.63
202036,584,20828.2653,031237,01373.12.32
203039,953,46031.4598,285253,13576.52.08
204042,168,20534.2572,779317,09978.21.94
205043,440,43137.4530,486372,89179.81.86
206043,707,41040.5479,062423,51981.31.82
207043,078,13842.9443,901468,46582.61.79
208041,806,42544.7406,491490,21983.91.77
209040,048,05046.5364,849496,75285.11.74
210037,884,37048.1333,713505,46586.21.74

Rows from 2024 on are UN projections (medium variant), shown in italics.

The UN estimates every country and area within its present borders for every year since 1950, also for years before it became independent or took its present shape. Figures for earlier years therefore describe the people who lived on today’s territory.

Sources: World Population Prospects 2024, UN DESA Population Division (CC BY 3.0 IGO).

All countries and areas