Municipalities of Spain by average age

Ferrol had the highest average age of 150 municipalities in 2019, at 49 years. Melilla had the lowest, at 35.6 years. The median was 42.5 years and the figure for Spain was 43.4 years. Source: the Instituto Nacional de Estadística.

Highest49Ferrol
Lowest35.6Melilla
Median42.5150 municipalities
Spain43.4History

Top 40 municipalities, 2019

CSVChart (SVG)

FerrolFerrol: 49 years49LeónLeón: 48.2 years48.2GijónGijón: 48.1 years48.1AvilésAvilés: 48.1 years48.1SalamancaSalamanca: 48 years48ZamoraZamora: 47.5 years47.5ValladolidValladolid: 47.5 years47.5OurenseOurense: 47.3 years47.3TorrelavegaTorrelavega: 47.2 years47.2SantanderSantander: 47.1 years47.1PonferradaPonferrada: 46.9 years46.9BilbaoBilbao: 46.9 years46.9A CoruñaA Coruña: 46.7 years46.7OviedoOviedo: 46.5 years46.5PalenciaPalencia: 46.5 years46.5GetxoGetxo: 46.4 years46.4Donostia/San SebastiánDonostia/San Sebastián: 46.4 years46.4CádizCádiz: 46.3 years46.3BarakaldoBarakaldo: 46 years46SieroSiero: 46 years46SegoviaSegovia: 45.8 years45.8VigoVigo: 45.5 years45.5LugoLugo: 45.5 years45.5Santiago de CompostelaSantiago de Compostela: 45.4 years45.4BurgosBurgos: 45.1 years45.1OrihuelaOrihuela: 44.9 years44.9FuengirolaFuengirola: 44.9 years44.9IrunIrun: 44.8 years44.8TorreviejaTorrevieja: 44.7 years44.7Pamplona/IruñaPamplona/Iruña: 44.6 years44.6ZaragozaZaragoza: 44.5 years44.5GranadaGranada: 44.5 years44.5BarcelonaBarcelona: 44.5 years44.5PontevedraPontevedra: 44.5 years44.5Alcoi/AlcoyAlcoi/Alcoy: 44.4 years44.4ValènciaValència: 44.3 years44.3BenidormBenidorm: 44.3 years44.3EldaElda: 44.3 years44.3SoriaSoria: 44.2 years44.2Sagunt/SaguntoSagunt/Sagunto: 44.2 years44.2
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2019
years
Change on 2018
1Ferrol49+0.2
2León48.2+0.2
3Gijón48.1+0.2
4Avilés48.1+0.3
5Salamanca48+0.2
6Zamora47.5+0.4
7Valladolid47.5+0.3
8Ourense47.3+0.3
9Torrelavega47.2+0.2
10Santander47.1+0.2
11Ponferrada46.9+0.4
12Bilbao46.9+0.1
13A Coruña46.7+0.1
14Oviedo46.5+0.3
15Palencia46.5+0.2
16Getxo46.4+0.3
17Donostia/San Sebastián46.4+0.1
18Cádiz46.3+0.3
19Barakaldo46+0.1
20Siero46+0.3
21Segovia45.8+0.2
22Vigo45.5+0.3
23Lugo45.5+0.3
24Santiago de Compostela45.4+0.1
25Burgos45.1+0.3
26Orihuela44.9+0.3
27Fuengirola44.9+0.7
28Irun44.8+0.2
29Torrevieja44.7+0.2
30Pamplona/Iruña44.6+0.1
31Zaragoza44.5+0.1
32Granada44.5+0.1
33Barcelona44.5-0
33Pontevedra44.5+0.3
35Alcoi/Alcoy44.4+0.2
36València44.3+0.1
37Benidorm44.3+0.3
37Elda44.3+0.2
39Soria44.2+0.1
40Sagunt/Sagunto44.2+0.2
41Vitoria-Gasteiz44.1+0.2
42Logroño44.1+0.3
43Madrid44.10
44Santa Cruz de Tenerife44+0.3
45Alcorcón43.9+0.2
46Ávila43.8+0.3
47Las Palmas de Gran Canaria43.8+0.3
48Leganés43.7+0.3
49Coslada43.6+0.4
50Huesca43.6+0.1
51Teruel43.6+0.2
52Vilanova i la Geltrú43.4+0.3
53Cornellà de Llobregat43.3+0.1
53Linares43.3+0.3
55Cuenca43.2+0.3
55Sevilla43.2+0.3
57Cerdanyola del Vallès43.2+0.4
58L'Hospitalet de Llobregat43.1-0.1
59Manresa43.1-0.1
60Alacant/Alicante43.1+0.2
61Córdoba43+0.4
62Móstoles43+0.3
63Castelló de la Plana/Castellón de la Plana42.8+0.3
64Cáceres42.8+0.4
64Sant Boi de Llobregat42.8+0.2
66El Prat de Llobregat42.7+0.2
67Talavera de la Reina42.7+0.3
68Santa Coloma de Gramenet42.6+0.1
69San Cristóbal de La Laguna42.6+0.3
70Badalona42.6+0.1
70Torremolinos42.6+0.2
72Jaén42.6+0.3
73Huelva42.5+0.3
74Ciudad Real42.5+0.4
75Alcalá de Henares42.5+0.3
75Gandia42.5+0.2
77San Bartolomé de Tirajana42.4+0.3
78Lleida42.4+0.1
79Sabadell42.4+0.1
80Granollers42.4+0.2
81Getafe42.2+0.2
81Tarragona42.2+0.1
83Guadalajara42.1+0.2
83Málaga42.1+0.3
85Mollet del Vallès41.9+0.3
86Mataró41.9+0.2
87San Fernando41.8+0.4
88Albacete41.8+0.3
89Reus41.7+0.2
90Elx/Elche41.7+0.3
91Badajoz41.5+0.4
92Toledo41.5+0.3
93Jerez de la Frontera41.4+0.4
94Vila-real41.4+0.3
95Telde41.4+0.4
96Palma41.3+0.2
97Mérida41.2+0.4
97Terrassa41.2+0.2
99Pozuelo de Alarcón41.2+0.4
100Vélez-Málaga41.2+0.3
100Viladecans41.2+0.3
102Cartagena41.2+0.3
103Benalmádena41.2+0.1
104La Línea de la Concepción41.1+0.2
105Aranjuez41+0.3
106Calvià41n/a
107El Puerto de Santa María41+0.4
108Almería41+0.2
109Estepona41+0.4
110Castelldefels40.9+0.3
111Rubí40.8+0.2
112Torrent40.8+0.3
113Utrera40.8+0.3
114Alcobendas40.7+0.3
115Sanlúcar de Barrameda40.7+0.4
116Marbella40.7+0.3
117Murcia40.6+0.2
118Collado Villalba40.6+0.4
119Motril40.6+0.3
120Algeciras40.5+0.3
121Majadahonda40.5+0.5
122Girona40.4+0.1
123Fuenlabrada40.4+0.5
124Sant Vicent del Raspeig/San Vicente del Raspeig40.2+0.3
125Torrejón de Ardoz40+0.4
126Lorca39.9+0.2
127Mijas39.9+0.3
128San Sebastián de los Reyes39.9+0.3
129Arona39.7+0.4
130Colmenar Viejo39.7n/a
131Alcalá de Guadaíra39.6+0.5
131Chiclana de la Frontera39.6+0.4
133Paterna39.5+0.3
134Sant Cugat del Vallès39.2+0.3
135Dos Hermanas39.2+0.4
135Las Rozas de Madrid39.2+0.5
137Molina de Segura38.9+0.3
138Arganda del Rey38.9+0.3
139Pinto38.8+0.3
139Santa Lucía de Tirajana38.8+0.4
141Granadilla de Abona38.6n/a
142Arrecife38.6+0.3
143Boadilla del Monte37.5+0.3
144Parla37.4+0.3
145Ceuta37.4+0.3
146Valdemoro37.2+0.5
147Roquetas de Mar36.9+0.3
148Rivas-Vaciamadrid36.8+0.4
149El Ejido36.7+0.2
150Melilla35.6+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. 5 municipalities with data in other periods have no value for 2019 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 years in 2019, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 35.6 years in 2019.

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

Average age: other rankings

Municipalities of Spain: more rankings