Municipalities of Spain by population
Madrid had the highest population of 8131 municipalities in 2023, at 3.33 million. Villarroya had the lowest, at 3. The median was 530 and the figure for Spain was 48.02 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2023
Full ranking
| Rank | Municipalities | 2023 | Change on 2022 |
|---|---|---|---|
| 1 | Madrid | 3,332,035 | +1.6% |
| 2 | Barcelona | 1,660,122 | +1.5% |
| 3 | València | 807,693 | +1.9% |
| 4 | Sevilla | 684,025 | +0.3% |
| 5 | Zaragoza | 682,513 | +1.4% |
| 6 | Málaga | 586,384 | +1.3% |
| 7 | Murcia | 469,177 | +1.3% |
| 8 | Palma | 423,350 | +1.8% |
| 9 | Las Palmas de Gran Canaria | 378,027 | -0.2% |
| 10 | Alacant/Alicante | 349,282 | +3.2% |
| 11 | Bilbao | 346,096 | +0.6% |
| 12 | Córdoba | 323,763 | +1.3% |
| 13 | Valladolid | 297,459 | +0.6% |
| 14 | Vigo | 293,652 | +0.4% |
| 15 | L'Hospitalet de Llobregat | 274,455 | +3.4% |
| 16 | Gijón | 268,313 | +0.2% |
| 17 | Vitoria-Gasteiz | 255,886 | +0.9% |
| 18 | A Coruña | 247,376 | +1.1% |
| 19 | Elx/Elche | 238,293 | +1.2% |
| 20 | Granada | 230,595 | +0.8% |
| 21 | Badalona | 225,957 | +1.1% |
| 22 | Terrassa | 225,277 | +0.5% |
| 23 | Sabadell | 218,300 | +1.2% |
| 24 | Cartagena | 218,050 | +0.5% |
| 25 | Oviedo | 217,584 | +1.1% |
| 26 | Jerez de la Frontera | 213,231 | +0.2% |
| 27 | Móstoles | 211,265 | +1.2% |
| 28 | Santa Cruz de Tenerife | 209,395 | +0.3% |
| 29 | Pamplona/Iruña | 205,762 | +1.2% |
| 30 | Almería | 200,578 | +0.7% |
| 31 | Alcalá de Henares | 199,184 | +1.2% |
| 32 | Leganés | 190,665 | +2.1% |
| 33 | Donostia/San Sebastián | 188,743 | +0.5% |
| 34 | Fuenlabrada | 188,736 | -0.6% |
| 35 | Getafe | 185,899 | +1.5% |
| 36 | Castelló de la Plana/Castellón de la Plana | 176,238 | +2.5% |
| 37 | Burgos | 174,451 | +0.6% |
| 38 | Albacete | 173,206 | +0.5% |
| 39 | Santander | 172,726 | +0.6% |
| 40 | Alcorcón | 171,772 | +0.9% |
| 41 | San Cristóbal de La Laguna | 159,034 | +0.8% |
| 42 | Marbella | 156,295 | +3.7% |
| 43 | Logroño | 150,583 | +0.4% |
| 44 | Badajoz | 150,190 | 0% |
| 45 | Salamanca | 143,954 | +1.1% |
| 46 | Lleida | 143,094 | +1.6% |
| 47 | Huelva | 142,532 | +0.5% |
| 48 | Dos Hermanas | 138,981 | +1% |
| 49 | Tarragona | 138,262 | +2.5% |
| 50 | Torrejón de Ardoz | 137,711 | +2.2% |
| 51 | Parla | 133,004 | +1.9% |
| 52 | Mataró | 129,870 | +0.7% |
| 53 | Algeciras | 123,639 | +1% |
| 54 | León | 121,281 | +0.3% |
| 55 | Santa Coloma de Gramenet | 119,862 | +1.6% |
| 56 | Alcobendas | 119,416 | +2% |
| 57 | Jaén | 111,888 | +0.2% |
| 58 | Cádiz | 111,811 | -1.1% |
| 59 | Reus | 108,479 | +1.6% |
| 60 | Roquetas de Mar | 106,510 | +3.5% |
| 61 | Girona | 104,320 | +1.6% |
| 62 | Ourense | 104,250 | +0.5% |
| 63 | Telde | 102,487 | 0% |
| 64 | Barakaldo | 101,229 | +0.7% |
| 65 | Rivas-Vaciamadrid | 100,275 | +3.7% |
| 66 | Santiago de Compostela | 98,687 | +0.5% |
| 67 | Lorca | 98,447 | +1.3% |
| 68 | Lugo | 98,214 | +1% |
| 69 | Las Rozas de Madrid | 98,086 | +2.5% |
| 70 | Sant Cugat del Vallès | 97,530 | +1.9% |
| 71 | Cáceres | 96,215 | +0.8% |
| 72 | San Fernando | 93,927 | -0.2% |
| 73 | San Sebastián de los Reyes | 92,734 | +1.8% |
| 74 | Mijas | 91,691 | +2.4% |
| 75 | Cornellà de Llobregat | 90,303 | +1.4% |
| 76 | El Ejido | 89,975 | +2.8% |
| 77 | El Puerto de Santa María | 89,813 | +0.4% |
| 78 | Torrevieja | 89,290 | +6.9% |
| 79 | Guadalajara | 89,010 | +1.8% |
| 80 | Pozuelo de Alarcón | 88,784 | +1.2% |
| 81 | Chiclana de la Frontera | 88,709 | +1.4% |
| 82 | Torrent | 87,295 | +2.5% |
| 83 | Toledo | 86,070 | +1.2% |
| 84 | Fuengirola | 85,598 | +2.9% |
| 85 | Melilla | 85,491 | +0.4% |
| 86 | Vélez-Málaga | 85,377 | +1.8% |
| 87 | Arona | 85,249 | +2.7% |
| 88 | Talavera de la Reina | 84,137 | +1.1% |
| 89 | Sant Boi de Llobregat | 83,919 | +0.7% |
| 90 | Ceuta | 83,039 | -0.1% |
| 91 | Pontevedra | 82,535 | -0.4% |
| 92 | Orihuela | 82,449 | +2.1% |
| 93 | Valdemoro | 81,394 | +2.9% |
| 94 | Coslada | 80,171 | -0.5% |
| 95 | Rubí | 80,044 | +1.3% |
| 96 | Manresa | 78,877 | +1.8% |
| 97 | Gandia | 78,108 | +2.9% |
| 98 | Estepona | 76,975 | +3.3% |
| 99 | Alcalá de Guadaíra | 76,547 | +0.8% |
| 100 | Palencia | 76,331 | 0% |
| 101 | Getxo | 76,104 | -0.3% |
| 102 | Molina de Segura | 76,074 | +1.8% |
| 103 | Benalmádena | 75,801 | +3.6% |
| 104 | Santa Lucía de Tirajana | 75,677 | +1.5% |
| 105 | Avilés | 75,518 | -0.5% |
| 106 | Ciudad Real | 75,303 | +0.6% |
| 107 | Paterna | 73,488 | +2.2% |
| 108 | Majadahonda | 72,548 | +0.5% |
| 109 | Benidorm | 72,342 | +3.7% |
| 110 | Torremolinos | 70,434 | +2.3% |
| 111 | Sagunt/Sagunto | 70,128 | +3% |
| 112 | Sanlúcar de Barrameda | 69,805 | +0.1% |
| 113 | Vilanova i la Geltrú | 68,854 | +1% |
| 114 | Castelldefels | 68,427 | +1.7% |
| 115 | Viladecans | 66,677 | -0.1% |
| 116 | Collado Villalba | 65,657 | +2.2% |
| 117 | El Prat de Llobregat | 65,516 | +0.7% |
| 118 | Arrecife | 64,826 | +1.7% |
| 119 | Boadilla del Monte | 64,742 | +3.4% |
| 120 | Ferrol | 63,890 | -0.4% |
| 121 | La Línea de la Concepción | 63,773 | +0.8% |
| 122 | Granollers | 63,092 | +1.8% |
| 123 | Ponferrada | 62,963 | -0.1% |
| 124 | Irun | 62,920 | +0.5% |
| 125 | Aranjuez | 60,668 | +1.5% |
| 126 | Sant Vicent del Raspeig/San Vicente del Raspeig | 59,928 | +1.3% |
| 127 | Alcoi/Alcoy | 59,493 | +0.9% |
| 128 | Mérida | 59,461 | +0.2% |
| 129 | Zamora | 59,259 | -0.4% |
| 130 | Arganda del Rey | 58,990 | +2.5% |
| 131 | Motril | 58,939 | +0.2% |
| 132 | Cerdanyola del Vallès | 57,879 | +1% |
| 133 | Ávila | 57,741 | 0% |
| 134 | Pinto | 55,208 | +2.1% |
| 135 | Colmenar Viejo | 55,198 | +3.4% |
| 136 | Linares | 55,096 | -1.1% |
| 137 | Granadilla de Abona | 54,942 | +4.8% |
| 138 | Huesca | 54,136 | +1.6% |
| 139 | San Bartolomé de Tirajana | 53,912 | +1.8% |
| 140 | Cuenca | 53,512 | +0.2% |
| 141 | Calvià | 53,162 | +1.3% |
| 142 | Elda | 53,034 | +1.4% |
| 143 | Siero | 52,194 | +0.8% |
| 144 | Eivissa | 51,996 | +2.5% |
| 145 | Vila-real | 51,852 | +0.9% |
| 146 | Mollet del Vallès | 51,824 | +1% |
| 147 | Utrera | 51,718 | +0.6% |
| 148 | Tres Cantos | 51,453 | +2.5% |
| 149 | Torrelavega | 51,361 | +0.4% |
| 150 | Rincón de la Victoria | 51,300 | +1.4% |
| 151 | Segovia | 51,011 | +0.4% |
| 152 | Adeje | 50,167 | +1.8% |
| 153 | Vic | 48,364 | +1.7% |
| 154 | Figueres | 47,879 | +1.7% |
| 155 | Gavà | 47,593 | +1.3% |
| 156 | Mairena del Aljarafe | 47,541 | +0.8% |
| 157 | Esplugues de Llobregat | 46,921 | +1.1% |
| 158 | Alzira | 46,421 | +2.1% |
| 159 | Manacor | 46,395 | +2.3% |
| 160 | Santurtzi | 46,057 | +0.7% |
| 161 | Sant Feliu de Llobregat | 46,056 | +0.9% |
| 162 | Mislata | 45,644 | +3.1% |
| 163 | Dénia | 45,622 | +3.9% |
| 164 | Puertollano | 45,127 | -0.9% |
| 165 | Portugalete | 44,629 | -0.4% |
| 166 | Alhaurín de la Torre | 43,674 | +2.7% |
| 167 | Puerto del Rosario | 43,390 | +3.3% |
| 168 | Alcantarilla | 43,049 | +1% |
| 169 | Lucena | 42,813 | +0.4% |
| 170 | La Orotava | 42,454 | 0% |
| 171 | Puerto Real | 42,069 | +0.3% |
| 172 | Blanes | 41,653 | +2.6% |
| 173 | Lloret de Mar | 41,559 | +6.7% |
| 174 | Santa Eulària des Riu | 41,228 | +1.7% |
| 175 | Antequera | 41,178 | -0% |
| 176 | Igualada | 41,164 | +1% |
| 177 | Vilafranca del Penedès | 40,714 | +1.6% |
| 178 | Basauri | 40,413 | +0.2% |
| 179 | La Rinconada | 40,162 | +1.7% |
| 180 | Soria | 40,096 | +1.6% |
| 181 | Burjassot | 39,702 | +2.1% |
| 182 | El Vendrell | 39,601 | +1.4% |
| 183 | Écija | 39,530 | -0.5% |
| 184 | Marratxí | 39,440 | +1.4% |
| 185 | Plasencia | 39,412 | +0.4% |
| 186 | Ripollet | 39,269 | +0.6% |
| 187 | Errenteria | 39,231 | +0.5% |
| 188 | Narón | 39,051 | +0.3% |
| 189 | Llucmajor | 39,040 | +0.8% |
| 190 | Torre-Pacheco | 39,037 | +2.4% |
| 191 | San Fernando de Henares | 38,974 | +0.2% |
| 192 | Los Palacios y Villafranca | 38,698 | +0.1% |
| 193 | Arucas | 38,601 | +0.6% |
| 194 | Langreo | 37,978 | -0.7% |
| 195 | Olot | 37,975 | +3.4% |
| 196 | Sant Adrià de Besòs | 37,925 | +2.7% |
| 197 | Santa Pola | 37,816 | +4.5% |
| 198 | Oleiros | 37,809 | +1.4% |
| 199 | Tudela | 37,791 | +1.5% |
| 200 | Vilagarcía de Arousa | 37,689 | 0% |
| 201 | Don Benito | 37,485 | +0.5% |
| 202 | Los Realejos | 37,207 | +0.4% |
| 203 | Montcada i Reixac | 36,891 | +0.6% |
| 204 | Águilas | 36,862 | +1.3% |
| 205 | Cambrils | 36,496 | +2.3% |
| 206 | Tomelloso | 36,304 | +0.8% |
| 207 | Teruel | 36,267 | +1% |
| 208 | Mieres | 36,195 | -1% |
| 209 | Ontinyent | 36,194 | +0.7% |
| 210 | la Vila Joiosa/Villajoyosa | 36,093 | +3.6% |
| 211 | Arroyomolinos | 35,972 | +3.3% |
| 212 | Andújar | 35,788 | -0.7% |
| 213 | Borriana/Burriana | 35,750 | +2.1% |
| 214 | Miranda de Ebro | 35,639 | +1.1% |
| 215 | Yecla | 35,521 | +0.8% |
| 216 | Azuqueca de Henares | 35,498 | +0.9% |
| 217 | Cieza | 35,286 | -0% |
| 218 | Galapagar | 35,273 | +1.3% |
| 219 | San Javier | 35,241 | +2.2% |
| 220 | Tortosa | 34,639 | +2.2% |
| 221 | Inca | 34,577 | +1.4% |
| 222 | Sant Joan Despí | 34,568 | +1.6% |
| 223 | Mazarrón | 34,462 | +2.3% |
| 224 | Villena | 34,144 | +0.5% |
| 225 | Almendralejo | 33,948 | +0.8% |
| 226 | Petrer | 33,914 | -0.2% |
| 227 | Úbeda | 33,810 | -0.7% |
| 228 | San Roque | 33,646 | +1.9% |
| 229 | Aranda de Duero | 33,626 | +1.4% |
| 230 | Arteixo | 33,516 | +1.3% |
| 231 | Aldaia | 33,376 | +2.2% |
| 232 | Ronda | 33,329 | -0.2% |
| 233 | Barberà del Vallès | 33,322 | +0.7% |
| 234 | Salt | 33,242 | +2.2% |
| 235 | Castro-Urdiales | 33,225 | +0.4% |
| 236 | Totana | 33,149 | +2.5% |
| 237 | Níjar | 32,858 | +3.3% |
| 238 | Agüimes | 32,643 | +1.8% |
| 239 | Leioa | 32,491 | +1% |
| 240 | Ames | 32,482 | +1.2% |
| 241 | Ingenio | 32,354 | +1.3% |
| 242 | Navalcarnero | 31,974 | +1.9% |
| 243 | Sitges | 31,954 | +2.3% |
| 244 | Sant Pere de Ribes | 31,786 | +0.3% |
| 245 | la Vall d'Uixó | 31,611 | +0.7% |
| 246 | Manises | 31,573 | +1.3% |
| 247 | Ciutadella de Menorca | 31,443 | +2.1% |
| 248 | Carballo | 31,416 | -0.1% |
| 249 | Illescas | 31,327 | +2.5% |
| 250 | Arcos de la Frontera | 30,953 | 0% |
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 2023 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, 2023) [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, 2023. Instituto Nacional de Estadística, https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2023. 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, 2023. 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=2023.
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, 2023 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=29005, via Invokely: https://invokely.ai/rankings/population/spain-municipalities?period=2023 (Accessed: 11 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2023,
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, 2023}},
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=2023. 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, 2023
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=2023
Y2 - 2026/10/11
N1 - Accessed via Invokely, https://invokely.ai/rankings/population/spain-municipalities?period=2023.
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 2023, according to the Instituto Nacional de Estadística.
Which municipality has the lowest population?
Villarroya, with 3 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, 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 2023 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