Municipalities of Spain by average age

Ferrol had the highest average age of 145 municipalities in 2016, at 48.2 years. Melilla had the lowest, at 35 years. The median was 41.7 years and the figure for Spain was 42.7 years. Source: the Instituto Nacional de Estadística.

Highest48.2Ferrol
Lowest35Melilla
Median41.7145 municipalities
Spain42.7History

Top 40 municipalities, 2016

CSVChart (SVG)

FerrolFerrol: 48.2 years48.2LeónLeón: 47.6 years47.6GijónGijón: 47.3 years47.3SalamancaSalamanca: 47.2 years47.2AvilésAvilés: 47.1 years47.1ValladolidValladolid: 46.5 years46.5BilbaoBilbao: 46.5 years46.5OurenseOurense: 46.5 years46.5SantanderSantander: 46.4 years46.4ZamoraZamora: 46.3 years46.3TorrelavegaTorrelavega: 46.2 years46.2A CoruñaA Coruña: 46.1 years46.1Donostia/San SebastiánDonostia/San Sebastián: 45.8 years45.8OviedoOviedo: 45.7 years45.7PonferradaPonferrada: 45.7 years45.7PalenciaPalencia: 45.6 years45.6BarakaldoBarakaldo: 45.6 years45.6GetxoGetxo: 45.5 years45.5CádizCádiz: 45.3 years45.3SieroSiero: 45.1 years45.1SegoviaSegovia: 45 years45Santiago de CompostelaSantiago de Compostela: 44.8 years44.8VigoVigo: 44.7 years44.7LugoLugo: 44.7 years44.7OrihuelaOrihuela: 44.7 years44.7BarcelonaBarcelona: 44.5 years44.5Pamplona/IruñaPamplona/Iruña: 44.3 years44.3BurgosBurgos: 44.2 years44.2FuengirolaFuengirola: 44.2 years44.2IrunIrun: 44 years44ZaragozaZaragoza: 44 years44MadridMadrid: 43.9 years43.9GranadaGranada: 43.8 years43.8Alcoi/AlcoyAlcoi/Alcoy: 43.8 years43.8ValènciaValència: 43.7 years43.7SoriaSoria: 43.7 years43.7Sagunt/SaguntoSagunt/Sagunto: 43.7 years43.7TorreviejaTorrevieja: 43.6 years43.6Vitoria-GasteizVitoria-Gasteiz: 43.6 years43.6PontevedraPontevedra: 43.6 years43.6
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2016
years
Change on 2015
1Ferrol48.2+0.4
2León47.6+0.3
3Gijón47.3+0.2
4Salamanca47.2+0.3
5Avilés47.1+0.3
6Valladolid46.5+0.4
7Bilbao46.5+0.2
8Ourense46.5+0.3
9Santander46.4+0.3
10Zamora46.3+0.4
11Torrelavega46.2+0.4
12A Coruña46.1+0.2
13Donostia/San Sebastián45.8+0.2
14Oviedo45.7+0.3
14Ponferrada45.7+0.3
16Palencia45.6+0.3
17Barakaldo45.6+0.2
18Getxo45.5+0.3
19Cádiz45.3+0.5
20Siero45.1+0.4
21Segovia45+0.4
22Santiago de Compostela44.8+0.2
23Vigo44.7+0.4
24Lugo44.7+0.2
25Orihuela44.7+0.2
26Barcelona44.5+0.1
27Pamplona/Iruña44.3+0.2
28Burgos44.2+0.3
29Fuengirola44.2+0.4
30Irun44+0.3
31Zaragoza44+0.3
32Madrid43.9+0.1
33Granada43.8+0.2
34Alcoi/Alcoy43.8+0.3
35València43.7+0.2
36Soria43.7+0.3
37Sagunt/Sagunto43.7+0.1
38Torrevieja43.6-0.3
38Vitoria-Gasteiz43.6+0.2
40Pontevedra43.6+0.4
41Elda43.5+0.4
42Benidorm43.3+0.2
43L'Hospitalet de Llobregat43.2+0.1
44Santa Cruz de Tenerife43.2+0.3
45Logroño43.1+0.4
46Alcorcón43+0.4
46Huesca43+0.2
48Ávila42.9+0.4
48Manresa42.9+0.1
50Teruel42.9+0.3
51Cornellà de Llobregat42.9+0.3
52Leganés42.8+0.3
53Las Palmas de Gran Canaria42.7+0.4
54Vilanova i la Geltrú42.6+0.3
55Sevilla42.5+0.3
56Alacant/Alicante42.4+0.3
57Cuenca42.3+0.4
58Santa Coloma de Gramenet42.3+0.2
59Linares42.2+0.5
60Cerdanyola del Vallès42.1+0.4
61Badalona42.1+0.2
62Córdoba42.1+0.3
63Sant Boi de Llobregat42.1+0.3
64El Prat de Llobregat42+0.2
65Coslada42+0.7
66Móstoles42+0.4
66Sabadell42+0.2
68Castelló de la Plana/Castellón de la Plana41.9+0.3
69Torremolinos41.8+0.3
70Cáceres41.7+0.3
71Granollers41.7+0.2
71Lleida41.7+0.3
73Ciudad Real41.7+0.5
73Getafe41.7+0.3
75Gandia41.7+0.4
76San Cristóbal de La Laguna41.6+0.4
76Tarragona41.6+0.3
78Talavera de la Reina41.6+0.5
79San Bartolomé de Tirajana41.5+0.2
80Jaén41.5+0.4
81Guadalajara41.5+0.2
82Huelva41.5+0.4
83Málaga41.3+0.3
84Mataró41.3+0.3
85Alcalá de Henares41.3+0.4
86Benalmádena41.10
87Reus41+0.3
88Elx/Elche40.8+0.3
89Toledo40.8+0.2
90Mollet del Vallès40.8+0.5
91Palma40.8+0.2
92Albacete40.7+0.4
93Terrassa40.7+0.3
94Vila-real40.6+0.3
95Badajoz40.6+0.3
96La Línea de la Concepción40.5+0.2
97San Fernando40.4+0.4
98Cartagena40.4+0.2
99Mérida40.3+0.3
100Vélez-Málaga40.3+0.3
101Jerez de la Frontera40.3+0.4
102Almería40.2+0.3
103Aranjuez40.2+0.3
104Viladecans40.2+0.4
105Rubí40.2+0.3
106Pozuelo de Alarcón40.1+0.4
107Telde40.1+0.4
108Castelldefels40+0.3
108Estepona40+0.3
110Alcobendas40+0.4
110Girona40+0.2
112Murcia39.9+0.3
113Torrent39.9+0.3
114Marbella39.9+0.1
115El Puerto de Santa María39.8+0.4
116Sanlúcar de Barrameda39.7+0.3
117Utrera39.7+0.4
118Motril39.6+0.3
119Algeciras39.6+0.2
120Lorca39.4+0.2
121Collado Villalba39.3+0.4
122Majadahonda39.2+0.4
123Sant Vicent del Raspeig/San Vicente del Raspeig39.2+0.3
124Arona39.1-0.1
125Mijas39-0.3
126Torrejón de Ardoz38.9+0.4
127Fuenlabrada38.9+0.5
128San Sebastián de los Reyes38.9+0.2
129Paterna38.6+0.3
130Sant Cugat del Vallès38.5+0.3
131Chiclana de la Frontera38.4+0.4
132Alcalá de Guadaíra38.3+0.3
133Dos Hermanas38+0.4
134Molina de Segura38+0.3
135Las Rozas de Madrid38+0.4
136Arganda del Rey37.8+0.4
136Arrecife37.8+0.3
138Santa Lucía de Tirajana37.7+0.5
139Ceuta36.6+0.2
140Parla36.4+0.3
141Roquetas de Mar35.9+0.4
142Rivas-Vaciamadrid35.7+0.3
143El Ejido35.6+0.4
143Valdemoro35.6+0.5
145Melilla35+0.1

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. 10 municipalities with data in other periods have no value for 2016 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.2 years in 2016, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 35 years in 2016.

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

Average age: other rankings

Municipalities of Spain: more rankings