Photo: NASA Goddard Space Flight Center/Reto Stöckli

Spain: population and ages

Spain: 47.9 million people on 1 January 2026, number 32 of 237 countries and areas by population.

The population peaked in 2023 at 47.9 million and is now 0.1% below that peak.

Figures for 2026 are UN projections (medium variant). Estimates end in 2023.

Population, 1 January 2026
47,874,678
Median age
46.3
Births in 2026
327,412
Deaths in 2026
460,482
Life expectancy at birth
84.1
Children per woman
1.24
Under 15
12.5%
65 and over
21.9%
Population pyramid, Spain, 1 January 2026MaleFemale0102030405060708090100+0250K250K500K500K
Population pyramid, Spain, 1 January 2026 Projection

Where does your age fit here?

Only the year is needed. It stays in this browser.

Enter your birth year to see where you fit in.

Population over time

In mid-1950 there were 28.1 million people, so the population is now 1.7 times as large.

The UN projects 327,000 births and 460,000 deaths in 2026, 133,000 more deaths than births.

Deaths have outnumbered births every year since 2015.

More people move in than leave: net migration in 2026 is projected at plus 85,300.

Population, 1950 to 2100Projected from 2024010M20M30M40M50M1950197520002025205020752100
2026 Spain: 47.9M

Ages

The median age is 46.3, which is 15.2 years above the world’s 31.1.

12% of the people are under 15 and 22% are 65 or older (world: 24% and 11%).

People aged 65 and over have outnumbered children under 15 since 1998.

Women have 1.2 children on average at today’s rates (world: 2.2), against 2.5 in 1950.

Life expectancy at birth is 84.1 years, above the world’s 73.8. In 1950 it was 61.8.

Median age, 1950 to 2100Projected from 202402040601950197520002025205020752100SpainWorld
2026 Spain: 46World: 31

See how the pyramid changes from 1950 to 2100

Births, deaths and the years ahead

For mid-2050 the UN projects 44.9 million people, 6.1% fewer than now, with a median age of 51.8.

Births and deaths per year, 1950 to 2100Projected from 20240200K400K600K800K1950197520002025205020752100DeathsBirths
2026 Births: 327.4KDeaths: 460.5K

Compare Spain with other countries

Development and urbanisation

In 2025, 52% of the people lived in cities, 28% in towns and semi-dense areas and 21% in rural areas. For 2050 the UN projects 54% in cities.

Degree of urbanisation: one rule for every country, a city has at least 50,000 people at 1,500 or more per km². National definitions of “urban” differ.

IndicatorLatest valueYear
People using the internet95.8%2024
Access to electricity100.0%2024
Adult literacy (ages 15 and over)99.7%2021
99.9%2024
99.9%2024
97.0%2024
Human Development Index0.9182023

Each value is the latest one published, with the year it refers to. Countries publish in different years. Sources: World Bank, World Development Indicators (ITU, SDG 7.1.1, UNESCO UIS), UNDP, Human Development Report, UN, World Urbanization Prospects 2025.

Longevity, ageing and the future

By the death rates of 2023, life expectancy at birth was 83.7 years. People who had reached 65 could expect 23.4 more years for women and 19.5 for men.

On 1 January 2026, there are 33.4 people aged 65 or more for every 100 aged 15 to 64. For 2050, the UN projects 68.4.

For 2100 the UN projects a population of 33.1 million, with a 95 percent prediction interval of 8.45 million to 94.6 million.

Life expectancy at birth is a period measure. It sums up the death rates of one year and is not a forecast of how long the babies born that year will live.

Sources: World Population Prospects 2024, life tables, probabilistic projections, UN DESA Population Division (CC BY 3.0 IGO).

International migrants

In mid-2024, 8.87 million international migrants lived here, 18.5% of the population.

In mid-2024, 1.62 million people from here lived in other countries.

Largest countries of origin
CountryPeople
Morocco1,088,408
Colombia792,228
Venezuela602,539
Romania522,578
Ecuador432,111
Largest countries of destination
CountryPeople
France254,830
United Kingdom211,894
United States168,755
Germany166,899
Romania85,101

Counted by country of birth. Refugees are included. A migrant stock counts people living outside their country at mid-year, not journeys or yearly moves. Sources: International Migrant Stock 2024, UN DESA Population Division (CC BY 3.0 IGO).

Cities

Cities of 50,000 people or more here, by the UN degree of urbanisation: 84.

CityPopulation 2025
Madrid5,583,601
Barcelona3,982,704
Valencia1,390,045
Bilbao741,795
Seville699,504
Zaragoza585,533
Málaga521,854
Palma de Mallorca473,499
Alicante397,948
Las Palmas de Gran Canaria381,670

Sources: World Urbanization Prospects 2025, UN DESA Population Division (CC BY 3.0 IGO).

All cities

Data and sources

Spain every ten years
YearPopulation (1 July)Median ageBirthsDeathsLife expectancyChildren per woman
195028,077,04926.5562,979310,44661.82.47
196030,404,93928.4666,956268,36869.22.81
197033,812,72329.1661,752282,34472.12.88
198037,537,56429.8571,317286,11975.52.21
199039,084,97932.5406,392330,42477.01.36
200041,019,77436.3399,049356,19779.41.21
201046,840,47239.2481,432379,01582.01.37
202047,679,48943.5343,355495,37882.21.19
203047,610,52048.0320,841471,33884.61.26
204046,591,67451.0343,441525,64485.91.32
205044,928,55851.8317,740598,10587.11.36
206042,210,83852.0281,441652,91288.41.39
207039,035,76952.7283,806632,25089.51.43
208036,524,53551.6280,207523,81690.71.46
209034,774,23751.4254,701448,55391.81.47
210033,127,47852.2244,706450,70692.91.48

Rows from 2024 on are UN projections (medium variant), shown in italics.

The UN estimates every country and area within its present borders for every year since 1950, also for years before it became independent or took its present shape. Figures for earlier years therefore describe the people who lived on today’s territory.

Sources: World Population Prospects 2024, UN DESA Population Division (CC BY 3.0 IGO).

All countries and areas