Municipalities of Spain by active companies
Madrid had the highest active companies of 6889 municipalities in 2021, at 314,028. Zarapicos had the lowest, at 4. The median was 47 and the figure for Spain was 3.37 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2021
Full ranking
| Rank | Municipalities | 2021 | Change on 2020 |
|---|---|---|---|
| 1 | Madrid | 314,028 | -0.9% |
| 2 | Barcelona | 183,286 | -1.4% |
| 3 | València | 67,635 | -0.8% |
| 4 | Sevilla | 50,973 | -0.3% |
| 5 | Zaragoza | 45,019 | -2.3% |
| 6 | Málaga | 42,061 | -0.9% |
| 7 | Palma | 36,114 | -3.4% |
| 8 | Murcia | 33,290 | -1.7% |
| 9 | Las Palmas de Gran Canaria | 28,522 | -2.8% |
| 10 | Alacant/Alicante | 26,991 | -1% |
| 11 | Bilbao | 26,110 | -2.8% |
| 12 | Vigo | 22,603 | -1.8% |
| 13 | Córdoba | 21,984 | -0.1% |
| 14 | A Coruña | 19,974 | -2.2% |
| 15 | Granada | 19,374 | -1.8% |
| 16 | Valladolid | 19,170 | -2.3% |
| 17 | Marbella | 19,063 | -0.5% |
| 18 | Gijón | 17,847 | -1.4% |
| 19 | Elx/Elche | 17,704 | -0.3% |
| 20 | Santa Cruz de Tenerife | 16,157 | -2.5% |
| 21 | Oviedo | 15,912 | -1% |
| 22 | Donostia/San Sebastián | 15,640 | -2% |
| 23 | Terrassa | 14,812 | -1.3% |
| 24 | Sabadell | 14,693 | -0.7% |
| 25 | Pamplona/Iruña | 14,570 | +0.8% |
| 26 | L'Hospitalet de Llobregat | 14,082 | -0% |
| 27 | Vitoria-Gasteiz | 13,765 | -1.3% |
| 28 | Badalona | 13,680 | -1.2% |
| 29 | Castelló de la Plana/Castellón de la Plana | 13,343 | -0.3% |
| 30 | Almería | 12,614 | +0.3% |
| 31 | Burgos | 12,574 | -1.6% |
| 32 | Albacete | 12,356 | -0.7% |
| 33 | Santander | 11,845 | -0.5% |
| 34 | Cartagena | 11,451 | -2.3% |
| 35 | Jerez de la Frontera | 11,372 | +0.9% |
| 36 | Pozuelo de Alarcón | 11,214 | -0.7% |
| 37 | Las Rozas de Madrid | 11,185 | -0.2% |
| 38 | Logroño | 11,101 | -1.5% |
| 39 | Alcobendas | 10,749 | -0.9% |
| 40 | Fuenlabrada | 10,744 | -1.3% |
| 41 | Sant Cugat del Vallès | 10,522 | -1% |
| 42 | Lleida | 10,493 | -1.5% |
| 43 | Badajoz | 10,111 | -1.9% |
| 44 | Alcalá de Henares | 10,066 | -0.6% |
| 45 | Salamanca | 9,975 | -2% |
| 46 | Móstoles | 9,892 | -1.3% |
| 47 | Leganés | 9,859 | -1.5% |
| 48 | Getafe | 9,855 | +0.3% |
| 49 | San Cristóbal de La Laguna | 9,827 | -2% |
| 50 | Mataró | 9,671 | -1% |
| 51 | Girona | 9,550 | -1% |
| 52 | Alcorcón | 9,247 | -1.5% |
| 53 | León | 9,234 | -2.3% |
| 54 | Santiago de Compostela | 9,028 | -1.8% |
| 55 | Ourense | 8,806 | -2.3% |
| 56 | Tarragona | 8,500 | -0.7% |
| 57 | Lugo | 8,354 | -1.9% |
| 58 | Huelva | 7,632 | -1.3% |
| 59 | Dos Hermanas | 7,496 | +0.4% |
| 60 | San Sebastián de los Reyes | 7,310 | -1.7% |
| 61 | Mijas | 7,224 | +0.2% |
| 62 | Jaén | 7,188 | -1.1% |
| 63 | Reus | 7,073 | -1% |
| 64 | Cáceres | 6,980 | -2.7% |
| 65 | Majadahonda | 6,900 | -1.2% |
| 66 | Arona | 6,847 | -5.1% |
| 67 | Fuengirola | 6,807 | -3.7% |
| 68 | Rivas-Vaciamadrid | 6,710 | +1% |
| 69 | Torrejón de Ardoz | 6,582 | -0.7% |
| 70 | Pontevedra | 6,493 | -2.6% |
| 71 | Cádiz | 6,205 | 0% |
| 72 | Torrevieja | 6,199 | -1.6% |
| 73 | Boadilla del Monte | 6,107 | +0.2% |
| 74 | Benalmádena | 6,041 | -0.3% |
| 75 | Estepona | 5,995 | -0.1% |
| 76 | Orihuela | 5,986 | -0.7% |
| 77 | Roquetas de Mar | 5,970 | -0.7% |
| 78 | Paterna | 5,958 | -0.2% |
| 79 | Toledo | 5,935 | -0.9% |
| 80 | Lorca | 5,865 | +0.3% |
| 81 | Vélez-Málaga | 5,812 | +0.4% |
| 82 | Algeciras | 5,738 | -0.2% |
| 83 | Eivissa | 5,726 | -2.2% |
| 84 | Castelldefels | 5,692 | -1.2% |
| 85 | Telde | 5,691 | -1.8% |
| 86 | Getxo | 5,690 | -2.2% |
| 87 | Manresa | 5,562 | -0.7% |
| 88 | Santa Coloma de Gramenet | 5,533 | -0.8% |
| 89 | Benidorm | 5,493 | -2% |
| 90 | Cornellà de Llobregat | 5,388 | -0.6% |
| 90 | Torremolinos | 5,388 | -2.6% |
| 92 | San Bartolomé de Tirajana | 5,385 | -5.4% |
| 93 | Parla | 5,321 | -0.3% |
| 94 | Talavera de la Reina | 5,289 | +0.5% |
| 95 | Granollers | 5,277 | -1.4% |
| 96 | Gandia | 5,204 | -1.3% |
| 97 | El Puerto de Santa María | 5,174 | -0.2% |
| 98 | El Ejido | 5,145 | +1.8% |
| 99 | Torrent | 5,143 | +0.3% |
| 100 | Ciudad Real | 5,123 | -0.9% |
| 101 | Calvià | 5,083 | -0.7% |
| 102 | Ponferrada | 5,026 | -4.7% |
| 103 | Melilla | 5,024 | -4% |
| 104 | Adeje | 5,014 | -5% |
| 105 | Rubí | 4,986 | -1% |
| 106 | Chiclana de la Frontera | 4,979 | +2.1% |
| 107 | Molina de Segura | 4,950 | -1.5% |
| 108 | Alcalá de Guadaíra | 4,897 | +0.9% |
| 109 | Palencia | 4,870 | -2.1% |
| 110 | Barakaldo | 4,848 | -1.7% |
| 111 | Coslada | 4,804 | -1.8% |
| 112 | Vilanova i la Geltrú | 4,765 | -0.8% |
| 113 | Dénia | 4,666 | +0.2% |
| 114 | Zamora | 4,629 | -2% |
| 115 | Sant Boi de Llobregat | 4,600 | -2.2% |
| 116 | Irun | 4,409 | -3.9% |
| 117 | Guadalajara | 4,401 | -2.8% |
| 118 | Valdemoro | 4,382 | +0.3% |
| 119 | Arganda del Rey | 4,317 | -1.4% |
| 120 | Arrecife | 4,280 | -4.7% |
| 121 | Cerdanyola del Vallès | 4,206 | -2.3% |
| 122 | Mérida | 4,078 | -2.8% |
| 123 | Avilés | 4,033 | -1.3% |
| 123 | Siero | 4,033 | -0.6% |
| 125 | Collado Villalba | 4,002 | -1.3% |
| 126 | Huesca | 3,945 | -2.3% |
| 127 | Elda | 3,922 | -1.9% |
| 128 | Alcoi/Alcoy | 3,912 | -0.4% |
| 129 | Vic | 3,894 | -1.3% |
| 130 | Viladecans | 3,848 | -2.3% |
| 131 | Ceuta | 3,749 | -2.5% |
| 132 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,661 | -1.6% |
| 133 | Cuenca | 3,657 | -3.3% |
| 134 | Figueres | 3,646 | -1% |
| 135 | Ávila | 3,600 | -2.2% |
| 136 | Tres Cantos | 3,544 | -1.4% |
| 137 | Sagunt/Sagunto | 3,533 | -1.5% |
| 138 | Segovia | 3,528 | -1% |
| 139 | Santa Eulària des Riu | 3,525 | +0.3% |
| 140 | Esplugues de Llobregat | 3,518 | -1.8% |
| 141 | Manacor | 3,495 | -1.4% |
| 142 | Mairena del Aljarafe | 3,494 | -0.7% |
| 143 | Ferrol | 3,484 | -2.5% |
| 144 | San Fernando | 3,477 | +0.8% |
| 145 | Sanlúcar de Barrameda | 3,464 | +0.8% |
| 146 | Santa Lucía de Tirajana | 3,462 | -2% |
| 147 | Igualada | 3,396 | -3.6% |
| 148 | Gavà | 3,393 | -1.2% |
| 149 | El Prat de Llobregat | 3,379 | -2.4% |
| 150 | Villaviciosa de Odón | 3,332 | -1.1% |
| 151 | Sitges | 3,307 | -2% |
| 152 | Motril | 3,283 | -0.6% |
| 153 | Pinto | 3,263 | -0.2% |
| 154 | Xàbia/Jávea | 3,206 | +1.6% |
| 155 | Granadilla de Abona | 3,204 | -3.2% |
| 156 | Vila-real | 3,199 | -2.4% |
| 157 | Rincón de la Victoria | 3,177 | -2.1% |
| 158 | Puerto del Rosario | 3,113 | -3.9% |
| 159 | Colmenar Viejo | 3,101 | -0.5% |
| 160 | Torrelavega | 3,008 | -2.7% |
| 161 | Oleiros | 2,981 | -0.9% |
| 162 | Aranjuez | 2,961 | -0.7% |
| 163 | Lloret de Mar | 2,957 | +1.8% |
| 163 | Vilafranca del Penedès | 2,957 | +0.5% |
| 165 | Sant Feliu de Llobregat | 2,945 | -0.9% |
| 166 | Alzira | 2,931 | -1% |
| 167 | Plasencia | 2,917 | -0.8% |
| 168 | Alhaurín de la Torre | 2,877 | -0.7% |
| 169 | Lucena | 2,868 | -2% |
| 170 | Ontinyent | 2,835 | -0.2% |
| 171 | Marratxí | 2,829 | -1.4% |
| 172 | Llucmajor | 2,818 | -2.6% |
| 173 | San Fernando de Henares | 2,761 | -1.1% |
| 174 | Galapagar | 2,757 | -2.3% |
| 175 | Mollet del Vallès | 2,736 | -3.3% |
| 176 | Cambrils | 2,731 | -1.4% |
| 177 | Montcada i Reixac | 2,723 | -0.9% |
| 178 | Linares | 2,716 | -0.7% |
| 179 | Soria | 2,701 | -1.6% |
| 180 | Utrera | 2,660 | 0% |
| 181 | Yecla | 2,654 | -2.3% |
| 182 | Tudela | 2,632 | +0.2% |
| 183 | La Línea de la Concepción | 2,612 | -0.2% |
| 184 | Torrelodones | 2,597 | -1.5% |
| 185 | Torre-Pacheco | 2,593 | -0.7% |
| 186 | Carballo | 2,578 | -1.3% |
| 186 | Vilagarcía de Arousa | 2,578 | -1.1% |
| 188 | Puerto de la Cruz | 2,577 | -4.6% |
| 189 | Teruel | 2,564 | -3.2% |
| 190 | La Orotava | 2,538 | -1.8% |
| 191 | Ciutadella de Menorca | 2,537 | 0% |
| 192 | Barberà del Vallès | 2,535 | -0.9% |
| 193 | Maó | 2,514 | -0.2% |
| 194 | Alcantarilla | 2,499 | -2.1% |
| 195 | Tomelloso | 2,490 | +0.3% |
| 196 | Don Benito | 2,486 | -0.9% |
| 197 | Almendralejo | 2,481 | -1.9% |
| 198 | Écija | 2,473 | +0.8% |
| 199 | Arroyomolinos | 2,469 | +0.4% |
| 199 | Blanes | 2,469 | -0.1% |
| 201 | La Oliva | 2,432 | -0.3% |
| 202 | Sant Pere de Ribes | 2,418 | +0.1% |
| 203 | El Vendrell | 2,416 | -0.7% |
| 204 | Petrer | 2,405 | -0.3% |
| 205 | Antequera | 2,393 | +0.6% |
| 206 | Altea | 2,383 | -2.3% |
| 206 | Olot | 2,383 | -1.7% |
| 208 | Ronda | 2,365 | -0.7% |
| 209 | Úbeda | 2,350 | -1.1% |
| 210 | Sant Joan Despí | 2,335 | -1.4% |
| 211 | Santa Pola | 2,328 | +1.9% |
| 212 | Ripollet | 2,307 | -0.9% |
| 213 | Ames | 2,288 | +0.2% |
| 214 | Villanueva de la Cañada | 2,268 | -0.2% |
| 215 | Basauri | 2,265 | -0.7% |
| 216 | Arteixo | 2,259 | -0.3% |
| 217 | el Campello | 2,251 | +0.4% |
| 218 | Aranda de Duero | 2,250 | -0.3% |
| 219 | Villena | 2,243 | -2.1% |
| 220 | Tortosa | 2,241 | -1.5% |
| 221 | La Rinconada | 2,236 | +0.7% |
| 222 | San Roque | 2,233 | +1% |
| 223 | San Javier | 2,219 | -0.1% |
| 224 | El Masnou | 2,218 | +0.7% |
| 225 | Humanes de Madrid | 2,216 | -0% |
| 226 | Inca | 2,213 | -1.2% |
| 227 | Andújar | 2,201 | +0.5% |
| 228 | Camargo | 2,190 | +1.3% |
| 229 | Xàtiva | 2,188 | -1.1% |
| 230 | Narón | 2,179 | -1.4% |
| 231 | Mislata | 2,169 | -1.8% |
| 232 | Los Realejos | 2,166 | -3.2% |
| 233 | Culleredo | 2,163 | 0% |
| 234 | Illescas | 2,156 | -2.4% |
| 235 | Vinaròs | 2,153 | +1% |
| 236 | Sant Adrià de Besòs | 2,148 | +1.1% |
| 237 | Castro-Urdiales | 2,132 | -0.3% |
| 238 | Riba-roja de Túria | 2,122 | -0.1% |
| 239 | Calp | 2,103 | +0.9% |
| 240 | la Vila Joiosa/Villajoyosa | 2,098 | -3% |
| 241 | Sant Just Desvern | 2,094 | -3.2% |
| 242 | Sant Josep de sa Talaia | 2,088 | -2.5% |
| 243 | Crevillent | 2,086 | -1.2% |
| 244 | Castellar del Vallès | 2,080 | +0.8% |
| 245 | Molins de Rei | 2,072 | -0.9% |
| 245 | Tías | 2,072 | -6.9% |
| 247 | Burjassot | 2,068 | 0% |
| 248 | Borriana/Burriana | 2,064 | +0.4% |
| 249 | Sant Joan d'Alacant | 2,062 | -1.6% |
| 250 | Portugalete | 2,059 | -5.6% |
Other periods
About this ranking
Active companies on 1 January (INE Central Business Directory, DIRCE).
Every value in the ranking comes from the same publisher and the same period, so the municipalities are compared on one definition. 470 municipalities with data in other periods have no value for 2021 and are left out rather than filled from another source. Equal values share a rank.
How to cite
Instituto Nacional de Estadística (INE). Directorio central de empresas: empresas activas por municipio (tabla 4721). https://www.ine.es/jaxiT3/Tabla.htm?t=4721. Retrieved 2026-10-12.
Citation styles
APA 7
Instituto Nacional de Estadística. (2026). Directorio central de empresas: empresas activas por municipio (tabla 4721) (Municipalities of Spain by active companies, 2021) [Data set]. Retrieved October 12, 2026, from https://www.ine.es/jaxiT3/Tabla.htm?t=4721
MLA 9
Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2021. Instituto Nacional de Estadística, 7 Oct. 2026, https://www.ine.es/jaxiT3/Tabla.htm?t=4721. Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021. Accessed 12 Oct. 2026.
Chicago (author-date)
Instituto Nacional de Estadística. 2026. Directorio central de empresas: empresas activas por municipio (tabla 4721). Municipalities of Spain by active companies, 2021. Dataset. Accessed October 12, 2026. https://www.ine.es/jaxiT3/Tabla.htm?t=4721. Also distributed by Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2021 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2021,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2021}},
year = {2026},
howpublished = {Data set},
url = {https://www.ine.es/jaxiT3/Tabla.htm?t=4721},
urldate = {2026-10-12},
note = {Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021. Publisher attribution: Instituto Nacional de Estadística (INE). Directorio central de empresas: empresas activas por municipio (tabla 4721). https://www.ine.es/jaxiT3/Tabla.htm?t=4721. Retrieved 2026-10-12.},
}
RIS
TY - DATA
AU - Instituto Nacional de Estadística
TI - Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2021
PY - 2026
DA - 2026/10/07
PB - Instituto Nacional de Estadística
DB - Invokely
UR - https://www.ine.es/jaxiT3/Tabla.htm?t=4721
L2 - https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2021.
N1 - Publisher attribution: Instituto Nacional de Estadística (INE). Directorio central de empresas: empresas activas por municipio (tabla 4721). https://www.ine.es/jaxiT3/Tabla.htm?t=4721. Retrieved 2026-10-12.
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 active companies using official data, and cite the source.
rank_places {"indicator":"active_companies","level":"municipality","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=active_companies&level=municipality&within=Spain&limit=10
Questions
Which municipality has the highest active companies?
Madrid, with 314,028 in 2021, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zarapicos, with 4 in 2021.
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, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12. 470 municipalities have no value for 2021 and are not ranked.
Active companies: other rankings
- Municipalities in Balearic Islands province
- Municipalities in Galicia
- Municipalities in Castilla-La Mancha
- EU regions (NUTS 2)
- Provinces of Spain
- Autonomous communities of Spain