Advertisement

ESP · ES · United Nations WPP 2024 · 2026

Spain

Spain had a population of 47,850,793 people in 2026, ranking 34 of 237 countries and areas. Explore its age pyramid, trends and demographic indicators.

Source: United Nations World Population Prospects 2024, medium variant.

Total population
47,850,793 people
2026 · Projection
Rank
#34/ 237
Europe #6 / 50
Share of world population
0.58%
2026
Density
95.3 people/km²
2026
Median age
46.3
years
Life expectancy
84.08
years
2026

Country or area overview

Spain is in Europe. In 2026, its population was 47,850,793 people, about 0.58% of the world total. It ranks #34 of 237 countries and areas worldwide. The population was 28,077,049 people in 1950 and is projected to reach 33,127,478 people in 2100. The annual population growth rate in 2026 is -0.10%. The median age is 46.3. 12.3% of the population is under 15 and 22.2% is 65 or older. Life expectancy is 84.08 and the total fertility rate is 1.24. Within Europe, it ranks #6 of 50 by population and #29 of 50 by population density. Data note This page uses the UN World Population Prospects 2024 medium variant. Data for 1950–2023 are estimates; 2024 onward, including 2026, are projections. Values for 2100 are long-range projections.

Spain map

Country outline and its location in the world.

Map of Spain
All territories of Spain All territories
World location

Boundaries: Natural Earth 1:50m.

Population history and projection

Population from 1950 to 2100. The dashed section shows the UN medium-variant projection from 2024 onward.

United Nations WPP 2024
50.29M44.14M37.99M31.85M25.70M1950197620022028205420802100
EstimatesProjections

Age group · 2026

Population age pyramid

Male and female population by five-year age group. Move the year slider to compare 1950, today and the 2100 projection.

2026Projection
MaleFemaleAge group100+ · Male: 3,542 (0.01%) · Female: 14,117 (0.03%)100+ · Male: 3,542 (0.01%) · Female: 14,117 (0.03%)100+95–99 · Male: 37,859 (0.08%) · Female: 108,552 (0.23%)95–99 · Male: 37,859 (0.08%) · Female: 108,552 (0.23%)95–9990–94 · Male: 171,118 (0.36%) · Female: 363,202 (0.76%)90–94 · Male: 171,118 (0.36%) · Female: 363,202 (0.76%)90–9485–89 · Male: 351,132 (0.73%) · Female: 584,325 (1.22%)85–89 · Male: 351,132 (0.73%) · Female: 584,325 (1.22%)85–8980–84 · Male: 645,756 (1.35%) · Female: 897,549 (1.88%)80–84 · Male: 645,756 (1.35%) · Female: 897,549 (1.88%)80–8475–79 · Male: 907,906 (1.90%) · Female: 1,134,121 (2.37%)75–79 · Male: 907,906 (1.90%) · Female: 1,134,121 (2.37%)75–7970–74 · Male: 1,114,025 (2.33%) · Female: 1,283,294 (2.68%)70–74 · Male: 1,114,025 (2.33%) · Female: 1,283,294 (2.68%)70–7465–69 · Male: 1,421,812 (2.97%) · Female: 1,566,666 (3.27%)65–69 · Male: 1,421,812 (2.97%) · Female: 1,566,666 (3.27%)65–6960–64 · Male: 1,703,947 (3.56%) · Female: 1,784,266 (3.73%)60–64 · Male: 1,703,947 (3.56%) · Female: 1,784,266 (3.73%)60–6455–59 · Male: 1,853,286 (3.87%) · Female: 1,869,671 (3.91%)55–59 · Male: 1,853,286 (3.87%) · Female: 1,869,671 (3.91%)55–5950–54 · Male: 2,001,831 (4.18%) · Female: 1,955,259 (4.09%)50–54 · Male: 2,001,831 (4.18%) · Female: 1,955,259 (4.09%)50–5445–49 · Male: 1,962,223 (4.10%) · Female: 1,919,102 (4.01%)45–49 · Male: 1,962,223 (4.10%) · Female: 1,919,102 (4.01%)45–4940–44 · Male: 1,612,035 (3.37%) · Female: 1,600,370 (3.34%)40–44 · Male: 1,612,035 (3.37%) · Female: 1,600,370 (3.34%)40–4435–39 · Male: 1,424,157 (2.98%) · Female: 1,410,658 (2.95%)35–39 · Male: 1,424,157 (2.98%) · Female: 1,410,658 (2.95%)35–3930–34 · Male: 1,309,771 (2.74%) · Female: 1,277,243 (2.67%)30–34 · Male: 1,309,771 (2.74%) · Female: 1,277,243 (2.67%)30–3425–29 · Male: 1,266,806 (2.65%) · Female: 1,208,429 (2.53%)25–29 · Male: 1,266,806 (2.65%) · Female: 1,208,429 (2.53%)25–2920–24 · Male: 1,336,680 (2.79%) · Female: 1,271,940 (2.66%)20–24 · Male: 1,336,680 (2.79%) · Female: 1,271,940 (2.66%)20–2415–19 · Male: 1,326,375 (2.77%) · Female: 1,252,407 (2.62%)15–19 · Male: 1,326,375 (2.77%) · Female: 1,252,407 (2.62%)15–1910–14 · Male: 1,174,705 (2.45%) · Female: 1,108,687 (2.32%)10–14 · Male: 1,174,705 (2.45%) · Female: 1,108,687 (2.32%)10–145–9 · Male: 984,128 (2.06%) · Female: 933,968 (1.95%)5–9 · Male: 984,128 (2.06%) · Female: 933,968 (1.95%)5–90–4 · Male: 873,232 (1.82%) · Female: 824,640 (1.72%)0–4 · Male: 873,232 (1.82%) · Female: 824,640 (1.72%)0–4
Age-group data
Age group Male Female Total Share
0–4 873,232 824,640 1,697,872 3.55%
5–9 984,128 933,968 1,918,096 4.01%
10–14 1,174,705 1,108,687 2,283,392 4.77%
15–19 1,326,375 1,252,407 2,578,782 5.39%
20–24 1,336,680 1,271,940 2,608,620 5.45%
25–29 1,266,806 1,208,429 2,475,235 5.17%
30–34 1,309,771 1,277,243 2,587,014 5.41%
35–39 1,424,157 1,410,658 2,834,815 5.92%
40–44 1,612,035 1,600,370 3,212,405 6.71%
45–49 1,962,223 1,919,102 3,881,325 8.11%
50–54 2,001,831 1,955,259 3,957,090 8.27%
55–59 1,853,286 1,869,671 3,722,957 7.78%
60–64 1,703,947 1,784,266 3,488,213 7.29%
65–69 1,421,812 1,566,666 2,988,478 6.25%
70–74 1,114,025 1,283,294 2,397,319 5.01%
75–79 907,906 1,134,121 2,042,027 4.27%
80–84 645,756 897,549 1,543,305 3.23%
85–89 351,132 584,325 935,457 1.95%
90–94 171,118 363,202 534,320 1.12%
95–99 37,859 108,552 146,411 0.31%
100+ 3,542 14,117 17,659 0.04%
Advertisement

