World Population PyramidsPopulation pyramids and indicators by country and year日本語

Morocco vs Indonesia: population pyramids in 2026

◀2026▶Swap

MoroccoIndonesia

1%0.75%0.5%0.25%0%0.25%0.5%0.75%1%0102030405060708090100+MaleFemale

Each bar is the share of the total population at that single year of age (men left, women right), so countries of different sizes can be compared.

Morocco and Indonesia compared

In 2026, Morocco has a population of 38.6 million and Indonesia 286.8 million; Indonesia is about 7.4 times the size of Morocco.

The share aged 65 and over is 8.6% in Morocco and 7.7% in Indonesia, 0.9 points higher in Morocco. The median age is 30.1 years in Morocco and 30.7 years in Indonesia.

The total fertility rate is 2.16 in Morocco and 2.08 in Indonesia, so only Indonesia is below the replacement level of about 2.1. Life expectancy at birth is 75.9 years in Morocco and 71.6 years in Indonesia.

By 2050, the population of Morocco is projected to grow by 12.4% and that of Indonesia to grow by 11.7% compared with 2026.

GDP per person is $4,672 in Morocco (2025) and $5,060 in Indonesia (2025).

Figures from 2024 are UN medium-variant projections.

Key figures (2026)

MoroccoIndonesia
Population38.6 million286.8 million
Aged 0–1425.0%24.1%
Aged 15–6466.4%68.3%
Aged 65+8.6%7.7%
Median age30.1 yrs30.7 yrs
Old-age dependency13.011.2
Total fertility rate2.162.08
Life expectancy75.9 yrs71.6 yrs
Population growth+0.84%+0.74%
Net migration (per year)-60,886-39,472
GDP$182B (2025)$1.45T (2025)
GDP per person$4,672 (2025)$5,060 (2025)
Unemployment9% (2025)3.2% (2025)

Economic figures are the latest year published for each country.

Prices by category (2021, World = 100)

MoroccoIndonesiaMorocco as % of Indonesia
Food and non-alcoholic drinks9389104%
Bread and cereals9688110%
Meat10786125%
Milk, cheese and eggs9610889%
Fruit10110299%
Vegetables7510174%
Alcoholic drinks14719376%
Tobacco8753164%
Clothing and footwear687097%
Housing, water, electricity and gas5337142%
Health6643154%
Transport services9572133%
Communication14967222%
Recreation and culture6551128%
Education6440157%
Restaurants and hotels5745128%

Price level indices from the World Bank's International Comparison Program (ICP 2021, CC BY 4.0): the same goods and services at market exchange rates of 2021. Rankings by category

Compare other years