Municipalities of Spain by active companies
Madrid had the highest active companies of 6896 municipalities in 2019, at 311,047. Zamayón had the lowest, at 4. The median was 47 and the figure for Spain was 3.36 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2019
Full ranking
| Rank | Municipalities | 2019 | Change on 2018 |
|---|---|---|---|
| 1 | Madrid | 311,047 | -0.4% |
| 2 | Barcelona | 183,284 | +0.2% |
| 3 | València | 66,526 | +2.2% |
| 4 | Sevilla | 50,132 | +0.9% |
| 5 | Zaragoza | 46,256 | -0.4% |
| 6 | Málaga | 41,310 | +0.7% |
| 7 | Palma | 37,255 | +1% |
| 8 | Murcia | 33,302 | -1.2% |
| 9 | Las Palmas de Gran Canaria | 29,119 | +2.3% |
| 10 | Alacant/Alicante | 26,712 | +2.6% |
| 11 | Bilbao | 26,474 | -0.7% |
| 12 | Vigo | 23,320 | -0.5% |
| 13 | Córdoba | 21,761 | +1.2% |
| 14 | A Coruña | 21,050 | -0.5% |
| 15 | Valladolid | 19,884 | +0.2% |
| 16 | Granada | 19,202 | +0.5% |
| 17 | Marbella | 18,522 | +1.2% |
| 18 | Gijón | 18,035 | +0.9% |
| 19 | Elx/Elche | 17,470 | +2.7% |
| 20 | Santa Cruz de Tenerife | 16,627 | +2.8% |
| 21 | Oviedo | 16,102 | -0.6% |
| 22 | Donostia/San Sebastián | 15,805 | -2% |
| 23 | Terrassa | 14,747 | 0% |
| 24 | Sabadell | 14,576 | +0.6% |
| 25 | Pamplona/Iruña | 14,325 | +0.2% |
| 26 | Vitoria-Gasteiz | 13,761 | -2.8% |
| 27 | Badalona | 13,476 | +0.6% |
| 28 | L'Hospitalet de Llobregat | 13,404 | +0.7% |
| 29 | Burgos | 12,982 | -1% |
| 30 | Castelló de la Plana/Castellón de la Plana | 12,568 | -0.6% |
| 31 | Almería | 12,443 | +1.1% |
| 32 | Albacete | 12,419 | +0.4% |
| 33 | Santander | 11,816 | +0.9% |
| 34 | Cartagena | 11,692 | +1.7% |
| 35 | Logroño | 11,236 | -2.3% |
| 36 | Las Rozas de Madrid | 11,162 | -2.4% |
| 37 | Pozuelo de Alarcón | 11,058 | -0.3% |
| 38 | Jerez de la Frontera | 11,056 | +0.3% |
| 39 | Fuenlabrada | 10,856 | -0.6% |
| 40 | Lleida | 10,676 | -1.5% |
| 41 | Alcobendas | 10,590 | -2.9% |
| 42 | Badajoz | 10,422 | +0.3% |
| 43 | Sant Cugat del Vallès | 10,380 | 0% |
| 44 | Salamanca | 10,301 | +1.2% |
| 45 | San Cristóbal de La Laguna | 9,999 | +3.9% |
| 46 | Móstoles | 9,900 | +0.9% |
| 47 | Alcalá de Henares | 9,776 | +2.6% |
| 48 | Leganés | 9,748 | +1.2% |
| 49 | León | 9,587 | +0.1% |
| 50 | Mataró | 9,546 | +1.5% |
| 51 | Getafe | 9,488 | +2.2% |
| 52 | Girona | 9,419 | -0.6% |
| 53 | Santiago de Compostela | 9,380 | -0.3% |
| 54 | Ourense | 9,267 | -0.5% |
| 55 | Alcorcón | 9,122 | +1.1% |
| 56 | Lugo | 8,676 | -0.9% |
| 57 | Tarragona | 8,369 | +0.1% |
| 58 | Huelva | 7,676 | +1.4% |
| 59 | Dos Hermanas | 7,323 | +3.4% |
| 60 | San Sebastián de los Reyes | 7,263 | -0.5% |
| 61 | Arona | 7,238 | +4.7% |
| 62 | Cáceres | 7,203 | +1.2% |
| 63 | Jaén | 7,188 | -0.6% |
| 64 | Reus | 7,104 | +0.7% |
| 65 | Majadahonda | 6,953 | +0.7% |
| 66 | Mijas | 6,782 | +6.2% |
| 67 | Pontevedra | 6,747 | +1.7% |
| 68 | Fuengirola | 6,742 | +4.3% |
| 69 | Torrejón de Ardoz | 6,422 | +2% |
| 70 | Rivas-Vaciamadrid | 6,381 | +3.4% |
| 71 | Torrevieja | 6,131 | +4.8% |
| 72 | Cádiz | 6,083 | -0.6% |
| 73 | Orihuela | 5,907 | +4.5% |
| 74 | Toledo | 5,899 | +1.3% |
| 75 | Paterna | 5,852 | +1.3% |
| 76 | Boadilla del Monte | 5,815 | +1.2% |
| 77 | Lorca | 5,810 | -0.6% |
| 78 | San Bartolomé de Tirajana | 5,793 | +3.2% |
| 79 | Estepona | 5,744 | +4.4% |
| 80 | Eivissa | 5,743 | +3% |
| 81 | Getxo | 5,742 | -1.3% |
| 82 | Benalmádena | 5,739 | +7.2% |
| 82 | Roquetas de Mar | 5,739 | +2.6% |
| 84 | Telde | 5,658 | +2.5% |
| 85 | Algeciras | 5,657 | +0.4% |
| 86 | Castelldefels | 5,623 | +2.5% |
| 87 | Vélez-Málaga | 5,572 | +4.7% |
| 88 | Manresa | 5,538 | +0.6% |
| 89 | Benidorm | 5,534 | +0.4% |
| 90 | Cornellà de Llobregat | 5,326 | -1.7% |
| 91 | Ponferrada | 5,316 | -1% |
| 92 | Granollers | 5,304 | -0.9% |
| 92 | Melilla | 5,304 | +13.6% |
| 94 | Ciudad Real | 5,283 | +1.4% |
| 95 | Santa Coloma de Gramenet | 5,271 | +2.7% |
| 96 | Adeje | 5,206 | +3.3% |
| 97 | Torremolinos | 5,202 | +2.2% |
| 98 | Talavera de la Reina | 5,195 | +0.6% |
| 99 | Gandia | 5,177 | +2.3% |
| 100 | Calvià | 5,082 | +1.1% |
| 101 | El Puerto de Santa María | 5,074 | -0.4% |
| 102 | Parla | 5,065 | +3.1% |
| 103 | Palencia | 4,976 | -2.7% |
| 104 | El Ejido | 4,966 | -0.2% |
| 105 | Molina de Segura | 4,962 | -0.3% |
| 106 | Rubí | 4,947 | -0.4% |
| 107 | Torrent | 4,927 | +3.4% |
| 108 | Barakaldo | 4,872 | +0.4% |
| 109 | Coslada | 4,827 | -1% |
| 110 | Alcalá de Guadaíra | 4,800 | +1.2% |
| 111 | Zamora | 4,793 | -0.1% |
| 112 | Chiclana de la Frontera | 4,691 | +4.3% |
| 113 | Vilanova i la Geltrú | 4,652 | -0.2% |
| 114 | Sant Boi de Llobregat | 4,637 | -2.1% |
| 115 | Irun | 4,583 | -0.5% |
| 116 | Dénia | 4,531 | +3.5% |
| 117 | Guadalajara | 4,488 | -1.8% |
| 118 | Arrecife | 4,451 | +4.5% |
| 119 | Mérida | 4,297 | -0.9% |
| 120 | Valdemoro | 4,261 | +2% |
| 121 | Cerdanyola del Vallès | 4,251 | -0.4% |
| 122 | Arganda del Rey | 4,218 | +3% |
| 123 | Avilés | 4,163 | -1.5% |
| 124 | Siero | 4,115 | -0.2% |
| 125 | Huesca | 4,061 | -0.1% |
| 126 | Collado Villalba | 3,986 | +1.2% |
| 127 | Elda | 3,942 | +0.9% |
| 128 | Vic | 3,930 | -1.5% |
| 129 | Alcoi/Alcoy | 3,917 | +2.6% |
| 130 | Viladecans | 3,859 | -1.2% |
| 131 | Cuenca | 3,822 | +1.1% |
| 132 | Ceuta | 3,789 | -3.2% |
| 133 | Ferrol | 3,728 | -0.8% |
| 134 | Figueres | 3,722 | -0.4% |
| 135 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,688 | +1.7% |
| 136 | Ávila | 3,682 | -0.7% |
| 137 | Segovia | 3,570 | -1.2% |
| 138 | Mairena del Aljarafe | 3,541 | +0.9% |
| 139 | Sagunt/Sagunto | 3,540 | +1.6% |
| 140 | Esplugues de Llobregat | 3,501 | -0.1% |
| 141 | Manacor | 3,487 | +1.9% |
| 142 | San Fernando | 3,483 | +4.4% |
| 143 | Tres Cantos | 3,470 | -0.5% |
| 144 | Santa Lucía de Tirajana | 3,438 | +3.8% |
| 145 | Igualada | 3,422 | -1.4% |
| 146 | El Prat de Llobregat | 3,395 | -1.3% |
| 147 | Santa Eulària des Riu | 3,382 | +5.2% |
| 147 | Villaviciosa de Odón | 3,382 | +1% |
| 149 | Gavà | 3,374 | -1% |
| 150 | Puerto del Rosario | 3,303 | +6.4% |
| 151 | Sanlúcar de Barrameda | 3,299 | +4.2% |
| 152 | Sitges | 3,291 | +1.3% |
| 153 | Vila-real | 3,284 | +1.7% |
| 154 | Motril | 3,248 | -1.6% |
| 155 | Granadilla de Abona | 3,240 | +6.9% |
| 156 | Pinto | 3,211 | +1.6% |
| 157 | Rincón de la Victoria | 3,130 | +4.2% |
| 158 | Torrelavega | 3,113 | 0% |
| 159 | Xàbia/Jávea | 3,100 | +5.8% |
| 160 | Colmenar Viejo | 3,081 | +2.2% |
| 161 | Oleiros | 2,970 | +2.9% |
| 162 | Vilafranca del Penedès | 2,969 | +1% |
| 163 | Plasencia | 2,960 | +1% |
| 164 | Sant Feliu de Llobregat | 2,934 | +2.6% |
| 165 | Lucena | 2,921 | +1.6% |
| 166 | Aranjuez | 2,920 | +3.3% |
| 167 | Alzira | 2,900 | +0.9% |
| 168 | Llucmajor | 2,876 | +3.6% |
| 169 | Lloret de Mar | 2,842 | +3.1% |
| 170 | Ontinyent | 2,836 | +0.6% |
| 171 | Marratxí | 2,814 | +0.6% |
| 172 | Alhaurín de la Torre | 2,796 | +5.5% |
| 173 | Mollet del Vallès | 2,788 | +1% |
| 174 | San Fernando de Henares | 2,748 | -0.5% |
| 175 | Montcada i Reixac | 2,721 | -0% |
| 176 | Soria | 2,719 | -2% |
| 177 | Linares | 2,709 | +0.7% |
| 178 | Cambrils | 2,708 | +1.5% |
| 179 | Galapagar | 2,702 | +4.9% |
| 180 | Puerto de la Cruz | 2,694 | +2.6% |
| 181 | Yecla | 2,682 | +1.9% |
| 182 | Teruel | 2,669 | +0.8% |
| 183 | Tudela | 2,614 | -0.2% |
| 184 | Carballo | 2,613 | -1.2% |
| 185 | La Orotava | 2,612 | +5.5% |
| 186 | Utrera | 2,608 | +4.2% |
| 187 | Almendralejo | 2,590 | +3.7% |
| 188 | Vilagarcía de Arousa | 2,583 | -0.4% |
| 189 | La Línea de la Concepción | 2,567 | +1.8% |
| 190 | Barberà del Vallès | 2,562 | -2.3% |
| 191 | Torrelodones | 2,539 | +3.3% |
| 192 | Tomelloso | 2,527 | +1.4% |
| 193 | Alcantarilla | 2,516 | +0.1% |
| 194 | Ciutadella de Menorca | 2,507 | +2.6% |
| 195 | Torre-Pacheco | 2,502 | +1.8% |
| 196 | Maó | 2,491 | +1.5% |
| 197 | Don Benito | 2,459 | +0.2% |
| 198 | Blanes | 2,443 | +3% |
| 199 | Olot | 2,421 | -0.1% |
| 200 | Petrer | 2,395 | +0.5% |
| 201 | Arroyomolinos | 2,382 | +5.9% |
| 201 | La Oliva | 2,382 | +8.1% |
| 203 | Écija | 2,377 | +1.1% |
| 204 | Antequera | 2,369 | -0.4% |
| 205 | El Vendrell | 2,367 | +1.1% |
| 206 | Arteixo | 2,366 | -1.8% |
| 207 | Altea | 2,362 | +1.6% |
| 208 | Sant Joan Despí | 2,351 | +0.5% |
| 209 | Ronda | 2,335 | +3.5% |
| 210 | Úbeda | 2,317 | -1.3% |
| 211 | Sant Pere de Ribes | 2,314 | +2.8% |
| 212 | Ames | 2,307 | +0.3% |
| 213 | Tortosa | 2,285 | 0% |
| 214 | Basauri | 2,277 | -3.3% |
| 215 | Ripollet | 2,273 | -1% |
| 216 | Villanueva de la Cañada | 2,267 | +3.8% |
| 217 | Aranda de Duero | 2,266 | +1% |
| 217 | Narón | 2,266 | +0.9% |
| 219 | Tías | 2,259 | +0.9% |
| 220 | Villena | 2,248 | +0.7% |
| 221 | Los Realejos | 2,224 | +5.4% |
| 222 | el Campello | 2,223 | +8.2% |
| 223 | Santa Pola | 2,218 | +5.1% |
| 224 | Inca | 2,216 | +4.4% |
| 225 | Culleredo | 2,214 | +1% |
| 226 | Portugalete | 2,201 | +1.3% |
| 227 | La Rinconada | 2,193 | +1.6% |
| 228 | Xàtiva | 2,185 | +2.7% |
| 229 | Humanes de Madrid | 2,182 | -1.1% |
| 230 | Andújar | 2,176 | +0.4% |
| 231 | El Masnou | 2,173 | +2.6% |
| 232 | Camargo | 2,159 | +1% |
| 233 | San Javier | 2,152 | +1.4% |
| 234 | Mislata | 2,137 | +3.2% |
| 235 | Riba-roja de Túria | 2,126 | +1.6% |
| 236 | Vinaròs | 2,123 | -0.5% |
| 237 | Castro-Urdiales | 2,109 | +0.8% |
| 238 | Illescas | 2,104 | +2.1% |
| 238 | Molins de Rei | 2,104 | +0.5% |
| 240 | Crevillent | 2,101 | -0.9% |
| 241 | Sant Adrià de Besòs | 2,095 | -0.7% |
| 242 | Sant Just Desvern | 2,093 | -3.3% |
| 243 | la Vila Joiosa/Villajoyosa | 2,092 | +3.9% |
| 243 | Sant Quirze del Vallès | 2,092 | +2.4% |
| 245 | San Roque | 2,075 | +2.5% |
| 246 | Sant Joan d'Alacant | 2,063 | +3.6% |
| 247 | Calp | 2,061 | +4.2% |
| 248 | Premià de Mar | 2,060 | +1.8% |
| 249 | Errenteria | 2,059 | +1% |
| 250 | Santurtzi | 2,057 | -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. 463 municipalities with data in other periods have no value for 2019 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, 2019) [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, 2019. 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=2019. 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, 2019. 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=2019.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2019 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2019 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2019,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2019}},
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=2019. 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, 2019
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=2019
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2019.
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 311,047 in 2019, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zamayón, with 4 in 2019.
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. 463 municipalities have no value for 2019 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