Municipalities of Spain by active companies
Madrid had the highest active companies of 6875 municipalities in 2023, at 282,092. Zorita de los Canes had the lowest, at 4. The median was 46 and the figure for Spain was 3.21 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2023
Full ranking
| Rank | Municipalities | 2023 | Change on 2022 |
|---|---|---|---|
| 1 | Madrid | 282,092 | -12.2% |
| 2 | Barcelona | 167,067 | -10.5% |
| 3 | València | 65,346 | -5.8% |
| 4 | Sevilla | 47,750 | -8% |
| 5 | Zaragoza | 42,081 | -7% |
| 6 | Málaga | 41,040 | -5% |
| 7 | Palma | 34,902 | -6% |
| 8 | Murcia | 31,471 | -7.3% |
| 9 | Las Palmas de Gran Canaria | 25,337 | -12.1% |
| 10 | Bilbao | 25,009 | -7.2% |
| 11 | Alacant/Alicante | 24,587 | -10.2% |
| 12 | Vigo | 20,985 | -8.2% |
| 13 | Córdoba | 20,947 | -6.4% |
| 14 | Marbella | 19,246 | -5.3% |
| 15 | A Coruña | 18,702 | -7.3% |
| 16 | Granada | 18,289 | -7.6% |
| 17 | Valladolid | 18,014 | -6.6% |
| 18 | Gijón | 17,128 | -4.6% |
| 19 | Elx/Elche | 16,275 | -9% |
| 20 | Donostia/San Sebastián | 15,163 | -5.2% |
| 21 | Oviedo | 14,941 | -6.9% |
| 22 | Santa Cruz de Tenerife | 14,781 | -10.6% |
| 23 | Terrassa | 14,004 | -7.1% |
| 24 | Sabadell | 13,818 | -7.2% |
| 25 | L'Hospitalet de Llobregat | 13,349 | -7.5% |
| 26 | Pamplona/Iruña | 13,333 | -11.9% |
| 27 | Badalona | 13,134 | -5.6% |
| 28 | Vitoria-Gasteiz | 13,032 | -5.9% |
| 29 | Castelló de la Plana/Castellón de la Plana | 12,434 | -8.6% |
| 30 | Almería | 11,902 | -6.9% |
| 31 | Burgos | 11,657 | -7.6% |
| 32 | Albacete | 11,505 | -7.4% |
| 33 | Santander | 11,416 | -4.7% |
| 34 | Jerez de la Frontera | 11,193 | -3.9% |
| 35 | Cartagena | 10,725 | -7% |
| 36 | Sant Cugat del Vallès | 10,565 | -3.4% |
| 37 | Pozuelo de Alarcón | 10,533 | -8.5% |
| 38 | Logroño | 10,434 | -7.1% |
| 39 | Las Rozas de Madrid | 10,365 | -8.4% |
| 40 | Fuenlabrada | 9,881 | -8.4% |
| 41 | Lleida | 9,828 | -7.3% |
| 42 | Alcobendas | 9,776 | -10.6% |
| 43 | Alcalá de Henares | 9,371 | -8% |
| 44 | Badajoz | 9,338 | -9.2% |
| 45 | Girona | 9,292 | -4.9% |
| 46 | Getafe | 9,283 | -7.5% |
| 47 | Mataró | 9,162 | -6.7% |
| 48 | San Cristóbal de La Laguna | 9,158 | -9.2% |
| 49 | Salamanca | 9,153 | -7.9% |
| 50 | Leganés | 9,104 | -8% |
| 51 | Móstoles | 9,051 | -9.6% |
| 52 | Alcorcón | 8,617 | -8.3% |
| 53 | Santiago de Compostela | 8,565 | -6.5% |
| 54 | León | 8,465 | -8.4% |
| 55 | Ourense | 8,053 | -8.4% |
| 56 | Tarragona | 7,890 | -8.7% |
| 57 | Mijas | 7,726 | +1.4% |
| 58 | Lugo | 7,614 | -8.4% |
| 59 | Dos Hermanas | 7,471 | -3.2% |
| 60 | Huelva | 7,263 | -6.3% |
| 61 | Jaén | 6,805 | -6.4% |
| 62 | Reus | 6,780 | -6% |
| 63 | Fuengirola | 6,738 | -4.5% |
| 64 | San Sebastián de los Reyes | 6,688 | -9.4% |
| 65 | Rivas-Vaciamadrid | 6,556 | -3.4% |
| 66 | Cáceres | 6,499 | -7.6% |
| 67 | Boadilla del Monte | 6,433 | +0.7% |
| 68 | Arona | 6,421 | -9.9% |
| 69 | Majadahonda | 6,419 | -8.9% |
| 70 | Benalmádena | 6,369 | +0.3% |
| 71 | Estepona | 6,258 | -1.8% |
| 72 | Torrejón de Ardoz | 6,238 | -6.9% |
| 73 | Pontevedra | 6,073 | -6.9% |
| 74 | Torrevieja | 5,895 | -7.6% |
| 75 | Roquetas de Mar | 5,891 | -4.6% |
| 76 | Vélez-Málaga | 5,877 | -1.7% |
| 77 | Cádiz | 5,798 | -6.7% |
| 78 | Paterna | 5,757 | -4.4% |
| 79 | Eivissa | 5,654 | -4.7% |
| 80 | Lorca | 5,570 | -5.8% |
| 81 | Orihuela | 5,569 | -8% |
| 82 | Castelldefels | 5,525 | -5.8% |
| 83 | Toledo | 5,521 | -7.9% |
| 84 | Getxo | 5,500 | -6.5% |
| 85 | Torremolinos | 5,467 | -3% |
| 86 | Telde | 5,432 | -6.4% |
| 87 | Algeciras | 5,425 | -6.9% |
| 88 | Manresa | 5,290 | -6.1% |
| 89 | Benidorm | 5,237 | -7.9% |
| 90 | Santa Coloma de Gramenet | 5,223 | -8.2% |
| 91 | Calvià | 5,112 | -3.4% |
| 92 | Parla | 5,100 | -6.3% |
| 93 | Torrent | 5,075 | -3.4% |
| 94 | Cornellà de Llobregat | 5,009 | -8.8% |
| 95 | El Puerto de Santa María | 5,002 | -5.9% |
| 96 | Chiclana de la Frontera | 4,995 | -2.2% |
| 97 | Molina de Segura | 4,987 | -3% |
| 98 | Talavera de la Reina | 4,947 | -7.1% |
| 99 | El Ejido | 4,919 | -7% |
| 100 | San Bartolomé de Tirajana | 4,911 | -11.9% |
| 101 | Adeje | 4,900 | -7.4% |
| 102 | Gandia | 4,895 | -6.3% |
| 103 | Alcalá de Guadaíra | 4,869 | -2.9% |
| 104 | Ciudad Real | 4,861 | -7.6% |
| 105 | Granollers | 4,853 | -8.7% |
| 106 | Rubí | 4,716 | -5.4% |
| 107 | Barakaldo | 4,687 | -4.5% |
| 108 | Vilanova i la Geltrú | 4,598 | -4.6% |
| 109 | Ponferrada | 4,586 | -9.3% |
| 110 | Dénia | 4,514 | -5.5% |
| 111 | Palencia | 4,447 | -8.2% |
| 112 | Melilla | 4,370 | -10% |
| 113 | Irun | 4,348 | -4.2% |
| 114 | Coslada | 4,313 | -11% |
| 115 | Zamora | 4,307 | -7.1% |
| 116 | Sant Boi de Llobregat | 4,301 | -7% |
| 117 | Valdemoro | 4,187 | -7.2% |
| 118 | Guadalajara | 4,138 | -7.9% |
| 119 | Arganda del Rey | 3,985 | -9.1% |
| 120 | Siero | 3,960 | -3.3% |
| 121 | Cerdanyola del Vallès | 3,922 | -7.7% |
| 122 | Mérida | 3,890 | -7.5% |
| 123 | Collado Villalba | 3,843 | -5.9% |
| 124 | Santa Eulària des Riu | 3,802 | +1.3% |
| 125 | Avilés | 3,796 | -5.6% |
| 126 | Arrecife | 3,772 | -13.3% |
| 127 | Vic | 3,738 | -5.1% |
| 128 | Huesca | 3,695 | -7.4% |
| 129 | Viladecans | 3,676 | -4.6% |
| 130 | Alcoi/Alcoy | 3,665 | -6.1% |
| 131 | Elda | 3,621 | -8.5% |
| 132 | Mairena del Aljarafe | 3,571 | -1.7% |
| 133 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,465 | -7.2% |
| 134 | Manacor | 3,462 | -2.9% |
| 134 | Sanlúcar de Barrameda | 3,462 | -3.4% |
| 136 | Rincón de la Victoria | 3,428 | +2.7% |
| 137 | Cuenca | 3,412 | -8.5% |
| 138 | Ávila | 3,397 | -6.3% |
| 139 | Sagunt/Sagunto | 3,388 | -5.2% |
| 140 | Tres Cantos | 3,383 | -5% |
| 141 | Sitges | 3,378 | -1.4% |
| 142 | Ceuta | 3,369 | -10% |
| 143 | Santa Lucía de Tirajana | 3,348 | -5.5% |
| 144 | San Fernando | 3,334 | -5.8% |
| 145 | Segovia | 3,300 | -7.6% |
| 146 | Figueres | 3,265 | -11% |
| 147 | Esplugues de Llobregat | 3,264 | -8.8% |
| 147 | Igualada | 3,264 | -5.4% |
| 149 | Gavà | 3,245 | -6.7% |
| 150 | Granadilla de Abona | 3,192 | -4.9% |
| 151 | El Prat de Llobregat | 3,173 | -6.7% |
| 152 | Ferrol | 3,149 | -9.1% |
| 153 | Motril | 3,144 | -6.8% |
| 154 | Colmenar Viejo | 3,125 | -2.5% |
| 155 | Alhaurín de la Torre | 3,121 | +4.4% |
| 156 | Pinto | 3,111 | -7.4% |
| 157 | Xàbia/Jávea | 3,092 | -6.5% |
| 158 | Villaviciosa de Odón | 3,012 | -10.4% |
| 159 | Vila-real | 3,008 | -7.4% |
| 160 | Marratxí | 2,913 | -0.7% |
| 161 | Oleiros | 2,912 | -3.4% |
| 162 | Lloret de Mar | 2,881 | -5.7% |
| 163 | Aranjuez | 2,867 | -6.7% |
| 164 | Lucena | 2,855 | -1.9% |
| 165 | Torrelavega | 2,837 | -4.8% |
| 166 | Llucmajor | 2,827 | -2.7% |
| 167 | Alzira | 2,809 | -6.1% |
| 168 | Sant Feliu de Llobregat | 2,792 | -7.6% |
| 169 | Vilafranca del Penedès | 2,769 | -7.3% |
| 170 | Puerto del Rosario | 2,767 | -13.3% |
| 171 | Plasencia | 2,736 | -7% |
| 172 | Galapagar | 2,663 | -5.2% |
| 173 | Cambrils | 2,639 | -7.1% |
| 174 | Ontinyent | 2,635 | -7.9% |
| 175 | La Oliva | 2,616 | -1.7% |
| 176 | Yecla | 2,605 | -3.8% |
| 177 | Linares | 2,597 | -5.6% |
| 178 | Ciutadella de Menorca | 2,591 | +0.8% |
| 179 | Arroyomolinos | 2,585 | +1.1% |
| 180 | Soria | 2,572 | -5.4% |
| 181 | Utrera | 2,539 | -7.8% |
| 182 | Montcada i Reixac | 2,536 | -6.6% |
| 183 | Mollet del Vallès | 2,533 | -8.6% |
| 184 | La Línea de la Concepción | 2,513 | -7% |
| 185 | Carballo | 2,509 | -3.9% |
| 186 | Tudela | 2,495 | -8.6% |
| 187 | Torrelodones | 2,489 | -5.4% |
| 188 | Maó | 2,488 | -3.3% |
| 189 | Vilagarcía de Arousa | 2,469 | -5.3% |
| 190 | La Orotava | 2,457 | -5.2% |
| 191 | Barberà del Vallès | 2,455 | -3.5% |
| 192 | Almendralejo | 2,444 | -3.7% |
| 192 | Blanes | 2,444 | -3.7% |
| 194 | San Fernando de Henares | 2,433 | -12.6% |
| 195 | Torre-Pacheco | 2,429 | -7.6% |
| 196 | Teruel | 2,419 | -6.5% |
| 197 | Don Benito | 2,394 | -5.9% |
| 197 | Sant Pere de Ribes | 2,394 | -2.8% |
| 199 | Puerto de la Cruz | 2,377 | -10.8% |
| 200 | Alcantarilla | 2,374 | -5.2% |
| 201 | El Vendrell | 2,364 | -3.8% |
| 202 | Santa Pola | 2,363 | -3.2% |
| 203 | Tomelloso | 2,360 | -7.8% |
| 204 | Antequera | 2,354 | -4.7% |
| 205 | Écija | 2,348 | -6.1% |
| 205 | Ronda | 2,348 | -4.2% |
| 205 | Sant Josep de sa Talaia | 2,348 | +7.1% |
| 208 | Olot | 2,322 | -5.1% |
| 209 | Altea | 2,321 | -6.6% |
| 210 | San Roque | 2,289 | -3.3% |
| 211 | Úbeda | 2,276 | -4% |
| 212 | Ames | 2,270 | -2.6% |
| 213 | Sant Joan Despí | 2,254 | -6.3% |
| 214 | Petrer | 2,211 | -10.2% |
| 214 | Villanueva de la Cañada | 2,211 | -5.1% |
| 216 | San Javier | 2,206 | -3.1% |
| 217 | Ripollet | 2,203 | -7.1% |
| 218 | La Rinconada | 2,189 | -3.8% |
| 219 | el Campello | 2,182 | -5.5% |
| 220 | Arteixo | 2,178 | -5.7% |
| 221 | Aranda de Duero | 2,159 | -5.4% |
| 222 | Villena | 2,153 | -5.1% |
| 223 | Sant Just Desvern | 2,150 | +0.7% |
| 224 | Inca | 2,145 | -5% |
| 225 | Basauri | 2,139 | -6.1% |
| 226 | Sant Adrià de Besòs | 2,136 | -3.7% |
| 227 | El Masnou | 2,128 | -6% |
| 228 | Los Realejos | 2,116 | -5.1% |
| 229 | Andújar | 2,115 | -5.8% |
| 230 | Calp | 2,108 | -3.3% |
| 231 | Almuñécar | 2,099 | -1.5% |
| 231 | Camargo | 2,099 | -4.2% |
| 233 | Mislata | 2,097 | -3.8% |
| 234 | Culleredo | 2,094 | -4.1% |
| 235 | Xàtiva | 2,091 | -6.4% |
| 236 | Humanes de Madrid | 2,086 | -8.5% |
| 237 | Tortosa | 2,081 | -8.6% |
| 238 | Illescas | 2,071 | -4.9% |
| 239 | Castro-Urdiales | 2,066 | -3.3% |
| 240 | Narón | 2,057 | -6.6% |
| 241 | Bétera | 2,056 | +0.5% |
| 242 | Vinaròs | 2,054 | -5.9% |
| 243 | Riba-roja de Túria | 2,050 | -3.4% |
| 244 | Molins de Rei | 2,047 | -4.6% |
| 245 | Sant Quirze del Vallès | 2,037 | -2.5% |
| 246 | la Vila Joiosa/Villajoyosa | 2,027 | -5.9% |
| 247 | Águilas | 2,015 | -1.2% |
| 248 | Alhaurín el Grande | 2,011 | -0.3% |
| 249 | Leioa | 2,002 | -5.4% |
| 250 | Castellar del Vallès | 1,985 | -4.4% |
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. 484 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). 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, 2023) [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, 2023. 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=2023. 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, 2023. 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=2023.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2023 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2023 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2023,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2023}},
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=2023. 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, 2023
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=2023
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2023.
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 282,092 in 2023, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zorita de los Canes, with 4 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, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12. 484 municipalities have no value for 2023 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