Municipalities of Spain by average age

Ferrol had the highest average age of 155 municipalities in 2022, at 49.8 years. Melilla had the lowest, at 36.5 years. The median was 43.4 years and the figure for Spain was 44.1 years. Source: the Instituto Nacional de Estadística.

Highest49.8Ferrol
Lowest36.5Melilla
Median43.4155 municipalities
Spain44.1History

Top 40 municipalities, 2022

CSVChart (SVG)

FerrolFerrol: 49.8 years49.8AvilésAvilés: 49.1 years49.1GijónGijón: 48.9 years48.9BasauriBasauri: 48.9 years48.9LeónLeón: 48.9 years48.9SalamancaSalamanca: 48.6 years48.6ZamoraZamora: 48.6 years48.6ValladolidValladolid: 48.3 years48.3OurenseOurense: 48 years48PonferradaPonferrada: 48 years48TorrelavegaTorrelavega: 48 years48SantanderSantander: 47.9 years47.9OviedoOviedo: 47.6 years47.6PalenciaPalencia: 47.5 years47.5GetxoGetxo: 47.4 years47.4A CoruñaA Coruña: 47.4 years47.4CádizCádiz: 47.4 years47.4BilbaoBilbao: 47.4 years47.4SanturtziSanturtzi: 47.3 years47.3Donostia/San SebastiánDonostia/San Sebastián: 47 years47SieroSiero: 46.9 years46.9BarakaldoBarakaldo: 46.6 years46.6VigoVigo: 46.5 years46.5SegoviaSegovia: 46.4 years46.4LugoLugo: 46.4 years46.4Santiago de CompostelaSantiago de Compostela: 46.3 years46.3FuengirolaFuengirola: 46.1 years46.1BurgosBurgos: 46 years46IrunIrun: 45.7 years45.7BenidormBenidorm: 45.7 years45.7PontevedraPontevedra: 45.5 years45.5TorreviejaTorrevieja: 45.5 years45.5OrihuelaOrihuela: 45.5 years45.5PuertollanoPuertollano: 45.4 years45.4Pamplona/IruñaPamplona/Iruña: 45.2 years45.2GranadaGranada: 45.1 years45.1ZaragozaZaragoza: 45.1 years45.1Alcoi/AlcoyAlcoi/Alcoy: 45.1 years45.1EldaElda: 45 years45CosladaCoslada: 45 years45
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2022
years
Change on 2021
1Ferrol49.8+0.3
2Avilés49.1+0.4
3Gijón48.9+0.3
4Basauri48.9n/a
5León48.9+0.3
6Salamanca48.6+0.3
7Zamora48.6+0.4
8Valladolid48.3+0.3
9Ourense48+0.3
10Ponferrada48+0.4
11Torrelavega48+0.3
12Santander47.9+0.3
13Oviedo47.6+0.4
14Palencia47.5+0.4
15Getxo47.4+0.4
16A Coruña47.4+0.3
17Cádiz47.4+0.4
18Bilbao47.4+0.2
19Santurtzi47.3n/a
20Donostia/San Sebastián47+0.2
21Siero46.9+0.3
22Barakaldo46.6+0.2
23Vigo46.5+0.3
24Segovia46.4+0.4
25Lugo46.4+0.3
26Santiago de Compostela46.3+0.3
27Fuengirola46.1+0.4
28Burgos46+0.4
29Irun45.7+0.4
30Benidorm45.7+0.5
31Pontevedra45.5+0.4
32Torrevieja45.5+0.3
33Orihuela45.5+0.2
34Puertollano45.4n/a
35Pamplona/Iruña45.2+0.2
36Granada45.1+0.4
37Zaragoza45.1+0.3
38Alcoi/Alcoy45.1+0.2
39Elda45+0.3
40Coslada45+0.5
41Logroño45+0.3
41Santa Cruz de Tenerife45+0.3
43València44.9+0.1
43Vitoria-Gasteiz44.9+0.3
45Alcorcón44.9+0.4
46Soria44.8+0.4
47Barcelona44.8+0.2
48Las Palmas de Gran Canaria44.8+0.3
49Leganés44.8+0.4
50Sagunt/Sagunto44.6+0.1
51Ávila44.6+0.4
52Madrid44.5+0.2
53Linares44.4+0.4
54Vilanova i la Geltrú44.3+0.3
55Cerdanyola del Vallès44.3+0.4
56Cuenca44.2+0.4
57Huesca44.2+0.3
58Teruel44.1+0.3
59San Bartolomé de Tirajana44.1+0.6
60Móstoles44.1+0.4
61Córdoba44+0.3
62Cáceres43.9+0.4
63Sevilla43.9+0.2
64Cornellà de Llobregat43.8+0.2
65San Cristóbal de La Laguna43.8+0.4
66Alacant/Alicante43.8+0.3
67Castelló de la Plana/Castellón de la Plana43.7+0.3
68El Prat de Llobregat43.6+0.4
69Jaén43.6+0.3
70Alcalá de Henares43.5+0.4
70Sant Boi de Llobregat43.5+0.4
72Huelva43.5+0.3
73Torremolinos43.5+0.3
74Talavera de la Reina43.5+0.3
75L'Hospitalet de Llobregat43.4+0.1
76Ciudad Real43.4+0.4
76Manresa43.4+0.3
78Gandia43.4+0.3
79Santa Coloma de Gramenet43.2+0.3
80San Fernando43.2+0.5
81Badalona43.2+0.2
82Granollers43.1+0.4
83Mollet del Vallès43.1+0.4
84Málaga43+0.3
85Tarragona43+0.3
86Lleida42.9+0.2
87Getafe42.9+0.2
88Sabadell42.9+0.3
89Telde42.8+0.5
90Guadalajara42.7+0.3
91Albacete42.7+0.4
92Badajoz42.6+0.4
93Elx/Elche42.6+0.3
94Mataró42.6+0.3
95Jerez de la Frontera42.5+0.4
96Toledo42.4+0.4
97Viladecans42.3+0.4
98Calvià42.3+0.3
99Palma42.3+0.3
100Mérida42.2+0.4
101Vélez-Málaga42.2+0.3
102Vila-real42.2+0.3
103Benalmádena42.2+0.3
104Reus42.2+0.2
105Pozuelo de Alarcón42.2+0.3
106El Puerto de Santa María42.1+0.4
107Estepona42+0.4
108Fuenlabrada42+0.6
108Marbella42+0.5
110Aranjuez42+0.4
110Terrassa42+0.3
112Cartagena42+0.2
112Castelldefels42+0.4
114La Línea de la Concepción41.9+0.3
115Arona41.8+0.7
116Almería41.8+0.3
117Collado Villalba41.8+0.4
118Alcobendas41.8+0.4
119Sanlúcar de Barrameda41.7+0.3
120Rubí41.7+0.3
121Utrera41.7+0.3
122Majadahonda41.6+0.4
123Torrent41.5+0.3
124Motril41.5+0.3
125Murcia41.4+0.3
125Sant Vicent del Raspeig/San Vicente del Raspeig41.4+0.4
127Algeciras41.3+0.3
128Girona41.2+0.2
129Torrejón de Ardoz41.1+0.3
130Eivissa40.9+0.4
131Chiclana de la Frontera40.9+0.4
132San Sebastián de los Reyes40.8+0.4
133Alcalá de Guadaíra40.8+0.3
134Mijas40.7+0.3
135Rincón de la Victoria40.7n/a
136Paterna40.5+0.3
137Las Rozas de Madrid40.4+0.4
138Colmenar Viejo40.4+0.3
139Dos Hermanas40.3+0.3
140Lorca40.2+0.1
141Santa Lucía de Tirajana40.2+0.4
142Granadilla de Abona40+0.5
143Pinto40+0.4
144Arrecife39.9+0.5
144Sant Cugat del Vallès39.9+0.2
146Arganda del Rey39.9+0.4
147Molina de Segura39.7+0.3
148Parla38.7+0.4
149Valdemoro38.5+0.5
150Ceuta38.3+0.3
151Boadilla del Monte38.1+0.2
152Roquetas de Mar37.9+0.1
153Rivas-Vaciamadrid37.8+0.3
154El Ejido37.4+0.2
155Melilla36.5+0.4

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. 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.8 years in 2022, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 36.5 years in 2022.

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.

Average age: other rankings

Municipalities of Spain: more rankings