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
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.
Population history and projection
Population from 1950 to 2100. The dashed section shows the UN medium-variant projection from 2024 onward.
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.
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% |
Demographic indicators
UN WPP 2024 indicators for 2026.
| 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.