Demographic indicators

UN WPP 2024 indicators for 2026.

Projection
Indicator 2026 Projection for 2100 Unit
Total population 47,850,793 people 33,127,478 people people
Male population 23,482,325 people 16,051,066 people people
Female population 24,368,467 people 17,076,413 people people
Population density 95.3 people/km² 65.9 people/km² people/km²
Sex ratio 96.4 94.0 males per 100 females
Median age 46.3 52.2 years
Natural change -133,070 -206,000 people
Natural change rate -2.78 ‰ -6.22 ‰ ‰
Population change -47,771 -177,423 people
Population growth rate -0.10% -0.54% %
Population doubling time — — years
Births 327,412 people 244,706 people people
Births to women aged 15–19 6,296 4,243 people
Birth rate 6.84 ‰ 7.39 ‰ ‰
Total fertility rate 1.24 1.48 children per woman
Net reproduction rate 0.596 0.716
Mean age at childbearing 32.54 32.54 years
Sex ratio at birth 106.6 107.0 males per 100 females
Deaths 460,482 people 450,706 people people
Male deaths 233,955 226,857 people
Female deaths 226,527 223,849 people
Death rate 9.62 ‰ 13.61 ‰ ‰
Life expectancy at birth 84.08 92.87 years
Male life expectancy at birth 81.40 90.31 years
Female life expectancy at birth 86.71 95.40 years
Life expectancy at age 15 69.35 77.93 years
Life expectancy at age 65 21.85 28.80 years
Life expectancy at age 80 10.17 14.71 years
Infant deaths 679 108 people
Infant mortality rate 2.07 ‰ 0.44 ‰ ‰
Survivors to age 1 326,833 244,614 people
Deaths under age 5 888 143 people
Under-5 mortality rate 2.69 ‰ 0.58 ‰ ‰
Net migration 85,305 28,582 people
Net migration rate 1.78 ‰ 0.86 ‰ ‰

Frequently asked questions

What is the population of Spain?
In 2026, Spain had a population of 47,850,793 people. It ranks #34 of 237 countries and areas worldwide.
How has the population of Spain changed?
The population was 28,077,049 people in 1950 and is projected to reach 33,127,478 people in 2100.
What is the age structure of Spain?
The median age is 46.3. 12.3% of the population is under 15 and 22.2% is 65 or older.
How does Spain compare within Europe?
By total population, Spain ranks #6 of 50 in Europe and #34 of 237 worldwide.

Estimates cover 1950–2023; 2024 and later are UN medium-variant projections. Rankings use the latest available value for the selected year. The world total is the sum of all countries and areas in the dataset.

Advertisement