Morocco Demographics

Population of Morocco (2026)

View live population, charts & trends: Population of Morocco

Morocco Population
38,762,441
see live
Yearly Change
+0.86%
Global Share
0.47%
Global Rank

Median Age

The median age in Morocco is 30.1 years (2026).

Fertility in Morocco

A Total Fertility Rate (TFR) of 2.1 represents the Replacement-Level Fertility : the average number of children per woman needed for each generation to exactly replace itself without needing international immigration. A value below 2.1 will cause the native population to decline


Total Fertility Rate (TFR)
2.16
(Live Births per Woman, 2026)

Life Expectancy in Morocco

See also: Countries in the world ranked by Life Expectancy

Both Sexes
75.9
(life expectancy at birth, both sexes combined)
Females
78.1
(life expectancy at birth, females)
Males
73.7
(life expectancy at birth, males)


Infant Mortality Rate and Deaths of Children under 5 Years Old in Morocco


Infant Mortality
12.8
(infant deaths per 1,000 live births)
Deaths under age 5
15.2
(per 1,000 live births)


Morocco Urban Population

Currently, 63.5% of the population of Morocco is urban (24,603,408 people in 2026)


Population Density

The 2026 population density in Morocco is 87 people per km² (225 people per mi2), calculated on a total land area of 446,300 km² (172,317 sq. miles).

Largest Cities and Urban Places in Morocco

The 30 largest of 162 cities and urban places, ranked by population at the census of September 1, 2024 (by High Commission for Planning, Morocco).

RankCity or Urban PlacePopulation
1Casablanca3,218,036
2Tangierincl. Boukhalef1,275,428
3Fesincl. Méchouar Fès Jdid1,182,963
4Marrakeshincl. Méchouar Kasba1,014,813
5Sale945,101
6Meknesincl. Al Machouar - Stinia556,512
7Rabatincl. Touarga515,619
8Kenitra507,736
9Oujda506,224
10Agadir504,768
11Tetouan422,757
12Safi323,888
13Dar Bouazza302,970
14Temara297,098
15El Jadida237,464
16Ait Melloul210,870
17Beni Mellal209,594
18Bouskouraincl. Lamkanssa200,359
19Khouribga195,931
20Mohammedia194,358
21Settat171,556
22Berrechid168,687
23Nadorincl. Touima158,202
24Taza150,763
25Inezgane137,512
26Larache133,731
27Guelmim126,729
28Khemisset125,834
29Ksar El Kebir124,701
30Khenifraincl. Amalou Ighriben123,738
See all 162 cities and urban places in Morocco

See also

Sources

Definitions

Population Pyramid

A Population pyramid (also called "Age-Sex Pyramid") is a graphical representation of the age and sex of a population.

Types:

  • Expansive - pyramid with a wide base (larger percentage of people in younger age groups, indicating high birth rates and high fertility rates) and narrow top (high death rate and lower life expectancies). It suggests a growing population. Example: Nigeria Population Pyramid
  • Constrictive - pyramid with a narrow base (lower percentage of younger people, indicating declining birth rates with each succeeding age group getting smaller than the previous one). Example: United States
  • Stationary - with a somewhat equal proportion of the population in each age group. The population is stable, neither increasing nor decreasing.

Stages:

Population pyramid stages

Dependency Ratio

There are three types of age dependency ratio: Youth, Elderly, and Total. All three ratios are commonly multiplied by 100.

Youth Dependency Ratio

Definition: population ages 0-15 divided by the population ages 16-64.

Formula: ([Population ages 0-15] ÷ [Population ages 16-64]) × 100

Elderly dependency ratio

Definition: population ages 65-plus divided by the population ages 16-64.

Formula: ([Population ages 65-plus] ÷ [Population ages 16-64]) × 100

Total dependency ratio

Definition: sum of the youth and old-age ratios.

Formula: (([Population ages 0-15] + [Population ages 65-plus]) ÷ [Population ages 16-64] ) × 100

NOTE: Dependency Ratio does not take into account labor force participation rates by age group. Some portion of the population counted as "working age" may actually be unemployed or not in the labor force whereas some portion of the "dependent" population may be employed and not necessarily economically dependent.