Municipalities of Spain by active companies
Madrid had the highest active companies of 6903 municipalities in 2022, at 321,340. Zamayón had the lowest, at 4. The median was 47 and the figure for Spain was 3.43 million. Source: the Instituto Nacional de Estadística.
Top 40 municipalities, 2022
Full ranking
| Rank | Municipalities | 2022 | Change on 2021 |
|---|---|---|---|
| 1 | Madrid | 321,340 | +2.3% |
| 2 | Barcelona | 186,731 | +1.9% |
| 3 | València | 69,365 | +2.6% |
| 4 | Sevilla | 51,883 | +1.8% |
| 5 | Zaragoza | 45,267 | +0.6% |
| 6 | Málaga | 43,211 | +2.7% |
| 7 | Palma | 37,112 | +2.8% |
| 8 | Murcia | 33,937 | +1.9% |
| 9 | Las Palmas de Gran Canaria | 28,833 | +1.1% |
| 10 | Alacant/Alicante | 27,388 | +1.5% |
| 11 | Bilbao | 26,944 | +3.2% |
| 12 | Vigo | 22,859 | +1.1% |
| 13 | Córdoba | 22,374 | +1.8% |
| 14 | Marbella | 20,313 | +6.6% |
| 15 | A Coruña | 20,175 | +1% |
| 16 | Granada | 19,783 | +2.1% |
| 17 | Valladolid | 19,288 | +0.6% |
| 18 | Gijón | 17,960 | +0.6% |
| 19 | Elx/Elche | 17,877 | +1% |
| 20 | Santa Cruz de Tenerife | 16,530 | +2.3% |
| 21 | Oviedo | 16,047 | +0.8% |
| 22 | Donostia/San Sebastián | 15,999 | +2.3% |
| 23 | Pamplona/Iruña | 15,128 | +3.8% |
| 24 | Terrassa | 15,073 | +1.8% |
| 25 | Sabadell | 14,884 | +1.3% |
| 26 | L'Hospitalet de Llobregat | 14,429 | +2.5% |
| 27 | Badalona | 13,913 | +1.7% |
| 28 | Vitoria-Gasteiz | 13,846 | +0.6% |
| 29 | Castelló de la Plana/Castellón de la Plana | 13,604 | +2% |
| 30 | Almería | 12,787 | +1.4% |
| 31 | Burgos | 12,614 | +0.3% |
| 32 | Albacete | 12,422 | +0.5% |
| 33 | Santander | 11,976 | +1.1% |
| 34 | Jerez de la Frontera | 11,650 | +2.4% |
| 35 | Cartagena | 11,531 | +0.7% |
| 36 | Pozuelo de Alarcón | 11,509 | +2.6% |
| 37 | Las Rozas de Madrid | 11,317 | +1.2% |
| 38 | Logroño | 11,233 | +1.2% |
| 39 | Sant Cugat del Vallès | 10,942 | +4% |
| 40 | Alcobendas | 10,941 | +1.8% |
| 41 | Fuenlabrada | 10,782 | +0.4% |
| 42 | Lleida | 10,605 | +1.1% |
| 43 | Badajoz | 10,289 | +1.8% |
| 44 | Alcalá de Henares | 10,188 | +1.2% |
| 45 | San Cristóbal de La Laguna | 10,085 | +2.6% |
| 46 | Getafe | 10,032 | +1.8% |
| 47 | Móstoles | 10,015 | +1.2% |
| 48 | Salamanca | 9,940 | -0.4% |
| 49 | Leganés | 9,896 | +0.4% |
| 50 | Mataró | 9,825 | +1.6% |
| 51 | Girona | 9,774 | +2.3% |
| 52 | Alcorcón | 9,392 | +1.6% |
| 53 | León | 9,243 | +0.1% |
| 54 | Santiago de Compostela | 9,161 | +1.5% |
| 55 | Ourense | 8,787 | -0.2% |
| 56 | Tarragona | 8,642 | +1.7% |
| 57 | Lugo | 8,312 | -0.5% |
| 58 | Huelva | 7,752 | +1.6% |
| 59 | Dos Hermanas | 7,715 | +2.9% |
| 60 | Mijas | 7,621 | +5.5% |
| 61 | San Sebastián de los Reyes | 7,379 | +0.9% |
| 62 | Jaén | 7,272 | +1.2% |
| 63 | Reus | 7,216 | +2% |
| 64 | Arona | 7,123 | +4% |
| 65 | Fuengirola | 7,059 | +3.7% |
| 66 | Majadahonda | 7,043 | +2.1% |
| 67 | Cáceres | 7,032 | +0.7% |
| 68 | Rivas-Vaciamadrid | 6,789 | +1.2% |
| 69 | Torrejón de Ardoz | 6,700 | +1.8% |
| 70 | Pontevedra | 6,526 | +0.5% |
| 71 | Boadilla del Monte | 6,386 | +4.6% |
| 72 | Torrevieja | 6,377 | +2.9% |
| 73 | Estepona | 6,371 | +6.3% |
| 74 | Benalmádena | 6,351 | +5.1% |
| 75 | Cádiz | 6,217 | +0.2% |
| 76 | Roquetas de Mar | 6,172 | +3.4% |
| 77 | Orihuela | 6,053 | +1.1% |
| 78 | Paterna | 6,022 | +1.1% |
| 79 | Toledo | 5,996 | +1% |
| 80 | Vélez-Málaga | 5,978 | +2.9% |
| 81 | Eivissa | 5,930 | +3.6% |
| 82 | Lorca | 5,913 | +0.8% |
| 83 | Getxo | 5,881 | +3.4% |
| 84 | Castelldefels | 5,867 | +3.1% |
| 85 | Algeciras | 5,829 | +1.6% |
| 86 | Telde | 5,806 | +2% |
| 87 | Santa Coloma de Gramenet | 5,691 | +2.9% |
| 88 | Benidorm | 5,684 | +3.5% |
| 89 | Torremolinos | 5,635 | +4.6% |
| 90 | Manresa | 5,631 | +1.2% |
| 91 | San Bartolomé de Tirajana | 5,575 | +3.5% |
| 92 | Cornellà de Llobregat | 5,495 | +2% |
| 93 | Parla | 5,441 | +2.3% |
| 94 | Talavera de la Reina | 5,325 | +0.7% |
| 95 | El Puerto de Santa María | 5,318 | +2.8% |
| 96 | Granollers | 5,313 | +0.7% |
| 97 | Adeje | 5,292 | +5.5% |
| 97 | Calvià | 5,292 | +4.1% |
| 99 | El Ejido | 5,287 | +2.8% |
| 100 | Ciudad Real | 5,263 | +2.7% |
| 101 | Torrent | 5,252 | +2.1% |
| 102 | Gandia | 5,226 | +0.4% |
| 103 | Molina de Segura | 5,142 | +3.9% |
| 104 | Chiclana de la Frontera | 5,108 | +2.6% |
| 105 | Ponferrada | 5,058 | +0.6% |
| 106 | Alcalá de Guadaíra | 5,012 | +2.3% |
| 107 | Rubí | 4,983 | -0.1% |
| 108 | Barakaldo | 4,910 | +1.3% |
| 109 | Melilla | 4,856 | -3.3% |
| 110 | Coslada | 4,847 | +0.9% |
| 111 | Palencia | 4,842 | -0.6% |
| 112 | Vilanova i la Geltrú | 4,822 | +1.2% |
| 113 | Dénia | 4,777 | +2.4% |
| 114 | Zamora | 4,637 | +0.2% |
| 115 | Sant Boi de Llobregat | 4,623 | +0.5% |
| 116 | Irun | 4,537 | +2.9% |
| 117 | Valdemoro | 4,511 | +2.9% |
| 118 | Guadalajara | 4,493 | +2.1% |
| 119 | Arganda del Rey | 4,386 | +1.6% |
| 120 | Arrecife | 4,351 | +1.7% |
| 121 | Cerdanyola del Vallès | 4,250 | +1% |
| 122 | Mérida | 4,206 | +3.1% |
| 123 | Siero | 4,095 | +1.5% |
| 124 | Collado Villalba | 4,083 | +2% |
| 125 | Avilés | 4,020 | -0.3% |
| 126 | Huesca | 3,992 | +1.2% |
| 127 | Elda | 3,958 | +0.9% |
| 128 | Vic | 3,940 | +1.2% |
| 129 | Alcoi/Alcoy | 3,904 | -0.2% |
| 130 | Viladecans | 3,855 | +0.2% |
| 131 | Santa Eulària des Riu | 3,755 | +6.5% |
| 132 | Ceuta | 3,744 | -0.1% |
| 133 | Sant Vicent del Raspeig/San Vicente del Raspeig | 3,732 | +1.9% |
| 134 | Cuenca | 3,729 | +2% |
| 135 | Figueres | 3,667 | +0.6% |
| 136 | Mairena del Aljarafe | 3,633 | +4% |
| 137 | Ávila | 3,627 | +0.8% |
| 138 | Sanlúcar de Barrameda | 3,583 | +3.4% |
| 139 | Esplugues de Llobregat | 3,577 | +1.7% |
| 140 | Sagunt/Sagunto | 3,574 | +1.2% |
| 141 | Segovia | 3,572 | +1.2% |
| 142 | Manacor | 3,565 | +2% |
| 143 | Tres Cantos | 3,560 | +0.5% |
| 144 | Santa Lucía de Tirajana | 3,542 | +2.3% |
| 145 | San Fernando | 3,540 | +1.8% |
| 146 | Gavà | 3,479 | +2.5% |
| 147 | Ferrol | 3,466 | -0.5% |
| 148 | Igualada | 3,449 | +1.6% |
| 149 | Sitges | 3,426 | +3.6% |
| 150 | El Prat de Llobregat | 3,402 | +0.7% |
| 151 | Motril | 3,373 | +2.7% |
| 152 | Pinto | 3,360 | +3% |
| 152 | Villaviciosa de Odón | 3,360 | +0.8% |
| 154 | Granadilla de Abona | 3,356 | +4.7% |
| 155 | Rincón de la Victoria | 3,339 | +5.1% |
| 156 | Xàbia/Jávea | 3,306 | +3.1% |
| 157 | Vila-real | 3,247 | +1.5% |
| 158 | Colmenar Viejo | 3,206 | +3.4% |
| 159 | Puerto del Rosario | 3,191 | +2.5% |
| 160 | Aranjuez | 3,072 | +3.7% |
| 161 | Lloret de Mar | 3,056 | +3.3% |
| 162 | Sant Feliu de Llobregat | 3,022 | +2.6% |
| 163 | Oleiros | 3,013 | +1.1% |
| 164 | Alzira | 2,993 | +2.1% |
| 165 | Alhaurín de la Torre | 2,989 | +3.9% |
| 166 | Vilafranca del Penedès | 2,986 | +1% |
| 167 | Torrelavega | 2,980 | -0.9% |
| 168 | Plasencia | 2,943 | +0.9% |
| 169 | Marratxí | 2,934 | +3.7% |
| 170 | Lucena | 2,911 | +1.5% |
| 171 | Llucmajor | 2,905 | +3.1% |
| 172 | Ontinyent | 2,861 | +0.9% |
| 173 | Cambrils | 2,841 | +4% |
| 174 | Galapagar | 2,810 | +1.9% |
| 175 | San Fernando de Henares | 2,785 | +0.9% |
| 176 | Mollet del Vallès | 2,770 | +1.2% |
| 177 | Utrera | 2,755 | +3.6% |
| 178 | Linares | 2,750 | +1.3% |
| 179 | Tudela | 2,730 | +3.7% |
| 180 | Soria | 2,718 | +0.6% |
| 181 | Montcada i Reixac | 2,715 | -0.3% |
| 182 | Yecla | 2,708 | +2% |
| 183 | La Línea de la Concepción | 2,703 | +3.5% |
| 184 | Puerto de la Cruz | 2,664 | +3.4% |
| 185 | La Oliva | 2,660 | +9.4% |
| 186 | Torrelodones | 2,631 | +1.3% |
| 187 | Torre-Pacheco | 2,630 | +1.4% |
| 188 | Carballo | 2,611 | +1.3% |
| 189 | Vilagarcía de Arousa | 2,606 | +1.1% |
| 190 | La Orotava | 2,591 | +2.1% |
| 191 | Teruel | 2,586 | +0.9% |
| 192 | Maó | 2,574 | +2.4% |
| 193 | Ciutadella de Menorca | 2,571 | +1.3% |
| 194 | Tomelloso | 2,559 | +2.8% |
| 195 | Arroyomolinos | 2,556 | +3.5% |
| 196 | Barberà del Vallès | 2,545 | +0.4% |
| 197 | Don Benito | 2,544 | +2.3% |
| 198 | Blanes | 2,538 | +2.8% |
| 199 | Almendralejo | 2,537 | +2.3% |
| 200 | Alcantarilla | 2,504 | +0.2% |
| 201 | Écija | 2,500 | +1.1% |
| 202 | Altea | 2,486 | +4.3% |
| 203 | Antequera | 2,469 | +3.2% |
| 204 | Sant Pere de Ribes | 2,464 | +1.9% |
| 205 | Petrer | 2,462 | +2.4% |
| 206 | El Vendrell | 2,457 | +1.7% |
| 207 | Ronda | 2,450 | +3.6% |
| 208 | Olot | 2,447 | +2.7% |
| 209 | Santa Pola | 2,441 | +4.9% |
| 210 | Sant Joan Despí | 2,405 | +3% |
| 211 | Ripollet | 2,372 | +2.8% |
| 212 | Úbeda | 2,371 | +0.9% |
| 213 | San Roque | 2,368 | +6% |
| 214 | Ames | 2,330 | +1.8% |
| 215 | Villanueva de la Cañada | 2,329 | +2.7% |
| 216 | Arteixo | 2,310 | +2.3% |
| 217 | el Campello | 2,308 | +2.5% |
| 218 | Aranda de Duero | 2,282 | +1.4% |
| 219 | Humanes de Madrid | 2,279 | +2.8% |
| 220 | Basauri | 2,278 | +0.6% |
| 220 | Tortosa | 2,278 | +1.7% |
| 222 | La Rinconada | 2,276 | +1.8% |
| 222 | San Javier | 2,276 | +2.6% |
| 224 | Villena | 2,269 | +1.2% |
| 225 | El Masnou | 2,265 | +2.1% |
| 226 | Inca | 2,258 | +2% |
| 227 | Andújar | 2,246 | +2% |
| 228 | Xàtiva | 2,233 | +2.1% |
| 229 | Los Realejos | 2,229 | +2.9% |
| 230 | Sant Adrià de Besòs | 2,219 | +3.3% |
| 231 | Narón | 2,202 | +1.1% |
| 232 | Sant Josep de sa Talaia | 2,192 | +5% |
| 233 | Camargo | 2,191 | 0% |
| 234 | Culleredo | 2,183 | +0.9% |
| 234 | Vinaròs | 2,183 | +1.4% |
| 236 | Calp | 2,180 | +3.7% |
| 237 | Mislata | 2,179 | +0.5% |
| 238 | Illescas | 2,178 | +1% |
| 239 | la Vila Joiosa/Villajoyosa | 2,155 | +2.7% |
| 240 | Molins de Rei | 2,145 | +3.5% |
| 241 | Castro-Urdiales | 2,137 | +0.2% |
| 242 | Sant Just Desvern | 2,134 | +1.9% |
| 243 | Almuñécar | 2,130 | +4.5% |
| 244 | Riba-roja de Túria | 2,123 | 0% |
| 245 | Tías | 2,117 | +2.2% |
| 246 | Leioa | 2,116 | +5% |
| 247 | Burjassot | 2,112 | +2.1% |
| 248 | Santurtzi | 2,111 | +3.2% |
| 249 | Crevillent | 2,107 | +1% |
| 250 | Sant Joan d'Alacant | 2,106 | +2.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. 456 municipalities with data in other periods have no value for 2022 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, 2022) [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, 2022. 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=2022. 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, 2022. 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=2022.
Harvard
Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2022 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2022 (Accessed: 12 October 2026).
BibTeX
@misc{instituto_municipalities_of_spain_by_2022,
author = {{Instituto Nacional de Estadística}},
title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2022}},
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=2022. 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, 2022
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=2022
Y2 - 2026/10/12
N1 - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2022.
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 321,340 in 2022, according to the Instituto Nacional de Estadística.
Which municipality has the lowest active companies?
Zamayón, with 4 in 2022.
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. 456 municipalities have no value for 2022 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