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.

Keep it in a collection in your library.
Highest3,334,730Madrid
Median5188131 municipalities
Spain47,450,795History

Top 40 municipalities, 2020

Madrid: 3,334,730 personsMadrid3,334,730Barcelona: 1,664,182 personsBarcelona1,664,182València: 800,215 personsValència800,215Sevilla: 691,395 personsSevilla691,395Zaragoza: 681,877 personsZaragoza681,877Málaga: 578,460 personsMálaga578,460Murcia: 459,403 personsMurcia459,403Palma: 422,587 personsPalma422,587Las Palmas de Gran Canaria: 381,223 personsLas Palmas de Gran Canaria381,223Bilbao: 350,184 personsBilbao350,184Alacant/Alicante: 337,482 personsAlacant/Alicante337,482Córdoba: 326,039 personsCórdoba326,039Valladolid: 299,265 personsValladolid299,265Vigo: 296,692 personsVigo296,692Gijón: 271,717 personsGijón271,717L'Hospitalet de Llobregat: 269,382 personsL'Hospitalet de Llobregat269,382Vitoria-Gasteiz: 253,996 personsVitoria-Gasteiz253,996A Coruña: 247,604 personsA Coruña247,604Elx/Elche: 234,765 personsElx/Elche234,765Granada: 233,648 personsGranada233,648Terrassa: 223,627 personsTerrassa223,627Badalona: 223,166 personsBadalona223,166Oviedo: 219,910 personsOviedo219,910Sabadell: 216,520 personsSabadell216,520Cartagena: 216,108 personsCartagena216,108Jerez de la Frontera: 213,105 personsJerez de la Frontera213,105Móstoles: 210,309 personsMóstoles210,309Santa Cruz de Tenerife: 209,194 personsSanta Cruz de Tenerife209,194Pamplona/Iruña: 203,944 personsPamplona/Iruña203,944Almería: 201,322 personsAlmería201,322Alcalá de Henares: 197,562 personsAlcalá de Henares197,562Fuenlabrada: 194,514 personsFuenlabrada194,514Leganés: 191,114 personsLeganés191,114Donostia/San Sebastián: 188,240 personsDonostia/San Sebastián188,240Getafe: 185,180 personsGetafe185,180Burgos: 176,418 personsBurgos176,418Albacete: 174,336 personsAlbacete174,336Castelló de la Plana/Castellón de la Plana: 174,264 personsCastelló de la Plana/Castellón de…174,264Santander: 173,375 personsSantander173,375Alcorcón: 172,384 personsAlcorcón172,384Madrid: 3,334,730 personsMadrid3,334,730Barcelona: 1,664,182 personsBarcelona1,664,182València: 800,215 personsValència800,215Sevilla: 691,395 personsSevilla691,395Zaragoza: 681,877 personsZaragoza681,877Málaga: 578,460 personsMálaga578,460Murcia: 459,403 personsMurcia459,403Palma: 422,587 personsPalma422,587Las Palmas de Gran Canaria: 381,223 personsLas Palmas de Gran Canaria381,223Bilbao: 350,184 personsBilbao350,184Alacant/Alicante: 337,482 personsAlacant/Alicante337,482Córdoba: 326,039 personsCórdoba326,039Valladolid: 299,265 personsValladolid299,265Vigo: 296,692 personsVigo296,692Gijón: 271,717 personsGijón271,717L'Hospitalet de Llobregat: 269,382 personsL'Hospitalet de Llobregat269,382Vitoria-Gasteiz: 253,996 personsVitoria-Gasteiz253,996A Coruña: 247,604 personsA Coruña247,604Elx/Elche: 234,765 personsElx/Elche234,765Granada: 233,648 personsGranada233,648Terrassa: 223,627 personsTerrassa223,627Badalona: 223,166 personsBadalona223,166Oviedo: 219,910 personsOviedo219,910Sabadell: 216,520 personsSabadell216,520Cartagena: 216,108 personsCartagena216,108Jerez de la Frontera: 213,105 personsJerez de la Frontera213,105Móstoles: 210,309 personsMóstoles210,309Santa Cruz de Tenerife: 209,194 personsSanta Cruz de Tenerife209,194Pamplona/Iruña: 203,944 personsPamplona/Iruña203,944Almería: 201,322 personsAlmería201,322Alcalá de Henares: 197,562 personsAlcalá de Henares197,562Fuenlabrada: 194,514 personsFuenlabrada194,514Leganés: 191,114 personsLeganés191,114Donostia/San Sebastián: 188,240 personsDonostia/San Sebastián188,240Getafe: 185,180 personsGetafe185,180Burgos: 176,418 personsBurgos176,418Albacete: 174,336 personsAlbacete174,336Castelló de la Plana/Castellón de la Plana: 174,264 personsCastelló de la Plana/Castellón de la Plana174,264Santander: 173,375 personsSantander173,375Alcorcón: 172,384 personsAlcorcón172,384
persons. Source: INE, Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). Retrieved 2026-10-11.

