Morocco Demographics

Population of Morocco (2023)

View live population, charts & trends: Population of Morocco

Morocco Population
Yearly Change
+ 1.02%
Global Share
Global Rank

Median Age

The median age in Morocco is 29.3 years (2023).

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

pregnant_woman Total Fertiliy Rate (TFR)
(Live Births per Woman, 2023)

Life Expectancy in Morocco

See also: Countries in the world ranked by Life Expectancy

Both Sexes
75.2 years
(life expectancy at birth, both sexes combined)
77.4 years
(life expectancy at birth, females)
73.1 years
(life expectancy at birth, males)

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

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

Morocco Urban Population

Currently, 65.9 % of the population of Morocco is urban (24,954,355 people in 2023)

Population Density

The 2023 population density in Morocco is 85 people per Km2 (220 people per mi2), calculated on a total land area of 446,300 Km2 (172,317 sq. miles).

Largest Cities in Morocco

1 Casablanca 3,144,909
2 Rabat 1,655,753
3 Fes 964,891
4 Sale 903,485
5 Marrakesh 839,296
6 Agadir 698,310
7 Tangier 688,356
8 Meknes 545,705
9 Oujda-Angad 405,253
10 Al Hoceima 395,644
11 Kenitra 366,570
12 Tetouan 326,261
13 Temara 313,510
14 Safi 288,163

See also



Population Pyramid

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


  • 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: Nigera 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.



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.