Municipalities of Spain by average age

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

Highest49.9Ferrol
Lowest36.8Melilla
Median43.4155 municipalities
Spain44.2History

Top 40 municipalities, 2023

CSVChart (SVG)

FerrolFerrol: 49.9 years49.9AvilésAvilés: 49.3 years49.3GijónGijón: 49.1 years49.1BasauriBasauri: 48.9 years48.9LeónLeón: 48.9 years48.9ZamoraZamora: 48.8 years48.8SalamancaSalamanca: 48.6 years48.6ValladolidValladolid: 48.3 years48.3PonferradaPonferrada: 48.2 years48.2OurenseOurense: 48.1 years48.1TorrelavegaTorrelavega: 48.1 years48.1SantanderSantander: 47.9 years47.9CádizCádiz: 47.8 years47.8GetxoGetxo: 47.7 years47.7PalenciaPalencia: 47.7 years47.7OviedoOviedo: 47.6 years47.6A CoruñaA Coruña: 47.4 years47.4BilbaoBilbao: 47.4 years47.4SanturtziSanturtzi: 47.3 years47.3SieroSiero: 47.1 years47.1Donostia/San SebastiánDonostia/San Sebastián: 47.1 years47.1VigoVigo: 46.7 years46.7BarakaldoBarakaldo: 46.6 years46.6SegoviaSegovia: 46.6 years46.6LugoLugo: 46.5 years46.5Santiago de CompostelaSantiago de Compostela: 46.3 years46.3FuengirolaFuengirola: 46.1 years46.1BurgosBurgos: 46.1 years46.1PontevedraPontevedra: 45.8 years45.8IrunIrun: 45.8 years45.8PuertollanoPuertollano: 45.7 years45.7BenidormBenidorm: 45.6 years45.6OrihuelaOrihuela: 45.3 years45.3CosladaCoslada: 45.3 years45.3GranadaGranada: 45.2 years45.2Santa Cruz de TenerifeSanta Cruz de Tenerife: 45.2 years45.2Pamplona/IruñaPamplona/Iruña: 45.2 years45.2LogroñoLogroño: 45.2 years45.2ZaragozaZaragoza: 45.1 years45.1AlcorcónAlcorcón: 45.1 years45.1
years. Source: INE. Retrieved 2026-10-07.

Full ranking

