Municipalities of Spain by average age

Ferrol had the highest average age of 151 municipalities in 2020, at 49.3 years. Melilla had the lowest, at 35.9 years. The median was 42.7 years and the figure for Spain was 43.6 years. Source: the Instituto Nacional de Estadística.

Highest49.3Ferrol
Lowest35.9Melilla
Median42.7151 municipalities
Spain43.6History

Top 40 municipalities, 2020

CSVChart (SVG)

FerrolFerrol: 49.3 years49.3AvilésAvilés: 48.4 years48.4LeónLeón: 48.4 years48.4GijónGijón: 48.4 years48.4SalamancaSalamanca: 48.2 years48.2ZamoraZamora: 47.9 years47.9ValladolidValladolid: 47.7 years47.7OurenseOurense: 47.5 years47.5TorrelavegaTorrelavega: 47.3 years47.3PonferradaPonferrada: 47.3 years47.3SantanderSantander: 47.3 years47.3BilbaoBilbao: 46.9 years46.9A CoruñaA Coruña: 46.9 years46.9OviedoOviedo: 46.9 years46.9PalenciaPalencia: 46.8 years46.8GetxoGetxo: 46.7 years46.7CádizCádiz: 46.6 years46.6Donostia/San SebastiánDonostia/San Sebastián: 46.6 years46.6SieroSiero: 46.4 years46.4BarakaldoBarakaldo: 46.2 years46.2SegoviaSegovia: 45.9 years45.9VigoVigo: 45.8 years45.8LugoLugo: 45.7 years45.7Santiago de CompostelaSantiago de Compostela: 45.7 years45.7BurgosBurgos: 45.3 years45.3FuengirolaFuengirola: 45.3 years45.3IrunIrun: 45.1 years45.1TorreviejaTorrevieja: 44.9 years44.9OrihuelaOrihuela: 44.9 years44.9PontevedraPontevedra: 44.8 years44.8Pamplona/IruñaPamplona/Iruña: 44.7 years44.7GranadaGranada: 44.7 years44.7ZaragozaZaragoza: 44.6 years44.6Alcoi/AlcoyAlcoi/Alcoy: 44.6 years44.6BenidormBenidorm: 44.5 years44.5EldaElda: 44.5 years44.5ValènciaValència: 44.5 years44.5BarcelonaBarcelona: 44.4 years44.4SoriaSoria: 44.4 years44.4Vitoria-GasteizVitoria-Gasteiz: 44.4 years44.4
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2020
years
Change on 2019
1Ferrol49.3+0.3
2Avilés48.4+0.3
3León48.4+0.2
4Gijón48.4+0.3
5Salamanca48.2+0.2
6Zamora47.9+0.5
7Valladolid47.7+0.3
8Ourense47.5+0.2
9Torrelavega47.3+0.2
10Ponferrada47.3+0.4
11Santander47.3+0.2
12Bilbao46.90
13A Coruña46.9+0.2
13Oviedo46.9+0.3
15Palencia46.8+0.4
16Getxo46.7+0.3
17Cádiz46.6+0.4
18Donostia/San Sebastián46.6+0.2
19Siero46.4+0.4
20Barakaldo46.2+0.1
21Segovia45.9+0.1
22Vigo45.8+0.3
23Lugo45.7+0.3
24Santiago de Compostela45.7+0.3
25Burgos45.3+0.2
26Fuengirola45.3+0.4
27Irun45.1+0.3
28Torrevieja44.9+0.2
29Orihuela44.9+0.1
30Pontevedra44.8+0.4
31Pamplona/Iruña44.7+0.1
32Granada44.7+0.2
33Zaragoza44.6+0.1
34Alcoi/Alcoy44.6+0.2
35Benidorm44.5+0.3
36Elda44.5+0.3
37València44.5+0.2
38Barcelona44.4-0.1
38Soria44.4+0.2
40Vitoria-Gasteiz44.4+0.2
41Logroño44.3+0.2
42Santa Cruz de Tenerife44.3+0.3
43Alcorcón44.2+0.4
43Sagunt/Sagunto44.2+0.1
45Coslada44.1+0.5
45Las Palmas de Gran Canaria44.1+0.3
47Madrid44.1-0
48Leganés44+0.3
49Ávila44+0.2
50Teruel43.8+0.3
51Linares43.8+0.5
52Huesca43.7+0.1
52Vilanova i la Geltrú43.7+0.3
54Cuenca43.6+0.4
55Cerdanyola del Vallès43.5+0.3
56Sevilla43.4+0.2
57Cornellà de Llobregat43.4+0.1
58Córdoba43.3+0.3
59Móstoles43.3+0.3
60Alacant/Alicante43.2+0.2
61Cáceres43.2+0.4
62L'Hospitalet de Llobregat43.20
63Jaén43.1+0.6
64Manresa43.10
65Castelló de la Plana/Castellón de la Plana43.1+0.2
66Talavera de la Reina43+0.3
67San Cristóbal de La Laguna43+0.4
68El Prat de Llobregat43+0.3
69Sant Boi de Llobregat42.9+0.2
70Huelva42.9+0.3
71Alcalá de Henares42.8+0.3
72Ciudad Real42.8+0.3
72San Bartolomé de Tirajana42.8+0.4
74Gandia42.8+0.2
75Torremolinos42.7+0.2
76Santa Coloma de Gramenet42.7+0.1
77Badalona42.7+0.1
78Lleida42.5+0.1
79Granollers42.5+0.2
80Sabadell42.5+0.1
81Málaga42.4+0.3
82Getafe42.4+0.2
82Tarragona42.4+0.2
84Mollet del Vallès42.4+0.5
85Guadalajara42.3+0.2
85San Fernando42.3+0.5
87Albacete42.1+0.4
88Mataró42.1+0.2
89Elx/Elche42+0.3
90Badajoz41.9+0.4
91Telde41.9+0.5
92Reus41.9+0.1
93Jerez de la Frontera41.8+0.4
94Toledo41.8+0.3
95Vila-real41.7+0.3
96Mérida41.6+0.4
97Pozuelo de Alarcón41.6+0.4
98Vélez-Málaga41.6+0.4
99Palma41.5+0.2
100Viladecans41.5+0.3
101Terrassa41.5+0.2
102Benalmádena41.5+0.3
103Calvià41.4+0.4
103Cartagena41.4+0.3
105El Puerto de Santa María41.4+0.4
106La Línea de la Concepción41.4+0.3
107Aranjuez41.3+0.3
108Estepona41.3+0.3
109Almería41.2+0.2
110Castelldefels41.2+0.3
111Utrera41.1+0.3
112Sanlúcar de Barrameda41.1+0.4
113Torrent41+0.2
114Marbella41+0.3
114Rubí41+0.2
116Alcobendas41+0.3
117Collado Villalba40.9+0.4
118Fuenlabrada40.9+0.5
119Majadahonda40.9+0.4
119Murcia40.9+0.2
121Motril40.8+0.3
122Algeciras40.8+0.3
123Girona40.6+0.2
124Sant Vicent del Raspeig/San Vicente del Raspeig40.6+0.4
125Torrejón de Ardoz40.4+0.4
126Arona40.4+0.6
127Eivissa40.3n/a
128Mijas40.2+0.3
129San Sebastián de los Reyes40.1+0.3
130Chiclana de la Frontera40.1+0.5
131Alcalá de Guadaíra40.1+0.4
132Lorca40+0.1
133Colmenar Viejo39.9+0.2
134Paterna39.8+0.3
135Las Rozas de Madrid39.6+0.5
136Dos Hermanas39.6+0.4
137Sant Cugat del Vallès39.4+0.2
138Pinto39.2+0.4
138Santa Lucía de Tirajana39.2+0.4
140Arganda del Rey39.2+0.3
141Molina de Segura39.1+0.2
142Arrecife38.9+0.3
143Granadilla de Abona38.8+0.2
144Boadilla del Monte37.8+0.3
144Parla37.8+0.4
146Ceuta37.7+0.4
147Valdemoro37.6+0.4
148Roquetas de Mar37.3+0.4
149Rivas-Vaciamadrid37.1+0.3
150El Ejido37+0.3
151Melilla35.9+0.2

Other periods

About this ranking

Mean age of the resident population on 1 January.

Every value in the ranking comes from the same publisher and the same period, so the municipalities are compared on one definition. 4 municipalities with data in other periods have no value for 2020 and are left out rather than filled from another source. Equal values share a rank.

How to cite

Instituto Nacional de Estadística (INE). Indicadores demográficos básicos: edad media de la población (tablas 3197, 3198, 3199 y 30699). https://www.ine.es/jaxiT3/Tabla.htm?t=30699. 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 Municipalities of Spain by average age using official data, and cite the source.
rank_places {"indicator":"average_age","level":"municipality","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=average_age&level=municipality&within=Spain&limit=10

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

Questions

Which municipality has the highest average age?

Ferrol, with 49.3 years in 2020, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 35.9 years in 2020.

Where does this ranking come from?

Every value comes from one source and one period, so the places are comparable: Instituto Nacional de Estadística, Indicadores demográficos básicos: edad media de la población (tablas 3197, 3198, 3199 y 30699). Retrieved 2026-10-07. 4 municipalities have no value for 2020 and are not ranked.

Average age: other rankings

Municipalities of Spain: more rankings