Municipalities of Spain by average age

Ferrol had the highest average age of 147 municipalities in 2018, at 48.8 years. Melilla had the lowest, at 35.4 years. The median was 42.3 years and the figure for Spain was 43.2 years. Source: the Instituto Nacional de Estadística.

Highest48.8Ferrol
Lowest35.4Melilla
Median42.3147 municipalities
Spain43.2History

Top 40 municipalities, 2018

CSVChart (SVG)

FerrolFerrol: 48.8 years48.8LeónLeón: 48 years48GijónGijón: 47.9 years47.9SalamancaSalamanca: 47.8 years47.8AvilésAvilés: 47.8 years47.8ValladolidValladolid: 47.2 years47.2ZamoraZamora: 47.1 years47.1OurenseOurense: 47 years47TorrelavegaTorrelavega: 46.9 years46.9SantanderSantander: 46.9 years46.9BilbaoBilbao: 46.8 years46.8PonferradaPonferrada: 46.6 years46.6A CoruñaA Coruña: 46.5 years46.5OviedoOviedo: 46.2 years46.2PalenciaPalencia: 46.2 years46.2Donostia/San SebastiánDonostia/San Sebastián: 46.2 years46.2GetxoGetxo: 46.1 years46.1CádizCádiz: 45.9 years45.9BarakaldoBarakaldo: 45.9 years45.9SieroSiero: 45.7 years45.7SegoviaSegovia: 45.6 years45.6Santiago de CompostelaSantiago de Compostela: 45.2 years45.2VigoVigo: 45.2 years45.2LugoLugo: 45.2 years45.2BurgosBurgos: 44.8 years44.8OrihuelaOrihuela: 44.6 years44.6IrunIrun: 44.6 years44.6BarcelonaBarcelona: 44.5 years44.5Pamplona/IruñaPamplona/Iruña: 44.5 years44.5TorreviejaTorrevieja: 44.5 years44.5ZaragozaZaragoza: 44.4 years44.4GranadaGranada: 44.3 years44.3Alcoi/AlcoyAlcoi/Alcoy: 44.2 years44.2FuengirolaFuengirola: 44.2 years44.2ValènciaValència: 44.2 years44.2PontevedraPontevedra: 44.2 years44.2SoriaSoria: 44.1 years44.1MadridMadrid: 44 years44Sagunt/SaguntoSagunt/Sagunto: 44 years44EldaElda: 44 years44
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2018
years
Change on 2017
1Ferrol48.8+0.3
2León48+0.2
3Gijón47.9+0.3
4Salamanca47.8+0.3
5Avilés47.8+0.4
6Valladolid47.2+0.3
7Zamora47.1+0.4
8Ourense47+0.3
9Torrelavega46.9+0.3
10Santander46.9+0.2
11Bilbao46.8+0.1
12Ponferrada46.6+0.4
13A Coruña46.5+0.2
14Oviedo46.2+0.3
14Palencia46.2+0.3
16Donostia/San Sebastián46.2+0.2
17Getxo46.1+0.3
18Cádiz45.9+0.3
19Barakaldo45.9+0.1
20Siero45.7+0.2
21Segovia45.6+0.2
22Santiago de Compostela45.2+0.3
22Vigo45.2+0.3
24Lugo45.2+0.2
25Burgos44.8+0.3
26Orihuela44.6+0.3
27Irun44.6+0.2
28Barcelona44.50
29Pamplona/Iruña44.5+0.1
30Torrevieja44.5+0.4
31Zaragoza44.4+0.2
32Granada44.3+0.3
33Alcoi/Alcoy44.2+0.2
34Fuengirola44.2-0.2
35València44.2+0.2
36Pontevedra44.2+0.3
37Soria44.1+0.1
38Madrid440
39Sagunt/Sagunto44+0.2
40Elda44+0.3
41Benidorm44+0.3
42Vitoria-Gasteiz43.9+0.2
43Logroño43.8+0.3
44Santa Cruz de Tenerife43.7+0.3
45Alcorcón43.7+0.4
46Ávila43.5+0.3
46Huesca43.5+0.2
46Leganés43.5+0.3
49Las Palmas de Gran Canaria43.4+0.3
50Teruel43.4+0.2
51L'Hospitalet de Llobregat43.2-0
52Cornellà de Llobregat43.2+0.1
53Coslada43.2+0.5
53Manresa43.20
55Vilanova i la Geltrú43.1+0.2
56Sevilla43+0.2
57Linares42.9+0.4
58Alacant/Alicante42.9+0.2
58Cuenca42.9+0.3
60Cerdanyola del Vallès42.8+0.4
61Córdoba42.7+0.3
61Móstoles42.7+0.4
63Sant Boi de Llobregat42.6+0.2
64Castelló de la Plana/Castellón de la Plana42.5+0.3
65El Prat de Llobregat42.5+0.2
66Santa Coloma de Gramenet42.5+0.1
67Badalona42.5+0.1
68Cáceres42.4+0.3
69Talavera de la Reina42.3+0.3
70Torremolinos42.3+0.3
71Gandia42.3+0.3
72San Cristóbal de La Laguna42.3+0.3
73Lleida42.3+0.2
73Sabadell42.3+0.1
75Huelva42.2+0.4
76Jaén42.2+0.4
77Alcalá de Henares42.2+0.4
78Granollers42.2+0.2
79Ciudad Real42.1+0.3
80San Bartolomé de Tirajana42.1+0.3
81Tarragona42.1+0.2
82Getafe42+0.1
83Guadalajara42+0.2
84Málaga41.9+0.3
85Mataró41.7+0.2
86Mollet del Vallès41.6+0.4
87Reus41.5+0.3
88Elx/Elche41.5+0.3
89Albacete41.4+0.3
90San Fernando41.4+0.5
91Toledo41.3+0.2
92Badajoz41.2+0.4
93Palma41.1+0.2
94Vila-real41.1+0.3
95Terrassa41.1+0.2
96Benalmádena41.1-0.4
97Jerez de la Frontera41+0.4
98La Línea de la Concepción41+0.3
99Cartagena40.9+0.2
99Telde40.9+0.4
101Mérida40.9+0.3
102Viladecans40.9+0.4
103Vélez-Málaga40.9+0.3
104Pozuelo de Alarcón40.8+0.3
105Aranjuez40.8+0.3
106Almería40.8+0.3
107Rubí40.6+0.2
108Castelldefels40.6+0.3
109El Puerto de Santa María40.6+0.4
110Estepona40.6+0.3
111Torrent40.5+0.3
112Utrera40.5+0.5
113Alcobendas40.4+0.3
114Murcia40.4+0.2
115Sanlúcar de Barrameda40.4+0.2
116Marbella40.4+0.3
117Girona40.3+0.1
118Motril40.3+0.4
119Algeciras40.2+0.3
120Collado Villalba40.1+0.4
121Majadahonda40+0.4
122Sant Vicent del Raspeig/San Vicente del Raspeig39.9+0.4
123Fuenlabrada39.9+0.5
124Lorca39.7+0.2
125San Sebastián de los Reyes39.6+0.4
125Torrejón de Ardoz39.6+0.3
127Mijas39.6+0.7
128Arona39.4+0.2
129Chiclana de la Frontera39.2+0.4
130Alcalá de Guadaíra39.2+0.4
130Paterna39.2+0.3
132Sant Cugat del Vallès39+0.2
133Dos Hermanas38.8+0.4
134Las Rozas de Madrid38.7+0.4
135Molina de Segura38.6+0.4
136Arganda del Rey38.5+0.4
137Pinto38.5+0.3
138Santa Lucía de Tirajana38.4+0.4
139Arrecife38.3+0.2
140Boadilla del Monte37.2+0.3
141Parla37.1+0.3
142Ceuta37.1+0.3
143Valdemoro36.7+0.6
144Roquetas de Mar36.6+0.3
145El Ejido36.4+0.4
146Rivas-Vaciamadrid36.4+0.3
147Melilla35.4+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. 8 municipalities with data in other periods have no value for 2018 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 48.8 years in 2018, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 35.4 years in 2018.

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. 8 municipalities have no value for 2018 and are not ranked.

Average age: other rankings

Municipalities of Spain: more rankings