Autonomous communities of Spain by median age

Asturias had the highest median age of 19 autonomous communities in 2021, at 50.4 years. Melilla had the lowest, at 35.2 years. The median was 44.5 years and the figure for Spain was 44.6 years. Source: Eurostat, European Commission.

Highest50.4Asturias
Lowest35.2Melilla
Median44.519 autonomous communities
Spain44.6History

All autonomous communities, 2021

CSVChart (SVG)

AsturiasAsturias: 50.4 years50.4Castile and LeónCastile and León: 49.5 years49.5GaliciaGalicia: 48.7 years48.7CantabriaCantabria: 47.3 years47.3Basque CountryBasque Country: 47.1 years47.1AragonAragon: 46 years46ExtremaduraExtremadura: 46 years46La RiojaLa Rioja: 45.7 years45.7Valencian CommunityValencian Community: 44.7 years44.7NavarreNavarre: 44.5 years44.5Canary IslandsCanary Islands: 44.1 years44.1Castilla-La ManchaCastilla-La Mancha: 44.1 years44.1CataloniaCatalonia: 43.7 years43.7AndalusiaAndalusia: 43.3 years43.3Community of MadridCommunity of Madrid: 43.3 years43.3Balearic IslandsBalearic Islands: 42.2 years42.2Region of MurciaRegion of Murcia: 41.6 years41.6CeutaCeuta: 37.8 years37.8MelillaMelilla: 35.2 years35.2
years. Source: Eurostat. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2021
years
Change on 2020
1Asturias50.4+0.4
2Castile and León49.5+0.3
3Galicia48.7+0.4
4Cantabria47.3+0.4
5Basque Country47.1+0.3
6Aragon46+0.3
6Extremadura46+0.3
8La Rioja45.7+0.3
9Valencian Community44.7+0.4
10Navarre44.5+0.3
11Canary Islands44.1+0.6
11Castilla-La Mancha44.1+0.3
13Catalonia43.7+0.3
14Andalusia43.3+0.5
14Community of Madrid43.3+0.3
16Balearic Islands42.2+0.4
17Region of Murcia41.6+0.4
18Ceuta37.8+0.4
19Melilla35.2+0.3

Other periods

About this ranking

Age that divides the resident population into two halves of equal size. Spain and the EU: on 1 January. United States: American Community Survey five-year estimate, where the period shown is the last year of the five-year span.

Every value in the ranking comes from the same publisher and the same period, so the autonomous communities are compared on one definition. Equal values share a rank.

How to cite

Eurostat. Population structure indicators by NUTS 3 region (demo_r_pjanind3). https://ec.europa.eu/eurostat/databrowser/view/demo_r_pjanind3/default/table. Retrieved 2026-10-07.

Use this data in your AI agent

Invokely serves this figure to AI assistants through MCP and to code through a REST API, with the source and citation attached. Ask your assistant:

Rank Autonomous communities of Spain by median age using official data, and cite the source.
rank_places {"indicator":"median_age","level":"region","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=median_age&level=region&within=Spain&limit=10

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

Questions

Which autonomous community has the highest median age?

Asturias, with 50.4 years in 2021, according to Eurostat, European Commission.

Which autonomous community has the lowest median age?

Melilla, with 35.2 years in 2021.

Where does this ranking come from?

Every value comes from one source and one period, so the places are comparable: Eurostat, European Commission, Population structure indicators by NUTS 3 region (demo_r_pjanind3). Retrieved 2026-10-07.

Median age: other rankings

Autonomous communities of Spain: more rankings