censuswall MYS × MAR · 2026 · side by side
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

Malaysia 36.4 million people Half are older than 32 8 in 100 are 65 or older
Morocco 38.8 million people Half are older than 31 9 in 100 are 65 or older

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.

estimatesprojections

men women projected

Verified 2026-09-30 · 73 canaries

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.

Malaysia
Children, under 15
21
Aged 15 to 64
71
Aged 65 and over
8
Morocco
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.

Malaysia 1.5
Morocco 2.2

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.

Malaysia 77 years
Morocco 76 years

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
YearMalaysia: peopleMorocco: peopleMalaysia: half older thanMorocco: half older thanMalaysia: children per womanMorocco: children per womanMalaysia: life expectancyMorocco: life expectancy
19506.09828 million8.93545 million19.819.36.436.1448.538.8
19607.95620 million11.6249 million17.517.96.416.8957.241.7
197010.1788 million15.1295 million17.316.55.046.6863.348.7
198012.9834 million19.4599 million19.717.44.045.7868.155.2
199017.8332 million24.3756 million21.419.43.304.0671.062.4
200022.9678 million28.4234 million23.522.42.942.7772.766.8
201028.6558 million32.4670 million26.025.72.142.6375.470.8
202335.1263 million37.7125 million31.130.21.552.2376.775.3
2030*37.9617 million39.9535 million34.032.41.512.0877.876.5
2040*41.5096 million42.1682 million37.835.21.511.9479.578.2
2050*44.2898 million43.4404 million41.138.41.531.8681.179.8
2060*45.8501 million43.7074 million44.341.51.531.8282.781.3
2070*46.3730 million43.0781 million46.143.91.551.7984.182.6
2080*46.1191 million41.8064 million46.945.71.561.7685.583.9
2090*45.1730 million40.0481 million47.747.51.561.7486.785.1
2100*44.0261 million37.8844 million48.449.11.561.7487.986.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.

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