Morocco vs Indonesia: population pyramids in 2026
MoroccoIndonesia
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)
| Morocco | Indonesia | |
|---|---|---|
| Population | 38.6 million | 286.8 million |
| Aged 0–14 | 25.0% | 24.1% |
| Aged 15–64 | 66.4% | 68.3% |
| Aged 65+ | 8.6% | 7.7% |
| Median age | 30.1 yrs | 30.7 yrs |
| Old-age dependency | 13.0 | 11.2 |
| Total fertility rate | 2.16 | 2.08 |
| Life expectancy | 75.9 yrs | 71.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) |
| Unemployment | 9% (2025) | 3.2% (2025) |
Economic figures are the latest year published for each country.
Prices by category (2021, World = 100)
| Morocco | Indonesia | Morocco as % of Indonesia | |
|---|---|---|---|
| Food and non-alcoholic drinks | 93 | 89 | 104% |
| Bread and cereals | 96 | 88 | 110% |
| Meat | 107 | 86 | 125% |
| Milk, cheese and eggs | 96 | 108 | 89% |
| Fruit | 101 | 102 | 99% |
| Vegetables | 75 | 101 | 74% |
| Alcoholic drinks | 147 | 193 | 76% |
| Tobacco | 87 | 53 | 164% |
| Clothing and footwear | 68 | 70 | 97% |
| Housing, water, electricity and gas | 53 | 37 | 142% |
| Health | 66 | 43 | 154% |
| Transport services | 95 | 72 | 133% |
| Communication | 149 | 67 | 222% |
| Recreation and culture | 65 | 51 | 128% |
| Education | 64 | 40 | 157% |
| Restaurants and hotels | 57 | 45 | 128% |
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