Municipalities of Spain by population
Madrid had the highest population of 8132 municipalities in 2024, at 3.42 million. Illán de Vacas had the lowest, at 2. The median was 529 and the figure for Spain was 48.59 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2024
Full ranking
| Rank | Municipalities | 2024 | Change on 2023 |
|---|---|---|---|
| 1 | Madrid | 3,416,771 | +2.5% |
| 2 | Barcelona | 1,702,547 | +2.6% |
| 3 | València | 825,948 | +2.3% |
| 4 | Sevilla | 687,488 | +0.5% |
| 5 | Zaragoza | 686,986 | +0.7% |
| 6 | Málaga | 591,637 | +0.9% |
| 7 | Murcia | 474,617 | +1.2% |
| 8 | Palma | 431,521 | +1.9% |
| 9 | Las Palmas de Gran Canaria | 380,436 | +0.6% |
| 10 | Alacant/Alicante | 358,720 | +2.7% |
| 11 | Bilbao | 348,089 | +0.6% |
| 12 | Córdoba | 322,811 | -0.3% |
| 13 | Valladolid | 300,618 | +1.1% |
| 14 | Vigo | 293,977 | +0.1% |
| 15 | L'Hospitalet de Llobregat | 279,993 | +2% |
| 16 | Gijón | 268,561 | +0.1% |
| 17 | Vitoria-Gasteiz | 257,968 | +0.8% |
| 18 | A Coruña | 249,261 | +0.8% |
| 19 | Elx/Elche | 243,128 | +2% |
| 20 | Granada | 232,717 | +0.9% |
| 21 | Terrassa | 228,708 | +1.5% |
| 22 | Badalona | 227,083 | +0.5% |
| 23 | Sabadell | 222,177 | +1.8% |
| 24 | Oviedo | 220,543 | +1.4% |
| 25 | Cartagena | 219,777 | +0.8% |
| 26 | Móstoles | 214,006 | +1.3% |
| 27 | Jerez de la Frontera | 213,688 | +0.2% |
| 28 | Santa Cruz de Tenerife | 211,359 | +0.9% |
| 29 | Pamplona/Iruña | 207,777 | +1% |
| 30 | Almería | 202,675 | +1% |
| 31 | Alcalá de Henares | 200,702 | +0.8% |
| 32 | Leganés | 194,084 | +1.8% |
| 33 | Fuenlabrada | 190,790 | +1.1% |
| 34 | Getafe | 189,906 | +2.2% |
| 35 | Donostia/San Sebastián | 189,093 | +0.2% |
| 36 | Castelló de la Plana/Castellón de la Plana | 180,379 | +2.3% |
| 37 | Burgos | 175,895 | +0.8% |
| 38 | Albacete | 174,137 | +0.5% |
| 39 | Santander | 174,101 | +0.8% |
| 40 | Alcorcón | 173,625 | +1.1% |
| 41 | San Cristóbal de La Laguna | 160,258 | +0.8% |
| 42 | Marbella | 159,000 | +1.7% |
| 43 | Logroño | 151,164 | +0.4% |
| 44 | Badajoz | 150,570 | +0.3% |
| 45 | Salamanca | 144,866 | +0.6% |
| 46 | Lleida | 144,739 | +1.1% |
| 47 | Huelva | 143,290 | +0.5% |
| 48 | Tarragona | 141,151 | +2.1% |
| 49 | Torrejón de Ardoz | 140,626 | +2.1% |
| 50 | Dos Hermanas | 140,430 | +1% |
| 51 | Parla | 134,833 | +1.4% |
| 52 | Mataró | 131,798 | +1.5% |
| 53 | Algeciras | 124,978 | +1.1% |
| 54 | León | 122,243 | +0.8% |
| 55 | Alcobendas | 121,373 | +1.6% |
| 56 | Santa Coloma de Gramenet | 121,203 | +1.1% |
| 57 | Jaén | 112,074 | +0.2% |
| 58 | Cádiz | 110,914 | -0.8% |
| 59 | Reus | 109,930 | +1.3% |
| 60 | Roquetas de Mar | 109,204 | +2.5% |
| 61 | Girona | 107,032 | +2.6% |
| 62 | Ourense | 104,891 | +0.6% |
| 63 | Telde | 102,867 | +0.4% |
| 64 | Barakaldo | 101,984 | +0.7% |
| 65 | Rivas-Vaciamadrid | 101,949 | +1.7% |
| 66 | Santiago de Compostela | 99,536 | +0.9% |
| 67 | Lugo | 99,482 | +1.3% |
| 68 | Sant Cugat del Vallès | 98,621 | +1.1% |
| 69 | Las Rozas de Madrid | 98,590 | +0.5% |
| 70 | Lorca | 98,334 | -0.1% |
| 71 | Cáceres | 96,441 | +0.2% |
| 72 | San Sebastián de los Reyes | 94,969 | +2.4% |
| 73 | Torrevieja | 94,803 | +6.2% |
| 74 | San Fernando | 93,645 | -0.3% |
| 75 | Mijas | 93,302 | +1.8% |
| 76 | Cornellà de Llobregat | 91,589 | +1.4% |
| 77 | Guadalajara | 90,909 | +2.1% |
| 78 | El Ejido | 90,135 | +0.2% |
| 79 | El Puerto de Santa María | 89,960 | +0.2% |
| 80 | Chiclana de la Frontera | 89,794 | +1.2% |
| 81 | Torrent | 89,401 | +2.4% |
| 82 | Pozuelo de Alarcón | 89,378 | +0.7% |
| 83 | Arona | 86,624 | +1.6% |
| 84 | Toledo | 86,526 | +0.5% |
| 85 | Vélez-Málaga | 85,990 | +0.7% |
| 86 | Fuengirola | 85,859 | +0.3% |
| 87 | Melilla | 85,811 | +0.4% |
| 88 | Sant Boi de Llobregat | 84,831 | +1.1% |
| 89 | Talavera de la Reina | 84,738 | +0.7% |
| 90 | Orihuela | 83,720 | +1.5% |
| 91 | Valdemoro | 83,507 | +2.6% |
| 92 | Ceuta | 83,229 | +0.2% |
| 93 | Pontevedra | 83,077 | +0.7% |
| 94 | Rubí | 81,532 | +1.9% |
| 95 | Coslada | 80,760 | +0.7% |
| 96 | Manresa | 80,201 | +1.7% |
| 97 | Gandia | 80,095 | +2.5% |
| 98 | Estepona | 78,413 | +1.9% |
| 99 | Benalmádena | 77,654 | +2.4% |
| 100 | Molina de Segura | 77,493 | +1.9% |
| 101 | Santa Lucía de Tirajana | 77,098 | +1.9% |
| 102 | Alcalá de Guadaíra | 76,922 | +0.5% |
| 103 | Palencia | 76,738 | +0.5% |
| 104 | Getxo | 75,981 | -0.2% |
| 105 | Ciudad Real | 75,909 | +0.8% |
| 106 | Avilés | 75,351 | -0.2% |
| 107 | Paterna | 74,822 | +1.8% |
| 108 | Benidorm | 74,663 | +3.2% |
| 109 | Majadahonda | 73,355 | +1.1% |
| 110 | Sagunt/Sagunto | 71,377 | +1.8% |
| 111 | Torremolinos | 70,933 | +0.7% |
| 112 | Vilanova i la Geltrú | 70,418 | +2.3% |
| 113 | Sanlúcar de Barrameda | 69,876 | +0.1% |
| 114 | Castelldefels | 69,450 | +1.5% |
| 115 | Arrecife | 68,169 | +5.2% |
| 116 | Viladecans | 67,348 | +1% |
| 117 | Collado Villalba | 66,698 | +1.6% |
| 118 | El Prat de Llobregat | 66,184 | +1% |
| 119 | Boadilla del Monte | 65,839 | +1.7% |
| 120 | Ferrol | 64,218 | +0.5% |
| 121 | Granollers | 64,181 | +1.7% |
| 122 | La Línea de la Concepción | 64,177 | +0.6% |
| 123 | Irun | 63,656 | +1.2% |
| 124 | Ponferrada | 62,994 | 0% |
| 125 | Aranjuez | 62,292 | +2.7% |
| 126 | Alcoi/Alcoy | 60,372 | +1.5% |
| 127 | Sant Vicent del Raspeig/San Vicente del Raspeig | 60,269 | +0.6% |
| 128 | Mérida | 59,857 | +0.7% |
| 129 | Motril | 59,632 | +1.2% |
| 130 | Arganda del Rey | 59,513 | +0.9% |
| 131 | Zamora | 59,506 | +0.4% |
| 132 | Ávila | 58,111 | +0.6% |
| 133 | Cerdanyola del Vallès | 58,100 | +0.4% |
| 134 | Granadilla de Abona | 57,143 | +4% |
| 135 | Colmenar Viejo | 57,029 | +3.3% |
| 136 | Pinto | 56,003 | +1.4% |
| 137 | Linares | 55,261 | +0.3% |
| 138 | Huesca | 54,704 | +1% |
| 139 | San Bartolomé de Tirajana | 54,116 | +0.4% |
| 140 | Elda | 53,818 | +1.5% |
| 141 | Eivissa | 53,717 | +3.3% |
| 142 | Calvià | 53,491 | +0.6% |
| 143 | Cuenca | 53,429 | -0.2% |
| 144 | Tres Cantos | 52,932 | +2.9% |
| 145 | Siero | 52,593 | +0.8% |
| 146 | Vila-real | 52,505 | +1.3% |
| 147 | Mollet del Vallès | 52,283 | +0.9% |
| 148 | Rincón de la Victoria | 52,230 | +1.8% |
| 149 | Utrera | 52,173 | +0.9% |
| 150 | Torrelavega | 51,663 | +0.6% |
| 151 | Segovia | 51,525 | +1% |
| 152 | Adeje | 50,549 | +0.8% |
| 153 | Vic | 49,530 | +2.4% |
| 154 | Figueres | 48,875 | +2.1% |
| 155 | Gavà | 48,007 | +0.9% |
| 156 | Mairena del Aljarafe | 47,898 | +0.8% |
| 157 | Manacor | 47,777 | +3% |
| 158 | Esplugues de Llobregat | 47,613 | +1.5% |
| 159 | Alzira | 47,335 | +2% |
| 160 | Dénia | 46,942 | +2.9% |
| 161 | Sant Feliu de Llobregat | 46,554 | +1.1% |
| 162 | Santurtzi | 46,247 | +0.4% |
| 163 | Mislata | 46,153 | +1.1% |
| 164 | Puertollano | 45,195 | +0.2% |
| 165 | Portugalete | 44,766 | +0.3% |
| 166 | Puerto del Rosario | 44,638 | +2.9% |
| 167 | Alhaurín de la Torre | 44,057 | +0.9% |
| 168 | Alcantarilla | 43,547 | +1.2% |
| 169 | Lucena | 43,086 | +0.6% |
| 170 | Lloret de Mar | 42,600 | +2.5% |
| 171 | La Orotava | 42,585 | +0.3% |
| 172 | Blanes | 42,198 | +1.3% |
| 173 | Puerto Real | 42,151 | +0.2% |
| 174 | Santa Eulària des Riu | 41,706 | +1.2% |
| 175 | Antequera | 41,619 | +1.1% |
| 176 | Vilafranca del Penedès | 41,504 | +1.9% |
| 177 | Igualada | 41,466 | +0.7% |
| 178 | Soria | 40,750 | +1.6% |
| 179 | Burjassot | 40,634 | +2.3% |
| 180 | La Rinconada | 40,529 | +0.9% |
| 181 | El Vendrell | 40,440 | +2.1% |
| 182 | Basauri | 40,388 | -0.1% |
| 183 | Marratxí | 40,079 | +1.6% |
| 184 | Torre-Pacheco | 40,074 | +2.7% |
| 185 | Llucmajor | 39,912 | +2.2% |
| 186 | Plasencia | 39,829 | +1.1% |
| 187 | Écija | 39,500 | -0.1% |
| 188 | Ripollet | 39,462 | +0.5% |
| 189 | Errenteria | 39,352 | +0.3% |
| 190 | Narón | 39,285 | +0.6% |
| 191 | San Fernando de Henares | 38,980 | 0% |
| 192 | Arucas | 38,936 | +0.9% |
| 193 | Olot | 38,822 | +2.2% |
| 194 | Los Palacios y Villafranca | 38,757 | +0.2% |
| 195 | Tudela | 38,685 | +2.4% |
| 196 | Santa Pola | 38,556 | +2% |
| 197 | Sant Adrià de Besòs | 38,490 | +1.5% |
| 198 | Oleiros | 38,333 | +1.4% |
| 199 | Langreo | 38,282 | +0.8% |
| 200 | Vilagarcía de Arousa | 37,761 | +0.2% |
| 201 | Don Benito | 37,728 | +0.6% |
| 202 | Los Realejos | 37,522 | +0.8% |
| 203 | Águilas | 37,417 | +1.5% |
| 204 | Arroyomolinos | 37,208 | +3.4% |
| 205 | Montcada i Reixac | 37,153 | +0.7% |
| 206 | Borriana/Burriana | 36,927 | +3.3% |
| 207 | la Vila Joiosa/Villajoyosa | 36,891 | +2.2% |
| 208 | Cambrils | 36,849 | +1% |
| 209 | Teruel | 36,713 | +1.2% |
| 210 | Tomelloso | 36,523 | +0.6% |
| 211 | Ontinyent | 36,430 | +0.7% |
| 212 | Galapagar | 36,184 | +2.6% |
| 213 | Mieres | 36,132 | -0.2% |
| 214 | Miranda de Ebro | 36,018 | +1.1% |
| 215 | Yecla | 35,957 | +1.2% |
| 216 | Azuqueca de Henares | 35,894 | +1.1% |
| 217 | San Javier | 35,872 | +1.8% |
| 218 | Inca | 35,654 | +3.1% |
| 219 | Andújar | 35,619 | -0.5% |
| 220 | Cieza | 35,361 | +0.2% |
| 221 | Tortosa | 35,265 | +1.8% |
| 222 | Mazarrón | 35,099 | +1.8% |
| 223 | Sant Joan Despí | 35,083 | +1.5% |
| 224 | Villena | 34,385 | +0.7% |
| 225 | Almendralejo | 34,284 | +1% |
| 226 | San Roque | 34,190 | +1.6% |
| 227 | Petrer | 34,076 | +0.5% |
| 228 | Arteixo | 34,038 | +1.6% |
| 229 | Aldaia | 34,035 | +2% |
| 230 | Salt | 33,904 | +2% |
| 231 | Aranda de Duero | 33,757 | +0.4% |
| 232 | Úbeda | 33,674 | -0.4% |
| 233 | Totana | 33,663 | +1.6% |
| 234 | Barberà del Vallès | 33,575 | +0.8% |
| 235 | Castro-Urdiales | 33,482 | +0.8% |
| 236 | Ronda | 33,451 | +0.4% |
| 237 | Agüimes | 33,179 | +1.6% |
| 238 | Níjar | 33,076 | +0.7% |
| 239 | Ames | 32,812 | +1% |
| 240 | Ingenio | 32,747 | +1.2% |
| 241 | Leioa | 32,683 | +0.6% |
| 241 | Navalcarnero | 32,683 | +2.2% |
| 243 | Sitges | 32,405 | +1.4% |
| 244 | Manises | 32,273 | +2.2% |
| 245 | Illescas | 32,159 | +2.7% |
| 246 | Sant Pere de Ribes | 32,121 | +1.1% |
| 247 | Ciutadella de Menorca | 31,941 | +1.6% |
| 248 | la Vall d'Uixó | 31,884 | +0.9% |
| 249 | Calafell | 31,828 | +3.9% |
| 250 | Xirivella | 31,745 | +3.2% |
Other periods
About this ranking
Resident population.
More on how it is measured
- Spain and the EU: 1 January, with Spanish figures from the official municipal register (Padrón).
- Norway: Statistics Norway, 1 January.
- Iceland and its municipalities: Statistics Iceland, 1 January.
- United States: Census Bureau population estimates for 1 July.
- United Kingdom regions and local authorities: Office for National Statistics estimates for 30 June.
- Other countries and the World: World Bank mid-year estimates, which count all residents regardless of legal status or citizenship.
- UN World Population Prospects estimates for 1 July cover the years before 1960 and the areas the World Bank does not publish, such as Taiwan.
The World Bank series exists for every country, so use it (through compare) to rank countries on one basis.
Every value in the ranking comes from the same publisher and the same period, so the municipalities are compared on one definition. 4 municipalities with data in other periods have no value for 2024 and are left out rather than filled from another source. Equal values share a rank.
How to cite
Instituto Nacional de Estadística (INE). Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Retrieved 2026-10-07.
Citation styles
APA 7
Instituto Nacional de Estadística. (n.d.). Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005) (Municipalities of Spain by population, 2024) [Data set]. Retrieved October 7, 2026, from https://www.ine.es/jaxiT3/Tabla.htm?t=29005
MLA 9
Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005), Municipalities of Spain by population, 2024. Instituto Nacional de Estadística, https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2024. Accessed 7 Oct. 2026.
Chicago (author-date)
Instituto Nacional de Estadística. n.d. Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). Municipalities of Spain by population, 2024. Dataset. Accessed October 7, 2026. https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Also distributed by Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2024.
Harvard
Instituto Nacional de Estadística (no date) Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005), Municipalities of Spain by population, 2024 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=29005, via Invokely: https://invokely.ai/rankings/population/spain-municipalities?period=2024 (Accessed: 7 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2024,
author = {{Instituto Nacional de Estadística}},
title = {{Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005): Municipalities of Spain by population, 2024}},
howpublished = {Data set},
url = {https://www.ine.es/jaxiT3/Tabla.htm?t=29005},
urldate = {2026-10-07},
note = {Accessed via Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2024. Publisher attribution: Instituto Nacional de Estadística (INE). Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Retrieved 2026-10-07.},
}
RIS
TY - DATA
AU - Instituto Nacional de Estadística
TI - Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005): Municipalities of Spain by population, 2024
PB - Instituto Nacional de Estadística
DB - Invokely
UR - https://www.ine.es/jaxiT3/Tabla.htm?t=29005
L2 - https://invokely.ai/rankings/population/spain-municipalities?period=2024
Y2 - 2026/10/07
N1 - Accessed via Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2024.
N1 - Publisher attribution: Instituto Nacional de Estadística (INE). Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Retrieved 2026-10-07.
ER -
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 population using official data, and cite the source.
rank_places {"indicator":"population","level":"municipality","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=population&level=municipality&within=Spain&limit=10
Questions
Which municipality has the highest population?
Madrid, with 3.42 million in 2024, according to the Instituto Nacional de Estadística.
Which municipality has the lowest population?
Illán de Vacas, with 2 in 2024.
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, Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). Retrieved 2026-10-07. 4 municipalities have no value for 2024 and are not ranked.
Population: other rankings
- Municipalities in Huelva province
- Municipalities in Segovia province
- Municipalities in Santa Cruz de Tenerife province
- Regions of Greece (NUTS 2)
- Cities in Ohio
- NUTS 3 areas of Romania