Full ranking

RankMunicipalities2020
persons
Change on 2019
1Madrid3,334,730+2.1%
2Barcelona1,664,182+1.7%
3València800,215+0.7%
4Sevilla691,395+0.4%
5Zaragoza681,877+1%
6Málaga578,460+0.7%
7Murcia459,403+1.4%
8Palma422,587+1.6%
9Las Palmas de Gran Canaria381,223+0.3%
10Bilbao350,184+1%
11Alacant/Alicante337,482+0.8%
12Córdoba326,039+0.1%
13Valladolid299,265+0.3%
14Vigo296,692+0.4%
15Gijón271,717-0%
16L'Hospitalet de Llobregat269,382+1.7%
17Vitoria-Gasteiz253,996+0.9%
18A Coruña247,604+0.8%
19Elx/Elche234,765+1%
20Granada233,648+0.5%
21Terrassa223,627+1.4%
22Badalona223,166+1.2%
23Oviedo219,910+0.1%
24Sabadell216,520+1.3%
25Cartagena216,108+0.6%
26Jerez de la Frontera213,105+0.2%
27Móstoles210,309+0.5%
28Santa Cruz de Tenerife209,194+0.9%
29Pamplona/Iruña203,944+1.1%
30Almería201,322+1.4%
31Alcalá de Henares197,562+1%
32Fuenlabrada194,514+0.4%
33Leganés191,114+0.7%
34Donostia/San Sebastián188,240+0.4%
35Getafe185,180+1%
36Burgos176,418+0.3%
37Albacete174,336+0.6%
38Castelló de la Plana/Castellón de la Plana174,264+1.5%
39Santander173,375+0.5%
40Alcorcón172,384+1.1%
41San Cristóbal de La Laguna158,911+0.9%
42Logroño152,485+0.9%
43Badajoz150,984+0.2%
44Marbella147,633+3%
45Salamanca144,825+0.4%
46Huelva143,837+0.1%
47Lleida140,403+1%
48Tarragona136,496+1.5%
49Dos Hermanas135,050+0.8%
50Parla133,482+2.6%
51Torrejón de Ardoz132,853+1.1%
52Mataró129,661+1.1%
53León124,028-0.2%
54Algeciras123,078+0.9%
55Santa Coloma de Gramenet120,443+1%
56Alcobendas118,417+1.2%
57Cádiz115,439-0.5%
58Jaén112,757-0.2%
59Reus106,168+1.7%
60Ourense105,643+0.4%
61Girona103,369+1.5%
62Telde102,791+0.1%
63Barakaldo101,486+0.6%
64Lugo98,519+0.2%
65Roquetas de Mar98,433+1.7%
66Santiago de Compostela97,848+0.6%
67Cáceres96,255+0.1%
68Las Rozas de Madrid96,113+0.3%
69Lorca95,515+1.2%
70San Fernando95,0010%
71Sant Cugat del Vallès92,977+2.2%
72San Sebastián de los Reyes91,224+2.2%
73Rivas-Vaciamadrid90,973+3.2%
74Cornellà de Llobregat89,936+1.5%
75El Puerto de Santa María88,703+0.3%
76Guadalajara87,484+1.9%
77Pozuelo de Alarcón87,165+0.9%
78Melilla87,076+0.7%
79Toledo85,811+1.1%
80Mijas85,397+3.2%
81Chiclana de la Frontera85,150+0.8%
82Torrevieja84,667+1.6%
83Sant Boi de Llobregat84,500+1.1%
84Ceuta84,202-0.7%
85Torrent83,962+2.1%
86El Ejido83,758+0.2%
87Talavera de la Reina83,663+0.3%
88Pontevedra83,260+0.3%
89Fuengirola82,837+3.1%
90Arona82,777+1.9%
91Vélez-Málaga82,365+0.9%
92Coslada81,391-0.3%
93Rubí78,591+1.5%
94Orihuela78,505+1.4%
95Manresa78,245+0.7%
96Palencia78,144-0.3%
97Avilés77,791-0.5%
98Getxo77,770-0.2%
99Valdemoro77,270+1.7%
100Gandia75,798+1.7%
101Alcalá de Guadaíra75,533+0.3%
102Ciudad Real75,504+1%
103Santa Lucía de Tirajana74,602+1.7%
104Molina de Segura73,095+1.7%
105Majadahonda72,155+0.5%
106Paterna71,035+1.2%
107Benidorm70,450+2.5%
108Estepona70,228+2.8%
109Sanlúcar de Barrameda69,205+0.8%
110Torremolinos69,166+0.7%
111Benalmádena69,144+1.5%
112Vilanova i la Geltrú67,733+1%
113Castelldefels67,460+0.7%
114Viladecans67,197+0.9%
115Sagunt/Sagunto67,173+1.6%
116Ferrol65,560-0.8%
117El Prat de Llobregat65,385+1.2%
118Arrecife64,645+2.6%
119Ponferrada64,509-0.3%
120Collado Villalba64,378+1.1%
121La Línea de la Concepción63,630+0.8%
122Irun62,910+0.8%
123Granollers62,419+1.9%
124Zamora60,988-0.7%
125Aranjuez60,332+1.2%
126Mérida59,548+0.4%
127Alcoi/Alcoy59,354+0.6%
128Sant Vicent del Raspeig/San Vicente del Raspeig58,978+1%
129Motril58,460+0.8%
130Ávila58,369+1.1%
131Cerdanyola del Vallès57,855+0.8%
132Linares57,353-0.1%
133Boadilla del Monte56,734+4%
134Arganda del Rey56,678+2.3%
135Cuenca54,621-0.1%
136Huesca53,956+1.6%
137San Bartolomé de Tirajana53,397-0.1%
138Pinto53,325+1.5%
139Elda52,813+0.4%
140Segovia52,057+0.7%
141Colmenar Viejo51,938+2.3%
142Calvià51,710+2.3%
143Mollet del Vallès51,600+0.5%
144Torrelavega51,597+0.2%
145Siero51,509-0.3%
146Vila-real51,293+0.8%
147Granadilla de Abona51,233+2.2%
148Eivissa51,128+2.7%
149Utrera50,962+0.5%
150Adeje49,030+2.4%
151Rincón de la Victoria48,768+3.4%
152Tres Cantos48,326+1.3%
153Vic47,630+3.1%
154Figueres47,235+1.2%
155Esplugues de Llobregat47,150+1%
156Gavà47,057+0.6%
157Puertollano46,607-0.9%
158Mairena del Aljarafe46,555+1%
159Santurtzi46,069+0.5%
160Portugalete45,746-0%
161Sant Feliu de Llobregat45,467+1.4%
162Alzira44,938+1.3%
163Manacor44,527+1.6%
164Mislata44,320+1.4%
165Dénia42,827+1.6%
166Lucena42,733+0.3%
167Alcantarilla42,345+0.7%
168La Orotava42,187+0.4%
169Puerto del Rosario41,808+2.6%
170Puerto Real41,700+0.2%
171Antequera41,318+0.2%
172Alhaurín de la Torre41,170+2%
173Basauri40,847+0.6%
174Igualada40,742+1.9%
175Vilafranca del Penedès40,154+1%
176Blanes39,914+2.3%
177Écija39,893+0.1%
178Plasencia39,860-0.1%
179Soria39,821+1.1%
180San Fernando de Henares39,566+0.3%
181Errenteria39,540+0.2%
182Santa Eulària des Riu39,358+3.5%
183Langreo39,183-0.6%
184Ripollet39,179+1.3%
185Lloret de Mar39,089+1.9%
186La Rinconada39,062+1.1%
187Narón39,056-0.1%
188Burjassot38,632+1.6%
189Los Palacios y Villafranca38,548+0.5%
190El Vendrell38,373+2%
191Arucas38,334+0.5%
192Llucmajor37,752+2.3%
193Marratxí37,724+1.4%
194Vilagarcía de Arousa37,565+0.3%
195Mieres37,537-1.1%
196Sant Adrià de Besòs37,447+0.9%
197Don Benito37,284+0.4%
198Tudela37,042+2.2%
199Montcada i Reixac36,803+1.6%
200Los Realejos36,727+0.9%
201Andújar36,615-0.5%
202Oleiros36,534+1.3%
203Torre-Pacheco36,464+2.2%
204Teruel36,240+1%
205Tomelloso36,168+0.8%
206Olot35,926+2%
207Ontinyent35,761+1.2%
208Miranda de Ebro35,760+0.7%
209Águilas35,722+1.2%
210Azuqueca de Henares35,407+1.1%
211Cieza35,283+0.8%
212la Vila Joiosa/Villajoyosa35,199+1.5%
213Borriana/Burriana35,052+1.1%
214Yecla34,834+1.2%
215Cambrils34,734+2.5%
216Galapagar34,497+2.2%
217Úbeda34,329-0%
218Sant Joan Despí34,267+0.4%
219Petrer34,241-0.1%
220Villena34,155+0.6%
221Almendralejo33,855+1.1%
222Ronda33,730-0.4%
223Inca33,679+1.1%
224Tortosa33,439+0.2%
225Barberà del Vallès33,334+0.7%
226Santa Pola33,303+3.1%
227Aranda de Duero33,187+1%
228San Javier33,129+2%
229Arroyomolinos32,935+4.9%
230Mazarrón32,839+2%
231Arteixo32,738+1.5%
232Totana32,529+1.6%
233Castro-Urdiales32,270+0.6%
234Aldaia32,204+1.1%
235Salt32,138+2.5%
236Ames32,104+1%
237Leioa32,013+0.7%
238Agüimes31,914+0.9%
239Ingenio31,694+1.2%
240la Vall d'Uixó31,681+0.1%
241Níjar31,666+3.3%
242San Roque31,571+1.1%
243Carballo31,429+0.3%
244Manises31,240+1%
245Sant Pere de Ribes31,111+1.3%
246Coria del Río30,908+0.4%
247Arcos de la Frontera30,818+0.4%
248Alcázar de San Juan30,766+0.6%
249Culleredo30,685+0.9%
250Ciutadella de Menorca30,588+2.5%

Showing the top 250 of 8131. The Excel download has every row.

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

The publisher is the author. Invokely is named only as the place the figures were read, where a style asks for it.

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  - 
Embed this chart

Paste this code into a web page or a blog post. The chart shows the latest figures as they are published, with the source and a link back to this page.

Sites that read oEmbed links, such as WordPress, can show the chart when you paste the link to this page.

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

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

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 of Spain: more rankings