Municipalities of Spain by active companies
Madrid had the highest active companies of 6895 municipalities in 2018, at 312,285. Zael had the lowest, at 4. The median was 47 and the figure for Spain was 3.34 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2018
Full ranking
| Rank | Municipalities | 2018 | Change on 2017 |
|---|---|---|---|
| 1 | Madrid | 312,285 | +2.6% |
| 2 | Barcelona | 182,986 | +2.5% |
| 3 | València | 65,068 | +2.5% |
| 4 | Sevilla | 49,707 | +1.5% |
| 5 | Zaragoza | 46,442 | +1% |
| 6 | Málaga | 41,022 | +2.3% |
| 7 | Palma | 36,883 | +3.9% |
| 8 | Murcia | 33,722 | +2.5% |
| 9 | Las Palmas de Gran Canaria | 28,472 | +2.9% |
| 10 | Bilbao | 26,672 | +2.3% |
| 11 | Alacant/Alicante | 26,042 | +2.5% |
| 12 | Vigo | 23,446 | +1.5% |
| 13 | Córdoba | 21,507 | +0.4% |
| 14 | A Coruña | 21,154 | +1.3% |
| 15 | Valladolid | 19,837 | -0% |
| 16 | Granada | 19,113 | +0.9% |
| 17 | Marbella | 18,301 | +4.7% |
| 18 | Gijón | 17,866 | +0.7% |
| 19 | Elx/Elche | 17,016 | +2.9% |
| 20 | Oviedo | 16,196 | +0.9% |
| 21 | Santa Cruz de Tenerife | 16,176 | +2% |
| 22 | Donostia/San Sebastián | 16,125 | +2% |
| 23 | Terrassa | 14,746 | +0.5% |
| 24 | Sabadell | 14,496 | +0.8% |
| 25 | Pamplona/Iruña | 14,295 | +0.7% |
| 26 | Vitoria-Gasteiz | 14,164 | +3.7% |
| 27 | Badalona | 13,399 | +3.2% |
| 28 | L'Hospitalet de Llobregat | 13,308 | +3.4% |
| 29 | Burgos | 13,110 | +1.1% |
| 30 | Castelló de la Plana/Castellón de la Plana | 12,648 | +0.3% |
| 31 | Albacete | 12,367 | -0.6% |
| 32 | Almería | 12,313 | +1.4% |
| 33 | Santander | 11,715 | -0.2% |
| 34 | Cartagena | 11,500 | +2.2% |
| 35 | Logroño | 11,495 | +0.7% |
| 36 | Las Rozas de Madrid | 11,435 | +0.4% |
| 37 | Pozuelo de Alarcón | 11,087 | +0.8% |
| 38 | Jerez de la Frontera | 11,025 | +0.9% |
| 39 | Fuenlabrada | 10,926 | +1.5% |
| 40 | Alcobendas | 10,903 | +4.7% |
| 41 | Lleida | 10,836 | -0.1% |
| 42 | Badajoz | 10,396 | +2.5% |
| 43 | Sant Cugat del Vallès | 10,376 | +2.6% |
| 44 | Salamanca | 10,179 | +0.5% |
| 45 | Móstoles | 9,811 | +1% |
| 46 | Leganés | 9,632 | +1.1% |
| 47 | San Cristóbal de La Laguna | 9,622 | +3.2% |
| 48 | León | 9,580 | +1.2% |
| 49 | Alcalá de Henares | 9,524 | +2% |
| 50 | Girona | 9,473 | +2% |
| 51 | Santiago de Compostela | 9,411 | +1.9% |
| 52 | Mataró | 9,406 | +1.8% |
| 53 | Ourense | 9,311 | +0.5% |
| 54 | Getafe | 9,285 | +2.4% |
| 55 | Alcorcón | 9,021 | +2.1% |
| 56 | Lugo | 8,756 | +1.5% |
| 57 | Tarragona | 8,359 | -1% |
| 58 | Huelva | 7,573 | +1.7% |
| 59 | San Sebastián de los Reyes | 7,302 | +2.7% |
| 60 | Jaén | 7,233 | +0.5% |
| 61 | Cáceres | 7,118 | +1.6% |
| 62 | Dos Hermanas | 7,080 | +1.4% |
| 63 | Reus | 7,057 | +1.2% |
| 64 | Arona | 6,913 | +4.6% |
| 65 | Majadahonda | 6,903 | +1.5% |
| 66 | Pontevedra | 6,635 | +0.6% |
| 67 | Fuengirola | 6,465 | +3.4% |
| 68 | Mijas | 6,387 | +6.1% |
| 69 | Torrejón de Ardoz | 6,296 | +2.3% |
| 70 | Rivas-Vaciamadrid | 6,170 | +3.5% |
| 71 | Cádiz | 6,117 | +1.9% |
| 72 | Torrevieja | 5,851 | +5% |
| 73 | Lorca | 5,845 | -0.2% |
| 74 | Toledo | 5,821 | +1.7% |
| 75 | Getxo | 5,818 | +3.9% |
| 76 | Paterna | 5,777 | +2.2% |
| 77 | Boadilla del Monte | 5,747 | +4.1% |
| 78 | Orihuela | 5,650 | +4.6% |
| 79 | Algeciras | 5,635 | -0.4% |
| 80 | San Bartolomé de Tirajana | 5,614 | +2.7% |
| 81 | Roquetas de Mar | 5,593 | +2.4% |
| 82 | Eivissa | 5,575 | +6.5% |
| 83 | Telde | 5,520 | +1.8% |
| 84 | Benidorm | 5,511 | +2.5% |
| 85 | Manresa | 5,507 | -0.2% |
| 86 | Estepona | 5,501 | +2.8% |
| 87 | Castelldefels | 5,485 | +3% |
| 88 | Cornellà de Llobregat | 5,419 | +2.6% |
| 89 | Ponferrada | 5,371 | +0.1% |
| 90 | Benalmádena | 5,356 | +5.7% |
| 91 | Granollers | 5,350 | +2% |
| 92 | Vélez-Málaga | 5,323 | +1.5% |
| 93 | Ciudad Real | 5,212 | +1.3% |
| 94 | Talavera de la Reina | 5,165 | +0.2% |
| 95 | Santa Coloma de Gramenet | 5,132 | +1.3% |
| 96 | Palencia | 5,113 | -0% |
| 97 | El Puerto de Santa María | 5,096 | +0.3% |
| 98 | Torremolinos | 5,089 | +1.7% |
| 99 | Gandia | 5,059 | +2.4% |
| 100 | Adeje | 5,038 | +7.4% |
| 101 | Calvià | 5,029 | +3.2% |
| 102 | Molina de Segura | 4,977 | +3.6% |
| 103 | El Ejido | 4,974 | +2.2% |
| 104 | Rubí | 4,969 | +0.5% |
| 105 | Parla | 4,911 | +4.4% |
| 106 | Coslada | 4,876 | +1.4% |
| 107 | Barakaldo | 4,855 | +5.5% |
| 108 | Zamora | 4,798 | -0.5% |
| 109 | Torrent | 4,764 | +1% |
| 110 | Alcalá de Guadaíra | 4,742 | -0.3% |
| 111 | Sant Boi de Llobregat | 4,737 | +0.2% |
| 112 | Melilla | 4,667 | +3.2% |
| 113 | Vilanova i la Geltrú | 4,660 | +2.5% |
| 114 | Irun | 4,607 | +4.2% |
| 115 | Guadalajara | 4,570 | -0% |
| 116 | Chiclana de la Frontera | 4,497 | +0.7% |
| 117 | Dénia | 4,378 | +2.6% |
| 118 | Mérida | 4,337 | +2.7% |
| 119 | Cerdanyola del Vallès | 4,270 | +0.8% |
| 120 | Arrecife | 4,258 | +3.9% |
| 121 | Avilés | 4,225 | 0% |
| 122 | Valdemoro | 4,179 | +2% |
| 123 | Siero | 4,123 | -0.6% |
| 124 | Arganda del Rey | 4,094 | +3.1% |
| 125 | Huesca | 4,066 | -0% |
| 126 | Vic | 3,990 | -0.2% |
| 127 | Collado Villalba | 3,940 | +2.2% |
| 128 | Ceuta | 3,916 | +1.9% |
| 129 | Elda | 3,908 | -0.4% |
| 130 | Viladecans | 3,907 | +0.5% |
| 131 | Alcoi/Alcoy | 3,817 | +0.1% |
| 132 | Cuenca | 3,779 | +0.7% |
| 133 | Ferrol | 3,759 | +0.6% |
| 134 | Figueres | 3,736 | +0.3% |
| 135 | Ávila | 3,709 | +0.5% |
| 136 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,627 | +0.8% |
| 137 | Segovia | 3,614 | +0.8% |
| 138 | Mairena del Aljarafe | 3,511 | +2.6% |
| 139 | Esplugues de Llobregat | 3,504 | +2.3% |
| 140 | Tres Cantos | 3,486 | +2.3% |
| 141 | Sagunt/Sagunto | 3,484 | -1.2% |
| 142 | Igualada | 3,469 | +1.1% |
| 143 | El Prat de Llobregat | 3,440 | -2.4% |
| 144 | Manacor | 3,423 | +2.3% |
| 145 | Gavà | 3,409 | +1.4% |
| 146 | Villaviciosa de Odón | 3,348 | -0.6% |
| 147 | San Fernando | 3,337 | +1% |
| 148 | Santa Lucía de Tirajana | 3,311 | +3.9% |
| 149 | Motril | 3,300 | +0.4% |
| 150 | Sitges | 3,248 | +2.3% |
| 151 | Vila-real | 3,229 | +0.3% |
| 152 | Santa Eulària des Riu | 3,216 | +5.2% |
| 153 | Sanlúcar de Barrameda | 3,165 | +0.7% |
| 154 | Pinto | 3,161 | +3.9% |
| 155 | Torrelavega | 3,113 | 0% |
| 156 | Puerto del Rosario | 3,104 | +5.2% |
| 157 | Granadilla de Abona | 3,030 | +6.8% |
| 158 | Colmenar Viejo | 3,015 | +2.3% |
| 159 | Rincón de la Victoria | 3,004 | +3.9% |
| 160 | Vilafranca del Penedès | 2,939 | +1.2% |
| 161 | Xàbia/Jávea | 2,931 | +4.3% |
| 162 | Plasencia | 2,930 | +2% |
| 163 | Oleiros | 2,887 | +2.9% |
| 164 | Alzira | 2,875 | +1.9% |
| 164 | Lucena | 2,875 | +1.4% |
| 166 | Sant Feliu de Llobregat | 2,860 | +1.3% |
| 167 | Aranjuez | 2,826 | +0.4% |
| 168 | Ontinyent | 2,819 | -0.9% |
| 169 | Marratxí | 2,796 | +2.9% |
| 170 | Llucmajor | 2,777 | +1.5% |
| 171 | Soria | 2,774 | -0.3% |
| 172 | San Fernando de Henares | 2,761 | +2.5% |
| 173 | Mollet del Vallès | 2,760 | +1.3% |
| 174 | Lloret de Mar | 2,757 | +1.4% |
| 175 | Montcada i Reixac | 2,722 | +1.7% |
| 176 | Linares | 2,689 | +0.9% |
| 177 | Cambrils | 2,669 | +2.2% |
| 178 | Alhaurín de la Torre | 2,650 | +2.6% |
| 179 | Teruel | 2,647 | -0.8% |
| 180 | Carballo | 2,646 | +1% |
| 181 | Yecla | 2,632 | +0.2% |
| 182 | Puerto de la Cruz | 2,625 | +2.4% |
| 183 | Barberà del Vallès | 2,621 | +1.6% |
| 184 | Tudela | 2,619 | -0.9% |
| 185 | Vilagarcía de Arousa | 2,594 | +1.2% |
| 186 | Galapagar | 2,577 | +4.7% |
| 187 | La Línea de la Concepción | 2,522 | -0.3% |
| 188 | Alcantarilla | 2,514 | +0.7% |
| 189 | Utrera | 2,503 | +2% |
| 190 | Almendralejo | 2,498 | +2.8% |
| 191 | Tomelloso | 2,492 | +1.3% |
| 192 | La Orotava | 2,475 | +2.1% |
| 193 | Torrelodones | 2,458 | +3.3% |
| 194 | Torre-Pacheco | 2,457 | +1.1% |
| 195 | Don Benito | 2,453 | +1.1% |
| 195 | Maó | 2,453 | +2.6% |
| 197 | Ciutadella de Menorca | 2,444 | +2.6% |
| 198 | Olot | 2,423 | +1.9% |
| 199 | Arteixo | 2,409 | +1.9% |
| 200 | Petrer | 2,382 | -0.3% |
| 201 | Antequera | 2,379 | -0.5% |
| 202 | Blanes | 2,372 | -1.2% |
| 203 | Basauri | 2,355 | +3% |
| 204 | Écija | 2,350 | -0.7% |
| 205 | Úbeda | 2,348 | +1.1% |
| 206 | El Vendrell | 2,342 | +2.8% |
| 207 | Sant Joan Despí | 2,340 | +0.8% |
| 208 | Altea | 2,324 | +0.8% |
| 209 | Ames | 2,301 | +2.8% |
| 210 | Ripollet | 2,296 | +0.6% |
| 211 | Tortosa | 2,285 | -0.4% |
| 212 | Ronda | 2,257 | +1.6% |
| 213 | Arroyomolinos | 2,250 | +2.6% |
| 213 | Sant Pere de Ribes | 2,250 | +1% |
| 215 | Narón | 2,245 | +1.2% |
| 216 | Aranda de Duero | 2,243 | 0% |
| 217 | Tías | 2,239 | +4.5% |
| 218 | Villena | 2,232 | +2.3% |
| 219 | Villarrobledo | 2,218 | -0.9% |
| 220 | Humanes de Madrid | 2,206 | +1.2% |
| 221 | La Oliva | 2,203 | +2% |
| 222 | Culleredo | 2,191 | +1.2% |
| 223 | Villanueva de la Cañada | 2,185 | +4% |
| 224 | Portugalete | 2,173 | -0.2% |
| 225 | Andújar | 2,167 | +1.4% |
| 226 | Sant Just Desvern | 2,164 | 0% |
| 227 | La Rinconada | 2,159 | -1.5% |
| 228 | Camargo | 2,138 | -0.1% |
| 229 | Vinaròs | 2,134 | -0.4% |
| 230 | Xàtiva | 2,128 | -0.5% |
| 231 | Inca | 2,123 | +6.3% |
| 231 | San Javier | 2,123 | +1.6% |
| 233 | Crevillent | 2,121 | +2.4% |
| 234 | El Masnou | 2,117 | +1% |
| 235 | Los Realejos | 2,110 | +1.4% |
| 235 | Sant Adrià de Besòs | 2,110 | +2.3% |
| 235 | Santa Pola | 2,110 | +5.1% |
| 238 | Molins de Rei | 2,094 | +0.9% |
| 239 | Castro-Urdiales | 2,092 | +1.1% |
| 239 | Riba-roja de Túria | 2,092 | +2.8% |
| 241 | Santurtzi | 2,078 | +2.6% |
| 242 | Mislata | 2,071 | +0.2% |
| 243 | Illescas | 2,060 | +4.5% |
| 244 | el Campello | 2,054 | +2.4% |
| 245 | Leioa | 2,053 | +1.5% |
| 246 | Langreo | 2,044 | +0.5% |
| 247 | Sant Quirze del Vallès | 2,042 | +2.4% |
| 248 | Errenteria | 2,038 | +1.3% |
| 249 | Santa Perpètua de Mogoda | 2,035 | +0.3% |
| 250 | Castellar del Vallès | 2,033 | -0.1% |
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. 464 municipalities with data in other periods have no value for 2018 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, 2018) [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, 2018. 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=2018. 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, 2018. 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=2018.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2018 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2018 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2018,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2018}},
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=2018. 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, 2018
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=2018
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2018.
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 312,285 in 2018, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zael, with 4 in 2018.
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. 464 municipalities have no value for 2018 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