censuswall AFG × ESP · 2026 · side by side
Topics

Compare · UN World Population Prospects 2024

Afghanistan and Spain, side by side

In 2026, half of the people in Afghanistan are older than 18. In Spain, half are older than 47.

UN estimates for mid-2023: Afghanistan 41,454,761 people · Spain 47,911,580

Afghanistan 45.0 million people Half are older than 18 3 in 100 are 65 or older
Spain 47.9 million people Half are older than 47 22 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

AFG × ESP · 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.

Afghanistan
Children, under 15
42
Aged 15 to 64
55
Aged 65 and over
3
Spain
Children, under 15
12
Aged 15 to 64
66
Aged 65 and over
22

AFG × ESP · families and lifetimes

Children, and how long lives last

Afghanistan is at about 4.6 children for each woman, at this year's rates; Spain is at about 1.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 67 years in Afghanistan, about 84 in Spain.

Children per woman, 2026

Each figure is one child: how many children a woman would have in her lifetime at that year’s rates.

Afghanistan 4.6
Spain 1.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.

Afghanistan 67 years
Spain 84 years

Hatched marks are UN projections (medium variant), not measurements.

AFG × ESP · 1950–2100 · how many

How big, and where they are heading

There are 47.9 million people in Spain and 45.0 million in Afghanistan: about as many people as Afghanistan.

Afghanistan's population is 5.8 times what it was in 1950; Spain's population is 1.7 times what it was in 1950.

Afghanistan's population is still growing in 2100. Meanwhile Spain's population peaked in 2023. The UN expects Afghanistan to have more people than Spain from 2029. In 2100: 130 million in Afghanistan, 33.1 million in Spain (UN projection, medium).

Show the numbers
YearAfghanistan: peopleSpain: peopleAfghanistan: half older thanSpain: half older thanAfghanistan: children per womanSpain: children per womanAfghanistan: life expectancySpain: life expectancy
19507.77618 million28.0770 million19.427.57.252.4728.261.8
19609.03504 million30.4049 million18.929.47.282.8132.869.2
197011.2901 million33.8127 million18.030.17.402.8837.572.2
198013.1693 million37.5376 million16.830.77.642.2139.375.5
199012.0457 million39.0850 million16.033.57.581.3645.177.0
200020.1303 million41.0198 million15.037.37.571.2155.079.4
201028.2841 million46.8405 million15.640.26.201.3760.782.0
202341.4548 million47.9116 million17.945.94.841.2166.083.7
2030*50.0394 million47.6105 million19.249.04.221.2667.684.6
2040*63.3479 million46.5917 million21.552.03.561.3169.585.9
2050*76.8851 million44.9286 million24.052.83.091.3670.987.1
2060*90.3627 million42.2108 million26.653.02.761.3972.388.4
2070*103.417 million39.0358 million29.153.72.511.4373.689.5
2080*114.674 million36.5245 million31.452.62.311.4674.890.7
2090*123.305 million34.7742 million33.752.42.171.4776.191.8
2100*130.217 million33.1275 million35.853.22.061.4877.392.9

* UN projection, medium variant. People at mid-year; ages and life expectancy in years.

AFG − ESP · 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 Afghanistan and which is Spain, 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; Afghanistan is drawn in solid blue squares and Spain 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

Afghanistan and Spain are drawn here from one source and one release: the UN Population Division's World Population Prospects 2024, counted through 2023 and projected on its medium variant after that. Two places read off the same tables can be set against each other; two read off different tables cannot.

How the median age and the “100 people” pictures are worked out, and why the pictures of every country leave the regions out: how the figures here are put together.

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