Geographic History

Flag of MoroccoMedian age in Morocco (2023)

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

Morocco has the 100th highest median age of 195 ranked countries (2023, UN).

Median age in Morocco was 28.9 years in 2022 and 29.2 years in 2023 (UN).

Median age in Morocco was 18.3 years in 1950, the first year of the UN series.

For comparison, the UN figure for the world is 30.4 years in 2023.

In 1956, the year Morocco became independent, the median age was 17.9 years (UN).

Key figures

Median age
29.2 years2023, UN
World rank
100 of 1952023, UN

Median age, 1950-2023

1520253019501960197019801990200020102020

UN values, 1950-2023.

Median age by year

Median age in Morocco by year
YearValue (years)Change
202329.2+0.3
202228.9+0.3
202128.5+0.3
202028.2+0.4
201927.9+0.4
201827.5+0.4
201727.1+0.3
201626.8+0.3
201526.4+0.4
201426.1+0.4
201325.7+0.3
201225.4+0.3
201125.0+0.3
201024.7+0.3
200924.4+0.3
200824.0+0.3
200723.7+0.4
200623.3+0.4
200523.0+0.3
200422.6+0.3
200322.3+0.3
200222.0+0.3
200121.7+0.3
200021.4+0.3
199921.1+0.3
199820.8+0.3
199720.5+0.3
199620.2+0.3
199519.9+0.3
199419.6+0.3
199319.3+0.3
199218.9+0.3
199118.7+0.3
199018.4+0.3
198918.1+0.3
198817.9+0.2
198717.6+0.2
198617.4+0.2
198517.2+0.2
198417.0+0.2
198316.9+0.1
198216.7+0.1
198116.6+0.1
198016.4+0.1
197916.3+0.1
197816.2+0.1
197716.0+0.1
197615.9+0.1
197515.8+0.1
197415.7+0.1
197315.6+0.1
197215.6+0.1
197115.50.0
197015.50.0
196915.50.0
196815.50.0
196715.5-0.1
196615.6-0.1
196515.6-0.2
196415.8-0.2
196316.0-0.2
196216.3-0.3
196116.6-0.3
196016.8-0.3
195917.2-0.3
195817.5-0.2
195717.7-0.2
195617.9-0.1
195518.0-0.1
195418.2-0.1
195318.2-0.1
195218.30.0
195118.30.0
195018.3-

Morocco through history

Morocco became independent on March 2, 1956.

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

Map quizzes that include Morocco

Morocco in context

Morocco in context
CountryValueYearRankRelation
Spain44.9 years202310 of 195land neighbour
Western Sahara32.0 years2023not rankedland neighbour
Oman29.3 years202398 of 195similar size
Saudi Arabia29.2 years202399 of 195similar size
Morocco29.2 years2023100 of 195this country
Israel29.1 years2023101 of 195similar size
Venezuela29.0 years2023102 of 195similar size
Mexico28.9 years2023103 of 195similar size
Algeria28.2 years2023107 of 195land neighbour

Frequently asked questions

What is the median age in Morocco?

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

How does Morocco rank in the world by median age?

Morocco has the 100th highest median age of 195 ranked countries (2023, UN).

How has the median age in Morocco changed over time?

Median age in Morocco was 28.9 years in 2022 and 29.2 years in 2023 (UN).

What it measures

The median age splits the population in two equal halves: half of the people are younger, half are older.

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.

Ranks count the independent states that have a value for the indicator and are listed in the Geographic History country data; territories and dependencies are shown with their data but are not ranked. Rank 1 is the highest value.

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.