Municipalities of Spain by active companies
Madrid had the highest active companies of 6923 municipalities in 2017, at 304,474. Zorita de los Canes had the lowest, at 4. The median was 46 and the figure for Spain was 3.28 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2017
Full ranking
| Rank | Municipalities | 2017 | Change on 2016 |
|---|---|---|---|
| 1 | Madrid | 304,474 | +1.7% |
| 2 | Barcelona | 178,607 | +2.5% |
| 3 | València | 63,480 | +2.4% |
| 4 | Sevilla | 48,984 | +1.2% |
| 5 | Zaragoza | 45,977 | +1.1% |
| 6 | Málaga | 40,087 | +1.9% |
| 7 | Palma | 35,488 | +4.2% |
| 8 | Murcia | 32,903 | +2% |
| 9 | Las Palmas de Gran Canaria | 27,658 | +3.3% |
| 10 | Bilbao | 26,069 | -6.9% |
| 11 | Alacant/Alicante | 25,396 | +2% |
| 12 | Vigo | 23,097 | +1.1% |
| 13 | Córdoba | 21,428 | +1.7% |
| 14 | A Coruña | 20,876 | -1.1% |
| 15 | Valladolid | 19,841 | +0.9% |
| 16 | Granada | 18,950 | +3.5% |
| 17 | Gijón | 17,750 | +2% |
| 18 | Marbella | 17,476 | +3.6% |
| 19 | Elx/Elche | 16,541 | +1.5% |
| 20 | Oviedo | 16,048 | +0.5% |
| 21 | Santa Cruz de Tenerife | 15,858 | +2.8% |
| 22 | Donostia/San Sebastián | 15,809 | -6% |
| 23 | Terrassa | 14,678 | +1.7% |
| 24 | Sabadell | 14,377 | +1.1% |
| 25 | Pamplona/Iruña | 14,198 | +0.8% |
| 26 | Vitoria-Gasteiz | 13,657 | -8.3% |
| 27 | Badalona | 12,985 | +1.6% |
| 28 | Burgos | 12,964 | +1.1% |
| 29 | L'Hospitalet de Llobregat | 12,872 | +3.4% |
| 30 | Castelló de la Plana/Castellón de la Plana | 12,612 | +1.8% |
| 31 | Albacete | 12,438 | +0.6% |
| 32 | Almería | 12,140 | +2.5% |
| 33 | Santander | 11,742 | +1.5% |
| 34 | Logroño | 11,418 | +0.1% |
| 35 | Las Rozas de Madrid | 11,384 | +2.7% |
| 36 | Cartagena | 11,254 | +2.9% |
| 37 | Pozuelo de Alarcón | 11,001 | +3.2% |
| 38 | Jerez de la Frontera | 10,928 | +2.4% |
| 39 | Lleida | 10,847 | +0.9% |
| 40 | Fuenlabrada | 10,767 | +0.6% |
| 41 | Alcobendas | 10,414 | 0% |
| 42 | Badajoz | 10,145 | +1% |
| 43 | Salamanca | 10,127 | -0.3% |
| 44 | Sant Cugat del Vallès | 10,112 | +2.8% |
| 45 | Móstoles | 9,717 | +0.8% |
| 46 | Leganés | 9,526 | +2.3% |
| 47 | León | 9,470 | -1% |
| 48 | Alcalá de Henares | 9,337 | +2.4% |
| 49 | San Cristóbal de La Laguna | 9,327 | +3.7% |
| 50 | Girona | 9,287 | +2.6% |
| 51 | Ourense | 9,264 | +0.3% |
| 52 | Mataró | 9,239 | +2.7% |
| 53 | Santiago de Compostela | 9,233 | +1% |
| 54 | Getafe | 9,071 | +3.5% |
| 55 | Alcorcón | 8,834 | -0% |
| 56 | Lugo | 8,629 | +0.8% |
| 57 | Tarragona | 8,445 | +1.4% |
| 58 | Huelva | 7,448 | +0.5% |
| 59 | Jaén | 7,195 | +1.9% |
| 60 | San Sebastián de los Reyes | 7,108 | +2% |
| 61 | Cáceres | 7,009 | +1.3% |
| 62 | Dos Hermanas | 6,982 | +1.8% |
| 63 | Reus | 6,971 | +0.1% |
| 64 | Majadahonda | 6,798 | +1.8% |
| 65 | Arona | 6,607 | +6.6% |
| 66 | Pontevedra | 6,593 | +1.3% |
| 67 | Fuengirola | 6,255 | +5.1% |
| 68 | Torrejón de Ardoz | 6,154 | +1.8% |
| 69 | Mijas | 6,019 | +6.6% |
| 70 | Cádiz | 6,001 | +2.3% |
| 71 | Rivas-Vaciamadrid | 5,964 | +4.9% |
| 72 | Lorca | 5,857 | +0.1% |
| 73 | Toledo | 5,722 | +1.7% |
| 74 | Algeciras | 5,657 | +1.1% |
| 75 | Paterna | 5,654 | +2.9% |
| 76 | Getxo | 5,602 | -7.7% |
| 77 | Torrevieja | 5,572 | +2.3% |
| 78 | Boadilla del Monte | 5,521 | +3.7% |
| 79 | Manresa | 5,518 | +2.6% |
| 80 | San Bartolomé de Tirajana | 5,468 | +4.9% |
| 81 | Roquetas de Mar | 5,464 | +4.4% |
| 82 | Telde | 5,420 | +4.3% |
| 83 | Orihuela | 5,399 | +2.8% |
| 84 | Benidorm | 5,375 | +0.9% |
| 85 | Ponferrada | 5,363 | -2.9% |
| 86 | Estepona | 5,349 | +6.1% |
| 87 | Castelldefels | 5,323 | +1.8% |
| 88 | Cornellà de Llobregat | 5,280 | +1.4% |
| 89 | Granollers | 5,247 | +2.1% |
| 90 | Vélez-Málaga | 5,244 | +4.9% |
| 91 | Eivissa | 5,237 | +4.6% |
| 92 | Talavera de la Reina | 5,153 | +2.1% |
| 93 | Ciudad Real | 5,147 | +0.2% |
| 94 | Palencia | 5,114 | -1.4% |
| 95 | El Puerto de Santa María | 5,079 | +3.2% |
| 96 | Santa Coloma de Gramenet | 5,068 | +3.7% |
| 97 | Benalmádena | 5,066 | +5.4% |
| 98 | Torremolinos | 5,005 | +6.4% |
| 99 | Rubí | 4,944 | +4.1% |
| 100 | Gandia | 4,941 | +1.1% |
| 101 | Calvià | 4,871 | +4.9% |
| 102 | El Ejido | 4,868 | +3% |
| 103 | Zamora | 4,823 | -0.7% |
| 104 | Coslada | 4,811 | +0.5% |
| 105 | Molina de Segura | 4,802 | +1.5% |
| 106 | Alcalá de Guadaíra | 4,758 | +0.4% |
| 107 | Sant Boi de Llobregat | 4,728 | +1% |
| 108 | Torrent | 4,719 | +2.2% |
| 109 | Parla | 4,702 | +4.4% |
| 110 | Adeje | 4,689 | +7.8% |
| 111 | Barakaldo | 4,602 | -10.2% |
| 112 | Guadalajara | 4,571 | -1.9% |
| 113 | Vilanova i la Geltrú | 4,547 | +2.4% |
| 114 | Melilla | 4,524 | +4% |
| 115 | Chiclana de la Frontera | 4,466 | +4.9% |
| 116 | Irun | 4,421 | -9.6% |
| 117 | Dénia | 4,268 | +1.8% |
| 118 | Cerdanyola del Vallès | 4,236 | +1% |
| 119 | Avilés | 4,225 | -0.7% |
| 120 | Mérida | 4,221 | +1.1% |
| 121 | Siero | 4,149 | +2.8% |
| 122 | Arrecife | 4,099 | +4.2% |
| 123 | Valdemoro | 4,096 | +2.4% |
| 124 | Huesca | 4,067 | +0.5% |
| 125 | Vic | 3,998 | +1.9% |
| 126 | Arganda del Rey | 3,971 | +1.8% |
| 127 | Elda | 3,925 | +0.4% |
| 128 | Viladecans | 3,887 | +1.4% |
| 129 | Collado Villalba | 3,854 | +1.4% |
| 130 | Ceuta | 3,844 | +2.2% |
| 131 | Alcoi/Alcoy | 3,814 | +1.7% |
| 132 | Cuenca | 3,753 | +1.1% |
| 133 | Ferrol | 3,737 | +0.1% |
| 134 | Figueres | 3,723 | -0.2% |
| 135 | Ávila | 3,691 | +2.3% |
| 136 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,598 | +1% |
| 137 | Segovia | 3,585 | -1.9% |
| 138 | Sagunt/Sagunto | 3,525 | -0.5% |
| 139 | El Prat de Llobregat | 3,524 | +4% |
| 140 | Igualada | 3,431 | +0.4% |
| 141 | Esplugues de Llobregat | 3,426 | +3.5% |
| 142 | Mairena del Aljarafe | 3,423 | +4.4% |
| 143 | Tres Cantos | 3,408 | +1% |
| 144 | Villaviciosa de Odón | 3,369 | +1.1% |
| 145 | Gavà | 3,362 | +1.5% |
| 146 | Manacor | 3,346 | +3.7% |
| 147 | San Fernando | 3,303 | +3.4% |
| 148 | Motril | 3,286 | +0.7% |
| 149 | Vila-real | 3,219 | -0.1% |
| 150 | Santa Lucía de Tirajana | 3,188 | +5.4% |
| 151 | Sitges | 3,176 | +4.6% |
| 152 | Sanlúcar de Barrameda | 3,142 | +2.3% |
| 153 | Torrelavega | 3,113 | +0.6% |
| 154 | Santa Eulària des Riu | 3,057 | +5.1% |
| 155 | Pinto | 3,042 | +2.2% |
| 156 | Puerto del Rosario | 2,950 | +4.4% |
| 157 | Colmenar Viejo | 2,948 | +3.1% |
| 158 | Vilafranca del Penedès | 2,905 | +1.4% |
| 159 | Rincón de la Victoria | 2,891 | +5.5% |
| 160 | Plasencia | 2,872 | -0.4% |
| 161 | Ontinyent | 2,846 | -0.4% |
| 162 | Granadilla de Abona | 2,837 | +7.6% |
| 163 | Lucena | 2,834 | +1.5% |
| 164 | Sant Feliu de Llobregat | 2,824 | +3.7% |
| 165 | Alzira | 2,821 | +1.5% |
| 166 | Aranjuez | 2,814 | +0.7% |
| 167 | Xàbia/Jávea | 2,809 | +3% |
| 168 | Oleiros | 2,805 | +3.4% |
| 169 | Soria | 2,783 | -0.3% |
| 170 | Llucmajor | 2,735 | +5% |
| 171 | Mollet del Vallès | 2,725 | +0.7% |
| 172 | Lloret de Mar | 2,720 | +6.2% |
| 173 | Marratxí | 2,718 | +3.7% |
| 174 | San Fernando de Henares | 2,694 | +1.4% |
| 175 | Montcada i Reixac | 2,676 | +0.9% |
| 176 | Teruel | 2,669 | +1.4% |
| 177 | Linares | 2,666 | +0.6% |
| 178 | Tudela | 2,642 | -0.8% |
| 179 | Yecla | 2,627 | +2.9% |
| 180 | Carballo | 2,619 | +0.1% |
| 181 | Cambrils | 2,611 | +1.8% |
| 182 | Alhaurín de la Torre | 2,583 | +3.2% |
| 183 | Barberà del Vallès | 2,579 | +0.7% |
| 184 | Puerto de la Cruz | 2,564 | +0.5% |
| 184 | Vilagarcía de Arousa | 2,564 | +1.9% |
| 186 | La Línea de la Concepción | 2,530 | +1.1% |
| 187 | Alcantarilla | 2,497 | +1.5% |
| 188 | Galapagar | 2,462 | +1.5% |
| 189 | Tomelloso | 2,459 | +0.3% |
| 190 | Utrera | 2,455 | +3.8% |
| 191 | Almendralejo | 2,430 | -0.1% |
| 191 | Torre-Pacheco | 2,430 | +3.4% |
| 193 | Don Benito | 2,426 | +0.7% |
| 194 | La Orotava | 2,423 | +1.4% |
| 195 | Blanes | 2,400 | +2.3% |
| 196 | Antequera | 2,392 | +1.6% |
| 196 | Maó | 2,392 | +3.7% |
| 198 | Petrer | 2,390 | +1.4% |
| 199 | Ciutadella de Menorca | 2,382 | +3.9% |
| 200 | Torrelodones | 2,379 | +1.4% |
| 201 | Olot | 2,378 | +2% |
| 202 | Écija | 2,366 | +2.7% |
| 203 | Arteixo | 2,363 | +1% |
| 204 | Sant Joan Despí | 2,322 | +0.7% |
| 204 | Úbeda | 2,322 | +2.1% |
| 206 | Altea | 2,305 | +2.2% |
| 207 | Tortosa | 2,294 | +0.9% |
| 208 | Basauri | 2,287 | -10.1% |
| 209 | Ripollet | 2,283 | +1.6% |
| 210 | El Vendrell | 2,279 | +2.2% |
| 211 | Aranda de Duero | 2,242 | +0.2% |
| 212 | Ames | 2,239 | +3.2% |
| 213 | Villarrobledo | 2,238 | 0% |
| 214 | Sant Pere de Ribes | 2,227 | +6.9% |
| 215 | Ronda | 2,222 | +1% |
| 216 | Narón | 2,218 | -0.3% |
| 217 | Arroyomolinos | 2,193 | +5.2% |
| 218 | La Rinconada | 2,191 | +1.5% |
| 219 | Villena | 2,181 | +0.9% |
| 220 | Humanes de Madrid | 2,180 | +1.9% |
| 221 | Portugalete | 2,177 | -6.8% |
| 222 | Culleredo | 2,166 | -1.8% |
| 223 | Sant Just Desvern | 2,163 | +2.5% |
| 224 | La Oliva | 2,160 | +8.5% |
| 225 | Tías | 2,143 | +3.8% |
| 225 | Vinaròs | 2,143 | -0.6% |
| 227 | Camargo | 2,141 | +0.8% |
| 228 | Xàtiva | 2,138 | -0.8% |
| 229 | Andújar | 2,137 | +0.6% |
| 230 | Villanueva de la Cañada | 2,101 | +6.8% |
| 231 | El Masnou | 2,096 | +0.8% |
| 232 | San Javier | 2,090 | +0.5% |
| 233 | Los Realejos | 2,080 | +2.1% |
| 234 | Molins de Rei | 2,075 | +2% |
| 235 | Crevillent | 2,072 | +1.2% |
| 236 | Castro-Urdiales | 2,070 | +1.5% |
| 237 | Mislata | 2,067 | +1.6% |
| 238 | Sant Adrià de Besòs | 2,062 | +2.5% |
| 239 | Borriana/Burriana | 2,042 | -0.8% |
| 239 | Miranda de Ebro | 2,042 | -0.8% |
| 241 | Riba-roja de Túria | 2,036 | +3.4% |
| 242 | Castellar del Vallès | 2,035 | +1.8% |
| 243 | Langreo | 2,034 | -1.1% |
| 244 | Santa Perpètua de Mogoda | 2,028 | +0.4% |
| 245 | Santurtzi | 2,025 | -8% |
| 246 | Leioa | 2,022 | -6.5% |
| 247 | Errenteria | 2,011 | -7.7% |
| 248 | Valdepeñas | 2,009 | +0.8% |
| 249 | Santa Pola | 2,007 | +3.1% |
| 250 | el Campello | 2,006 | 0% |
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. 436 municipalities with data in other periods have no value for 2017 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, 2017) [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, 2017. 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=2017. 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, 2017. 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=2017.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2017 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2017 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2017,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2017}},
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=2017. 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, 2017
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=2017
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2017.
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 304,474 in 2017, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zorita de los Canes, with 4 in 2017.
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. 436 municipalities have no value for 2017 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