Municipalities of Spain by population
Madrid had the highest population of 8131 municipalities in 2020, at 3.33 million. Illán de Vacas had the lowest, at 3. The median was 518 and the figure for Spain was 47.45 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2020
Full ranking
| Rank | Municipalities | 2020 | Change on 2019 |
|---|---|---|---|
| 1 | Madrid | 3,334,730 | +2.1% |
| 2 | Barcelona | 1,664,182 | +1.7% |
| 3 | València | 800,215 | +0.7% |
| 4 | Sevilla | 691,395 | +0.4% |
| 5 | Zaragoza | 681,877 | +1% |
| 6 | Málaga | 578,460 | +0.7% |
| 7 | Murcia | 459,403 | +1.4% |
| 8 | Palma | 422,587 | +1.6% |
| 9 | Las Palmas de Gran Canaria | 381,223 | +0.3% |
| 10 | Bilbao | 350,184 | +1% |
| 11 | Alacant/Alicante | 337,482 | +0.8% |
| 12 | Córdoba | 326,039 | +0.1% |
| 13 | Valladolid | 299,265 | +0.3% |
| 14 | Vigo | 296,692 | +0.4% |
| 15 | Gijón | 271,717 | -0% |
| 16 | L'Hospitalet de Llobregat | 269,382 | +1.7% |
| 17 | Vitoria-Gasteiz | 253,996 | +0.9% |
| 18 | A Coruña | 247,604 | +0.8% |
| 19 | Elx/Elche | 234,765 | +1% |
| 20 | Granada | 233,648 | +0.5% |
| 21 | Terrassa | 223,627 | +1.4% |
| 22 | Badalona | 223,166 | +1.2% |
| 23 | Oviedo | 219,910 | +0.1% |
| 24 | Sabadell | 216,520 | +1.3% |
| 25 | Cartagena | 216,108 | +0.6% |
| 26 | Jerez de la Frontera | 213,105 | +0.2% |
| 27 | Móstoles | 210,309 | +0.5% |
| 28 | Santa Cruz de Tenerife | 209,194 | +0.9% |
| 29 | Pamplona/Iruña | 203,944 | +1.1% |
| 30 | Almería | 201,322 | +1.4% |
| 31 | Alcalá de Henares | 197,562 | +1% |
| 32 | Fuenlabrada | 194,514 | +0.4% |
| 33 | Leganés | 191,114 | +0.7% |
| 34 | Donostia/San Sebastián | 188,240 | +0.4% |
| 35 | Getafe | 185,180 | +1% |
| 36 | Burgos | 176,418 | +0.3% |
| 37 | Albacete | 174,336 | +0.6% |
| 38 | Castelló de la Plana/Castellón de la Plana | 174,264 | +1.5% |
| 39 | Santander | 173,375 | +0.5% |
| 40 | Alcorcón | 172,384 | +1.1% |
| 41 | San Cristóbal de La Laguna | 158,911 | +0.9% |
| 42 | Logroño | 152,485 | +0.9% |
| 43 | Badajoz | 150,984 | +0.2% |
| 44 | Marbella | 147,633 | +3% |
| 45 | Salamanca | 144,825 | +0.4% |
| 46 | Huelva | 143,837 | +0.1% |
| 47 | Lleida | 140,403 | +1% |
| 48 | Tarragona | 136,496 | +1.5% |
| 49 | Dos Hermanas | 135,050 | +0.8% |
| 50 | Parla | 133,482 | +2.6% |
| 51 | Torrejón de Ardoz | 132,853 | +1.1% |
| 52 | Mataró | 129,661 | +1.1% |
| 53 | León | 124,028 | -0.2% |
| 54 | Algeciras | 123,078 | +0.9% |
| 55 | Santa Coloma de Gramenet | 120,443 | +1% |
| 56 | Alcobendas | 118,417 | +1.2% |
| 57 | Cádiz | 115,439 | -0.5% |
| 58 | Jaén | 112,757 | -0.2% |
| 59 | Reus | 106,168 | +1.7% |
| 60 | Ourense | 105,643 | +0.4% |
| 61 | Girona | 103,369 | +1.5% |
| 62 | Telde | 102,791 | +0.1% |
| 63 | Barakaldo | 101,486 | +0.6% |
| 64 | Lugo | 98,519 | +0.2% |
| 65 | Roquetas de Mar | 98,433 | +1.7% |
| 66 | Santiago de Compostela | 97,848 | +0.6% |
| 67 | Cáceres | 96,255 | +0.1% |
| 68 | Las Rozas de Madrid | 96,113 | +0.3% |
| 69 | Lorca | 95,515 | +1.2% |
| 70 | San Fernando | 95,001 | 0% |
| 71 | Sant Cugat del Vallès | 92,977 | +2.2% |
| 72 | San Sebastián de los Reyes | 91,224 | +2.2% |
| 73 | Rivas-Vaciamadrid | 90,973 | +3.2% |
| 74 | Cornellà de Llobregat | 89,936 | +1.5% |
| 75 | El Puerto de Santa María | 88,703 | +0.3% |
| 76 | Guadalajara | 87,484 | +1.9% |
| 77 | Pozuelo de Alarcón | 87,165 | +0.9% |
| 78 | Melilla | 87,076 | +0.7% |
| 79 | Toledo | 85,811 | +1.1% |
| 80 | Mijas | 85,397 | +3.2% |
| 81 | Chiclana de la Frontera | 85,150 | +0.8% |
| 82 | Torrevieja | 84,667 | +1.6% |
| 83 | Sant Boi de Llobregat | 84,500 | +1.1% |
| 84 | Ceuta | 84,202 | -0.7% |
| 85 | Torrent | 83,962 | +2.1% |
| 86 | El Ejido | 83,758 | +0.2% |
| 87 | Talavera de la Reina | 83,663 | +0.3% |
| 88 | Pontevedra | 83,260 | +0.3% |
| 89 | Fuengirola | 82,837 | +3.1% |
| 90 | Arona | 82,777 | +1.9% |
| 91 | Vélez-Málaga | 82,365 | +0.9% |
| 92 | Coslada | 81,391 | -0.3% |
| 93 | Rubí | 78,591 | +1.5% |
| 94 | Orihuela | 78,505 | +1.4% |
| 95 | Manresa | 78,245 | +0.7% |
| 96 | Palencia | 78,144 | -0.3% |
| 97 | Avilés | 77,791 | -0.5% |
| 98 | Getxo | 77,770 | -0.2% |
| 99 | Valdemoro | 77,270 | +1.7% |
| 100 | Gandia | 75,798 | +1.7% |
| 101 | Alcalá de Guadaíra | 75,533 | +0.3% |
| 102 | Ciudad Real | 75,504 | +1% |
| 103 | Santa Lucía de Tirajana | 74,602 | +1.7% |
| 104 | Molina de Segura | 73,095 | +1.7% |
| 105 | Majadahonda | 72,155 | +0.5% |
| 106 | Paterna | 71,035 | +1.2% |
| 107 | Benidorm | 70,450 | +2.5% |
| 108 | Estepona | 70,228 | +2.8% |
| 109 | Sanlúcar de Barrameda | 69,205 | +0.8% |
| 110 | Torremolinos | 69,166 | +0.7% |
| 111 | Benalmádena | 69,144 | +1.5% |
| 112 | Vilanova i la Geltrú | 67,733 | +1% |
| 113 | Castelldefels | 67,460 | +0.7% |
| 114 | Viladecans | 67,197 | +0.9% |
| 115 | Sagunt/Sagunto | 67,173 | +1.6% |
| 116 | Ferrol | 65,560 | -0.8% |
| 117 | El Prat de Llobregat | 65,385 | +1.2% |
| 118 | Arrecife | 64,645 | +2.6% |
| 119 | Ponferrada | 64,509 | -0.3% |
| 120 | Collado Villalba | 64,378 | +1.1% |
| 121 | La Línea de la Concepción | 63,630 | +0.8% |
| 122 | Irun | 62,910 | +0.8% |
| 123 | Granollers | 62,419 | +1.9% |
| 124 | Zamora | 60,988 | -0.7% |
| 125 | Aranjuez | 60,332 | +1.2% |
| 126 | Mérida | 59,548 | +0.4% |
| 127 | Alcoi/Alcoy | 59,354 | +0.6% |
| 128 | Sant Vicent del Raspeig/San Vicente del Raspeig | 58,978 | +1% |
| 129 | Motril | 58,460 | +0.8% |
| 130 | Ávila | 58,369 | +1.1% |
| 131 | Cerdanyola del Vallès | 57,855 | +0.8% |
| 132 | Linares | 57,353 | -0.1% |
| 133 | Boadilla del Monte | 56,734 | +4% |
| 134 | Arganda del Rey | 56,678 | +2.3% |
| 135 | Cuenca | 54,621 | -0.1% |
| 136 | Huesca | 53,956 | +1.6% |
| 137 | San Bartolomé de Tirajana | 53,397 | -0.1% |
| 138 | Pinto | 53,325 | +1.5% |
| 139 | Elda | 52,813 | +0.4% |
| 140 | Segovia | 52,057 | +0.7% |
| 141 | Colmenar Viejo | 51,938 | +2.3% |
| 142 | Calvià | 51,710 | +2.3% |
| 143 | Mollet del Vallès | 51,600 | +0.5% |
| 144 | Torrelavega | 51,597 | +0.2% |
| 145 | Siero | 51,509 | -0.3% |
| 146 | Vila-real | 51,293 | +0.8% |
| 147 | Granadilla de Abona | 51,233 | +2.2% |
| 148 | Eivissa | 51,128 | +2.7% |
| 149 | Utrera | 50,962 | +0.5% |
| 150 | Adeje | 49,030 | +2.4% |
| 151 | Rincón de la Victoria | 48,768 | +3.4% |
| 152 | Tres Cantos | 48,326 | +1.3% |
| 153 | Vic | 47,630 | +3.1% |
| 154 | Figueres | 47,235 | +1.2% |
| 155 | Esplugues de Llobregat | 47,150 | +1% |
| 156 | Gavà | 47,057 | +0.6% |
| 157 | Puertollano | 46,607 | -0.9% |
| 158 | Mairena del Aljarafe | 46,555 | +1% |
| 159 | Santurtzi | 46,069 | +0.5% |
| 160 | Portugalete | 45,746 | -0% |
| 161 | Sant Feliu de Llobregat | 45,467 | +1.4% |
| 162 | Alzira | 44,938 | +1.3% |
| 163 | Manacor | 44,527 | +1.6% |
| 164 | Mislata | 44,320 | +1.4% |
| 165 | Dénia | 42,827 | +1.6% |
| 166 | Lucena | 42,733 | +0.3% |
| 167 | Alcantarilla | 42,345 | +0.7% |
| 168 | La Orotava | 42,187 | +0.4% |
| 169 | Puerto del Rosario | 41,808 | +2.6% |
| 170 | Puerto Real | 41,700 | +0.2% |
| 171 | Antequera | 41,318 | +0.2% |
| 172 | Alhaurín de la Torre | 41,170 | +2% |
| 173 | Basauri | 40,847 | +0.6% |
| 174 | Igualada | 40,742 | +1.9% |
| 175 | Vilafranca del Penedès | 40,154 | +1% |
| 176 | Blanes | 39,914 | +2.3% |
| 177 | Écija | 39,893 | +0.1% |
| 178 | Plasencia | 39,860 | -0.1% |
| 179 | Soria | 39,821 | +1.1% |
| 180 | San Fernando de Henares | 39,566 | +0.3% |
| 181 | Errenteria | 39,540 | +0.2% |
| 182 | Santa Eulària des Riu | 39,358 | +3.5% |
| 183 | Langreo | 39,183 | -0.6% |
| 184 | Ripollet | 39,179 | +1.3% |
| 185 | Lloret de Mar | 39,089 | +1.9% |
| 186 | La Rinconada | 39,062 | +1.1% |
| 187 | Narón | 39,056 | -0.1% |
| 188 | Burjassot | 38,632 | +1.6% |
| 189 | Los Palacios y Villafranca | 38,548 | +0.5% |
| 190 | El Vendrell | 38,373 | +2% |
| 191 | Arucas | 38,334 | +0.5% |
| 192 | Llucmajor | 37,752 | +2.3% |
| 193 | Marratxí | 37,724 | +1.4% |
| 194 | Vilagarcía de Arousa | 37,565 | +0.3% |
| 195 | Mieres | 37,537 | -1.1% |
| 196 | Sant Adrià de Besòs | 37,447 | +0.9% |
| 197 | Don Benito | 37,284 | +0.4% |
| 198 | Tudela | 37,042 | +2.2% |
| 199 | Montcada i Reixac | 36,803 | +1.6% |
| 200 | Los Realejos | 36,727 | +0.9% |
| 201 | Andújar | 36,615 | -0.5% |
| 202 | Oleiros | 36,534 | +1.3% |
| 203 | Torre-Pacheco | 36,464 | +2.2% |
| 204 | Teruel | 36,240 | +1% |
| 205 | Tomelloso | 36,168 | +0.8% |
| 206 | Olot | 35,926 | +2% |
| 207 | Ontinyent | 35,761 | +1.2% |
| 208 | Miranda de Ebro | 35,760 | +0.7% |
| 209 | Águilas | 35,722 | +1.2% |
| 210 | Azuqueca de Henares | 35,407 | +1.1% |
| 211 | Cieza | 35,283 | +0.8% |
| 212 | la Vila Joiosa/Villajoyosa | 35,199 | +1.5% |
| 213 | Borriana/Burriana | 35,052 | +1.1% |
| 214 | Yecla | 34,834 | +1.2% |
| 215 | Cambrils | 34,734 | +2.5% |
| 216 | Galapagar | 34,497 | +2.2% |
| 217 | Úbeda | 34,329 | -0% |
| 218 | Sant Joan Despí | 34,267 | +0.4% |
| 219 | Petrer | 34,241 | -0.1% |
| 220 | Villena | 34,155 | +0.6% |
| 221 | Almendralejo | 33,855 | +1.1% |
| 222 | Ronda | 33,730 | -0.4% |
| 223 | Inca | 33,679 | +1.1% |
| 224 | Tortosa | 33,439 | +0.2% |
| 225 | Barberà del Vallès | 33,334 | +0.7% |
| 226 | Santa Pola | 33,303 | +3.1% |
| 227 | Aranda de Duero | 33,187 | +1% |
| 228 | San Javier | 33,129 | +2% |
| 229 | Arroyomolinos | 32,935 | +4.9% |
| 230 | Mazarrón | 32,839 | +2% |
| 231 | Arteixo | 32,738 | +1.5% |
| 232 | Totana | 32,529 | +1.6% |
| 233 | Castro-Urdiales | 32,270 | +0.6% |
| 234 | Aldaia | 32,204 | +1.1% |
| 235 | Salt | 32,138 | +2.5% |
| 236 | Ames | 32,104 | +1% |
| 237 | Leioa | 32,013 | +0.7% |
| 238 | Agüimes | 31,914 | +0.9% |
| 239 | Ingenio | 31,694 | +1.2% |
| 240 | la Vall d'Uixó | 31,681 | +0.1% |
| 241 | Níjar | 31,666 | +3.3% |
| 242 | San Roque | 31,571 | +1.1% |
| 243 | Carballo | 31,429 | +0.3% |
| 244 | Manises | 31,240 | +1% |
| 245 | Sant Pere de Ribes | 31,111 | +1.3% |
| 246 | Coria del Río | 30,908 | +0.4% |
| 247 | Arcos de la Frontera | 30,818 | +0.4% |
| 248 | Alcázar de San Juan | 30,766 | +0.6% |
| 249 | Culleredo | 30,685 | +0.9% |
| 250 | Ciutadella de Menorca | 30,588 | +2.5% |
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. 5 municipalities with data in other periods have no value for 2020 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-11.
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, 2020) [Data set]. Retrieved October 11, 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, 2020. Instituto Nacional de Estadística, https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2020. Accessed 11 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, 2020. Dataset. Accessed October 11, 2026. https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Also distributed by Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2020.
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, 2020 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=29005, via Invokely: https://invokely.ai/rankings/population/spain-municipalities?period=2020 (Accessed: 11 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2020,
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, 2020}},
howpublished = {Data set},
url = {https://www.ine.es/jaxiT3/Tabla.htm?t=29005},
urldate = {2026-10-11},
note = {Accessed via Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2020. 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-11.},
}
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, 2020
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=2020
Y2 - 2026/10/11
N1 - Accessed via Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2020.
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-11.
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.33 million in 2020, according to the Instituto Nacional de Estadística.
Which municipality has the lowest population?
Illán de Vacas, with 3 in 2020.
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-11. 5 municipalities have no value for 2020 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