Municipalities of Spain by average age

Ferrol had the highest average age of 147 municipalities in 2017, at 48.5 years. Melilla had the lowest, at 35.2 years. The median was 42 years and the figure for Spain was 43 years. Source: the Instituto Nacional de Estadística.

Highest48.5Ferrol
Lowest35.2Melilla
Median42147 municipalities
Spain43History

Top 40 municipalities, 2017

CSVChart (SVG)

FerrolFerrol: 48.5 years48.5LeónLeón: 47.8 years47.8GijónGijón: 47.6 years47.6SalamancaSalamanca: 47.6 years47.6AvilésAvilés: 47.4 years47.4ValladolidValladolid: 46.9 years46.9OurenseOurense: 46.7 years46.7SantanderSantander: 46.7 years46.7ZamoraZamora: 46.7 years46.7BilbaoBilbao: 46.7 years46.7TorrelavegaTorrelavega: 46.6 years46.6A CoruñaA Coruña: 46.3 years46.3PonferradaPonferrada: 46.2 years46.2Donostia/San SebastiánDonostia/San Sebastián: 46 years46PalenciaPalencia: 46 years46OviedoOviedo: 45.9 years45.9GetxoGetxo: 45.8 years45.8BarakaldoBarakaldo: 45.8 years45.8CádizCádiz: 45.6 years45.6SieroSiero: 45.5 years45.5SegoviaSegovia: 45.4 years45.4LugoLugo: 45 years45VigoVigo: 45 years45Santiago de CompostelaSantiago de Compostela: 45 years45BurgosBurgos: 44.5 years44.5BarcelonaBarcelona: 44.5 years44.5Pamplona/IruñaPamplona/Iruña: 44.4 years44.4FuengirolaFuengirola: 44.4 years44.4OrihuelaOrihuela: 44.4 years44.4IrunIrun: 44.4 years44.4ZaragozaZaragoza: 44.2 years44.2GranadaGranada: 44.1 years44.1TorreviejaTorrevieja: 44.1 years44.1Alcoi/AlcoyAlcoi/Alcoy: 44 years44MadridMadrid: 44 years44ValènciaValència: 44 years44SoriaSoria: 44 years44PontevedraPontevedra: 43.9 years43.9Sagunt/SaguntoSagunt/Sagunto: 43.8 years43.8Vitoria-GasteizVitoria-Gasteiz: 43.8 years43.8
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2017
years
Change on 2016
1Ferrol48.5+0.3
2León47.8+0.2
3Gijón47.6+0.3
4Salamanca47.6+0.3
5Avilés47.4+0.3
6Valladolid46.9+0.4
7Ourense46.7+0.3
8Santander46.7+0.3
8Zamora46.7+0.4
10Bilbao46.7+0.2
11Torrelavega46.6+0.4
12A Coruña46.3+0.2
13Ponferrada46.2+0.5
14Donostia/San Sebastián46+0.2
15Palencia46+0.3
16Oviedo45.9+0.3
17Getxo45.8+0.3
18Barakaldo45.8+0.2
19Cádiz45.6+0.3
20Siero45.5+0.4
21Segovia45.4+0.4
22Lugo45+0.3
22Vigo45+0.3
24Santiago de Compostela45+0.2
25Burgos44.5+0.3
26Barcelona44.5-0.1
27Pamplona/Iruña44.4+0.1
28Fuengirola44.4+0.2
29Orihuela44.4-0.3
30Irun44.4+0.3
31Zaragoza44.2+0.2
32Granada44.1+0.3
33Torrevieja44.1+0.5
34Alcoi/Alcoy44+0.2
34Madrid44+0.1
34València44+0.3
37Soria44+0.3
38Pontevedra43.9+0.3
39Sagunt/Sagunto43.8+0.1
40Vitoria-Gasteiz43.8+0.2
41Elda43.7+0.2
42Benidorm43.7+0.4
43Santa Cruz de Tenerife43.5+0.3
44Logroño43.5+0.4
45Alcorcón43.3+0.3
46Huesca43.2+0.3
46L'Hospitalet de Llobregat43.20
48Leganés43.2+0.4
49Ávila43.2+0.2
50Teruel43.2+0.3
51Manresa43.1+0.2
52Las Palmas de Gran Canaria43.1+0.4
53Cornellà de Llobregat43+0.2
54Vilanova i la Geltrú42.9+0.3
55Sevilla42.7+0.2
56Alacant/Alicante42.7+0.3
57Cuenca42.7+0.4
58Coslada42.6+0.6
59Linares42.5+0.4
60Cerdanyola del Vallès42.4+0.3
61Santa Coloma de Gramenet42.4+0.1
62Córdoba42.4+0.3
63Sant Boi de Llobregat42.4+0.3
64Badalona42.3+0.2
65Castelló de la Plana/Castellón de la Plana42.3+0.4
65El Prat de Llobregat42.3+0.2
67Móstoles42.3+0.3
68Sabadell42.1+0.2
69Cáceres42.1+0.4
70Lleida42+0.3
71Talavera de la Reina42+0.5
72San Cristóbal de La Laguna42+0.4
72Torremolinos42+0.2
74Gandia42+0.3
74Granollers42+0.3
76Getafe41.9+0.2
77Tarragona41.9+0.2
78Jaén41.9+0.4
79Huelva41.8+0.3
80Ciudad Real41.8+0.1
80San Bartolomé de Tirajana41.8+0.3
82Alcalá de Henares41.8+0.5
83Guadalajara41.8+0.3
84Málaga41.6+0.3
85Mataró41.5+0.2
86Benalmádena41.5+0.4
87Reus41.3+0.3
88Elx/Elche41.2+0.4
89Mollet del Vallès41.1+0.4
90Albacete41.1+0.4
91Toledo41.1+0.3
92Palma41+0.2
93San Fernando40.9+0.5
94Vila-real40.9+0.3
95Terrassa40.9+0.2
96Badajoz40.8+0.3
97La Línea de la Concepción40.7+0.2
98Cartagena40.7+0.3
99Mérida40.6+0.3
100Jerez de la Frontera40.6+0.4
101Vélez-Málaga40.6+0.3
102Telde40.5+0.4
103Almería40.5+0.3
104Aranjuez40.5+0.3
104Viladecans40.5+0.3
106Pozuelo de Alarcón40.5+0.3
107Rubí40.4+0.3
108Castelldefels40.3+0.3
109Estepona40.3+0.2
110Torrent40.2+0.3
111Murcia40.2+0.3
112Girona40.2+0.2
113Alcobendas40.2+0.2
113El Puerto de Santa María40.2+0.4
115Sanlúcar de Barrameda40.1+0.4
116Marbella40.1+0.2
117Utrera40+0.4
118Motril39.9+0.3
119Algeciras39.9+0.3
120Collado Villalba39.7+0.4
121Majadahonda39.6+0.4
122Lorca39.6+0.1
123Sant Vicent del Raspeig/San Vicente del Raspeig39.5+0.3
124Fuenlabrada39.4+0.5
125Torrejón de Ardoz39.3+0.4
126San Sebastián de los Reyes39.2+0.3
127Arona39.2+0.1
128Mijas38.9-0.1
129Paterna38.9+0.3
130Chiclana de la Frontera38.8+0.4
131Alcalá de Guadaíra38.8+0.4
132Sant Cugat del Vallès38.7+0.2
133Dos Hermanas38.4+0.4
134Las Rozas de Madrid38.3+0.3
135Molina de Segura38.3+0.3
136Pinto38.2n/a
137Arganda del Rey38.2+0.4
138Arrecife38.1+0.3
139Santa Lucía de Tirajana38.1+0.4
140Boadilla del Monte36.9n/a
141Ceuta36.8+0.2
142Parla36.8+0.3
143Roquetas de Mar36.3+0.4
144Valdemoro36.1+0.5
145Rivas-Vaciamadrid36.1+0.4
146El Ejido36+0.4
147Melilla35.2+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 2017 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.5 years in 2017, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 35.2 years in 2017.

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 2017 and are not ranked.

Average age: other rankings

Municipalities of Spain: more rankings