Topics
Compare · UN World Population Prospects 2024
Malaysia and
Morocco, side by side
Line both places up by age in 2026. In Malaysia, half are older than 32; in Morocco, half are older than 31.
UN estimates for mid-2023: Malaysia 35,126,298 people · Morocco 37,712,505
How to read this: each pyramid stacks a place’s people by age — babies at the bottom, the oldest at the top, men on the left and women on the right. A wide bottom means many children; a wide top means many older people.
Each bar is a share of its own place’s people, so a small country and a large one can be read side by side.
men women projected
MYS × MAR · 2026 · age groups
If each place were 100 people
Shrink each population to 100 people and count them. Dots are children under 15, filled squares are people aged 15 to 64, and open squares are people 65 and over. The picture follows the year slider above.
- Children, under 15
- 21
- Aged 15 to 64
- 71
- Aged 65 and over
- 8
- Children, under 15
- 25
- Aged 15 to 64
- 66
- Aged 65 and over
- 9
MYS × MAR · families and lifetimes
Children, and how long lives last
If the birth rates of this year held for a whole lifetime, a woman in Malaysia would have about 1.5 children and a woman in Morocco about 2.2. Around 2.1 children per woman keeps a population the same size over time, leaving migration aside. Life expectancy at birth this year: about 77 years in Malaysia, about 76 in Morocco.
Children per woman, 2026
Each figure is one child: how many children a woman would have in her lifetime at that year’s rates.
The dashed line at 2.1 is about what it takes for each generation to replace the one before it, leaving migration aside.
How long a newborn can expect to live, 2026
Each block is ten years of life, if the death rates of that year stayed the same all life long.
Hatched marks are UN projections (medium variant), not measurements.
MYS × MAR · 1950–2100 · how many
How big, and where they are heading
Morocco is the larger of the two, with about as many people as Malaysia: 38.8 million to 36.4 million.
Malaysia's population is 6.0 times what it was in 1950; Morocco's population is 4.3 times what it was in 1950.
Malaysia's population is expected to peak in 2072. Meanwhile Morocco's population is expected to peak in 2058. The UN expects Malaysia to have more people than Morocco from 2045. In 2100: 44.0 million in Malaysia, 37.9 million in Morocco (UN projection, medium).
Show the numbers
| Year | Malaysia: people | Morocco: people | Malaysia: half older than | Morocco: half older than | Malaysia: children per woman | Morocco: children per woman | Malaysia: life expectancy | Morocco: life expectancy |
|---|---|---|---|---|---|---|---|---|
| 1950 | 6.09828 million | 8.93545 million | 19.8 | 19.3 | 6.43 | 6.14 | 48.5 | 38.8 |
| 1960 | 7.95620 million | 11.6249 million | 17.5 | 17.9 | 6.41 | 6.89 | 57.2 | 41.7 |
| 1970 | 10.1788 million | 15.1295 million | 17.3 | 16.5 | 5.04 | 6.68 | 63.3 | 48.7 |
| 1980 | 12.9834 million | 19.4599 million | 19.7 | 17.4 | 4.04 | 5.78 | 68.1 | 55.2 |
| 1990 | 17.8332 million | 24.3756 million | 21.4 | 19.4 | 3.30 | 4.06 | 71.0 | 62.4 |
| 2000 | 22.9678 million | 28.4234 million | 23.5 | 22.4 | 2.94 | 2.77 | 72.7 | 66.8 |
| 2010 | 28.6558 million | 32.4670 million | 26.0 | 25.7 | 2.14 | 2.63 | 75.4 | 70.8 |
| 2023 | 35.1263 million | 37.7125 million | 31.1 | 30.2 | 1.55 | 2.23 | 76.7 | 75.3 |
| 2030* | 37.9617 million | 39.9535 million | 34.0 | 32.4 | 1.51 | 2.08 | 77.8 | 76.5 |
| 2040* | 41.5096 million | 42.1682 million | 37.8 | 35.2 | 1.51 | 1.94 | 79.5 | 78.2 |
| 2050* | 44.2898 million | 43.4404 million | 41.1 | 38.4 | 1.53 | 1.86 | 81.1 | 79.8 |
| 2060* | 45.8501 million | 43.7074 million | 44.3 | 41.5 | 1.53 | 1.82 | 82.7 | 81.3 |
| 2070* | 46.3730 million | 43.0781 million | 46.1 | 43.9 | 1.55 | 1.79 | 84.1 | 82.6 |
| 2080* | 46.1191 million | 41.8064 million | 46.9 | 45.7 | 1.56 | 1.76 | 85.5 | 83.9 |
| 2090* | 45.1730 million | 40.0481 million | 47.7 | 47.5 | 1.56 | 1.74 | 86.7 | 85.1 |
| 2100* | 44.0261 million | 37.8844 million | 48.4 | 49.1 | 1.56 | 1.74 | 87.9 | 86.3 |
* UN projection, medium variant. People at mid-year; ages and life expectancy in years.
MYS − MAR · 1950–2100 · every age
Which ages each place has more of
Each column is a year and each row an age, from babies at the bottom to 100 at the top. The shade of a cell shows which place has more of its people at that age — the key beside the picture tells you which shade is Malaysia and which is Morocco, and the in-between shade means the same. Because it compares shares, a small place and a large one can be compared fairly.
236 countries · 1950–2100
Where they sit among all countries
Every country in the world, every year from 1950 to 2100. The grey cloud shows where most countries are; Malaysia is drawn in solid blue squares and Morocco in open orange squares, so you can see whether each is ahead of the crowd, behind it or in the middle.
More comparisons
Keep exploring
Each place on its own: Malaysia · Morocco. Or pick any two places with the boxes at the top of this page.
Other comparisons
- Côte d’Ivoire and Malaysia
- Ghana and Malaysia
- Indonesia and Malaysia
- Malaysia and Mozambique
- Malaysia and Poland
- Malaysia and Ukraine
- Algeria and Morocco
- Angola and Morocco
- Morocco and Mozambique
- Morocco and Poland
- Morocco and South Korea
- Morocco and Ukraine
- Morocco and Uzbekistan
- Malaysia and South-Eastern Asia
- Morocco and Northern Africa
Apparatus
Sources and method
Both sides of this comparison come from the UN Population Division's World Population Prospects 2024 — the same release, the same tables, counted to 2023 and projected beyond it on the medium variant. That shared origin is what a comparison rests on.
For how the median age is derived, why “100 people” can read a person high or low, and what the all-country pictures do and do not count, see the method.
250 comparisons have a page of their own; any other two places can be compared from the boxes at the top.
Sources: UN WPP 2024 · flag-icons. Every source, its licence and how to cite it →
Verified 2026-09-30 · 73 canaries