RankMunicipalities2023
years
Change on 2022
1Ferrol49.9+0.1
2Avilés49.3+0.1
3Gijón49.1+0.1
4Basauri48.90
5León48.90
6Zamora48.8+0.2
7Salamanca48.6-0.1
8Valladolid48.3+0.1
9Ponferrada48.2+0.2
10Ourense48.1+0.1
11Torrelavega48.1+0.1
12Santander47.90
13Cádiz47.8+0.4
14Getxo47.7+0.3
15Palencia47.7+0.1
16Oviedo47.60
17A Coruña47.4-0
18Bilbao47.4-0
19Santurtzi47.30
20Siero47.1+0.2
21Donostia/San Sebastián47.1+0.1
22Vigo46.7+0.2
23Barakaldo46.60
24Segovia46.6+0.1
25Lugo46.5+0.1
26Santiago de Compostela46.30
27Fuengirola46.10
28Burgos46.1+0.1
29Pontevedra45.8+0.3
30Irun45.8+0.1
31Puertollano45.7+0.2
32Benidorm45.6-0
33Orihuela45.3-0.1
34Coslada45.3+0.3
35Granada45.2+0.1
35Santa Cruz de Tenerife45.2+0.2
37Pamplona/Iruña45.20
38Logroño45.2+0.2
39Zaragoza45.10
40Alcorcón45.1+0.2
41Las Palmas de Gran Canaria45.1+0.3
41Torrevieja45.1-0.4
41Vitoria-Gasteiz45.1+0.2
44Alcoi/Alcoy45.10
45Elda45-0.1
46Leganés44.9+0.1
47València44.9-0.1
48Ávila44.8+0.2
49Linares44.8+0.4
49Soria44.8-0.1
51Barcelona44.6-0.2
52Vilanova i la Geltrú44.5+0.2
53Sagunt/Sagunto44.5-0.1
54Cerdanyola del Vallès44.4+0.2
55San Bartolomé de Tirajana44.4+0.3
56Cuenca44.4+0.2
57Madrid44.3-0.1
58Móstoles44.3+0.3
59Huesca44.20
60Córdoba44.2+0.2
61Teruel44.10
62Cáceres44.1+0.2
63San Cristóbal de La Laguna44+0.2
64Sevilla44+0.1
65Cornellà de Llobregat44+0.1
66Jaén43.8+0.3
67El Prat de Llobregat43.8+0.2
68Castelló de la Plana/Castellón de la Plana43.70
69Alacant/Alicante43.7-0.1
70Huelva43.7+0.2
71Sant Boi de Llobregat43.7+0.2
72Alcalá de Henares43.7+0.1
72Ciudad Real43.7+0.2
72Talavera de la Reina43.7+0.2
75San Fernando43.6+0.4
76Torremolinos43.5+0.1
77Manresa43.4-0
78Gandia43.40
79Granollers43.3+0.1
80Badalona43.3+0.1
81Mollet del Vallès43.3+0.2
82L'Hospitalet de Llobregat43.2-0.2
83Santa Coloma de Gramenet43.20
84Telde43.2+0.4
85Málaga43.1+0.1
86Getafe43.1+0.1
87Tarragona430
88Sabadell43+0.1
89Badajoz43+0.3
90Lleida42.90
91Albacete42.9+0.2
92Jerez de la Frontera42.9+0.3
93Mataró42.8+0.2
94Elx/Elche42.8+0.1
95Guadalajara42.7-0
96Viladecans42.6+0.3
97Toledo42.6+0.2
98El Puerto de Santa María42.6+0.4
99Mérida42.5+0.3
100Vélez-Málaga42.5+0.3
101Calvià42.5+0.2
102Fuenlabrada42.5+0.5
103Benalmádena42.4+0.2
104Pozuelo de Alarcón42.4+0.3
104Vila-real42.4+0.2
106Palma42.4+0.1
107Reus42.3+0.2
108Aranjuez42.2+0.2
108Cartagena42.2+0.2
110Castelldefels42.2+0.2
111La Línea de la Concepción42.2+0.2
111Terrassa42.2+0.2
113Arona42.1+0.3
114Estepona42.1+0.1
115Sanlúcar de Barrameda42.1+0.4
116Marbella42.1+0.1
117Majadahonda42.1+0.4
118Collado Villalba42+0.3
119Utrera42+0.4
120Almería42+0.2
121Alcobendas41.9+0.1
122Rubí41.9+0.2
123Motril41.8+0.3
124Sant Vicent del Raspeig/San Vicente del Raspeig41.7+0.3
125Torrent41.7+0.1
126Algeciras41.6+0.3
127Murcia41.6+0.2
128Torrejón de Ardoz41.3+0.3
129Chiclana de la Frontera41.3+0.4
130Girona41.2-0
131San Sebastián de los Reyes41.1+0.3
132Alcalá de Guadaíra41.1+0.4
133Rincón de la Victoria41.1+0.4
134Eivissa41.1+0.1
135Mijas40.9+0.2
136Las Rozas de Madrid40.7+0.3
137Dos Hermanas40.7+0.4
138Paterna40.7+0.2
139Santa Lucía de Tirajana40.6+0.4
140Colmenar Viejo40.5+0.2
141Lorca40.3+0.1
142Granadilla de Abona40.3+0.3
143Pinto40.2+0.2
144Arrecife40.2+0.3
145Sant Cugat del Vallès40.2+0.3
146Arganda del Rey40.1+0.3
147Molina de Segura40+0.2
148Parla39+0.3
149Valdemoro39+0.4
150Ceuta38.6+0.3
151Boadilla del Monte38.5+0.4
152Roquetas de Mar38.2+0.3
153Rivas-Vaciamadrid38.1+0.4
154El Ejido37.5+0.1
155Melilla36.8+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.9 years in 2023, according to the Instituto Nacional de Estadística.

Which municipality has the lowest average age?

Melilla, with 36.8 years in 2023.

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