Geographic History

Flag of SpainMedian age in Spain (2023)

The median age in Spain is 44.9 years (2023, UN).

Spain has the 10th highest median age of 195 ranked countries (2023, UN).

Median age in Spain was 44.4 years in 2022 and 44.9 years in 2023 (UN).

Median age in Spain was 26.5 years in 1950, the first year of the UN series.

For comparison, the UN figure for the world is 30.4 years in 2023.

Key figures

Median age
44.9 years2023, UN
World rank
10 of 1952023, UN

Median age, 1950-2023

253035404519501960197019801990200020102020

UN values, 1950-2023.

Median age by year

Median age in Spain by year
YearValue (years)Change
202344.9+0.5
202244.4+0.5
202143.9+0.4
202043.5+0.4
201943.1+0.3
201842.8+0.4
201742.4+0.4
201642.0+0.4
201541.6+0.5
201441.1+0.5
201340.6+0.5
201240.1+0.5
201139.6+0.5
201039.2+0.4
200938.8+0.3
200838.4+0.2
200738.2+0.2
200638.0+0.2
200537.8+0.2
200437.5+0.2
200337.3+0.2
200237.1+0.3
200136.8+0.4
200036.3+0.4
199935.9+0.4
199835.5+0.4
199735.1+0.4
199634.7+0.4
199534.3+0.4
199433.9+0.4
199333.6+0.3
199233.2+0.3
199132.9+0.4
199032.5+0.4
198932.1+0.3
198831.8+0.3
198731.5+0.3
198631.2+0.3
198530.9+0.3
198430.6+0.2
198330.4+0.2
198230.1+0.2
198129.9+0.2
198029.8+0.2
197929.6+0.2
197829.4+0.2
197729.2+0.1
197629.1+0.1
197529.00.0
197429.00.0
197329.00.0
197229.0-0.1
197129.10.0
197029.1-0.1
196929.3-0.2
196829.40.0
196729.4+0.1
196629.3+0.1
196529.2+0.1
196429.1+0.1
196328.9+0.2
196228.8+0.2
196128.6+0.2
196028.4+0.1
195928.2+0.1
195828.1+0.1
195728.0+0.1
195627.8+0.2
195527.7+0.2
195427.5+0.2
195327.2+0.2
195227.0+0.2
195126.8+0.3
195026.5-

Spain through history

Spain became independent in 1492.

Map quizzes that include Spain

Spain in context

Spain in context
CountryValueYearRankRelation
Portugal46.2 years20236 of 195land neighbour
Bermuda45.1 years2023not rankedsimilar size
Bosnia and Herzegovina44.9 years20239 of 195similar size
Spain44.9 years202310 of 195this country
Croatia44.8 years202311 of 195similar size
United States Virgin Islands44.7 years2023not rankedsimilar size
South Korea44.5 years202312 of 195similar size
Andorra43.2 years202318 of 195land neighbour
France41.8 years202328 of 195land neighbour
Gibraltar38.9 years2023not rankedland neighbour
Morocco29.2 years2023100 of 195land neighbour

Frequently asked questions

What is the median age in Spain?

The median age in Spain is 44.9 years (2023, UN).

How does Spain rank in the world by median age?

Spain has the 10th highest median age of 195 ranked countries (2023, UN).

How has the median age in Spain changed over time?

Median age in Spain was 44.4 years in 2022 and 44.9 years in 2023 (UN).

What it measures

The median age splits the population in two equal halves: half of the people are younger, half are older.

Sources and method

UN figures are from UN - World Population Prospects 2024, Medium variant, World Population Prospects 2024 (revision 1): Interim update, released 19 January 2026 (Togo replaced; all other locations as released 11 July 2024); downloaded 2026-11-24. They count people on 1 July of each year. Values up to 2023 are estimates; later values are projections.

Ranks count the independent states that have a value for the indicator and are listed in the Geographic History country data; territories and dependencies are shown with their data but are not ranked. Rank 1 is the highest value.

The yearly table lists the UN values for each year where the source has one; years without a value are left out.

Last updated:

More about Spain

More statistics for Spain

Every year has a map

Drag a timeline across 2,500 years in the free Geographic History app - every province, ruler and battle, also offline.