Municipalities of Spain by active companies

Madrid had the highest active companies of 6890 municipalities in 2024, at 289,194. Zorita de los Canes had the lowest, at 4. The median was 46 and the figure for Spain was 3.26 million. Source: the Instituto Nacional de Estadística.

Keep it in a collection in your library.
Highest289,194Madrid
Median466890 municipalities
Spain3,255,276History

Top 40 municipalities, 2024

Madrid: 289,194 countMadrid289,194Barcelona: 171,152 countBarcelona171,152València: 67,417 countValència67,417Sevilla: 48,586 countSevilla48,586Málaga: 42,375 countMálaga42,375Zaragoza: 42,371 countZaragoza42,371Palma: 35,613 countPalma35,613Murcia: 31,943 countMurcia31,943Las Palmas de Gran Canaria: 25,583 countLas Palmas de Gran Canaria25,583Alacant/Alicante: 25,467 countAlacant/Alicante25,467Bilbao: 25,329 countBilbao25,329Vigo: 21,029 countVigo21,029Córdoba: 21,008 countCórdoba21,008Marbella: 20,062 countMarbella20,062A Coruña: 18,742 countA Coruña18,742Granada: 18,498 countGranada18,498Valladolid: 18,130 countValladolid18,130Gijón: 17,107 countGijón17,107Elx/Elche: 16,442 countElx/Elche16,442Donostia/San Sebastián: 15,350 countDonostia/San Sebastián15,350Oviedo: 15,018 countOviedo15,018Santa Cruz de Tenerife: 15,006 countSanta Cruz de Tenerife15,006Terrassa: 14,162 countTerrassa14,162Sabadell: 14,075 countSabadell14,075L'Hospitalet de Llobregat: 13,734 countL'Hospitalet de Llobregat13,734Badalona: 13,442 countBadalona13,442Pamplona/Iruña: 13,239 countPamplona/Iruña13,239Vitoria-Gasteiz: 13,101 countVitoria-Gasteiz13,101Castelló de la Plana/Castellón de la Plana: 12,539 countCastelló de la Plana/Castellón de…12,539Almería: 12,056 countAlmería12,056Burgos: 11,750 countBurgos11,750Albacete: 11,492 countAlbacete11,492Santander: 11,474 countSantander11,474Jerez de la Frontera: 11,337 countJerez de la Frontera11,337Cartagena: 10,865 countCartagena10,865Pozuelo de Alarcón: 10,682 countPozuelo de Alarcón10,682Sant Cugat del Vallès: 10,623 countSant Cugat del Vallès10,623Las Rozas de Madrid: 10,518 countLas Rozas de Madrid10,518Logroño: 10,393 countLogroño10,393Alcobendas: 10,056 countAlcobendas10,056Madrid: 289,194 countMadrid289,194Barcelona: 171,152 countBarcelona171,152València: 67,417 countValència67,417Sevilla: 48,586 countSevilla48,586Málaga: 42,375 countMálaga42,375Zaragoza: 42,371 countZaragoza42,371Palma: 35,613 countPalma35,613Murcia: 31,943 countMurcia31,943Las Palmas de Gran Canaria: 25,583 countLas Palmas de Gran Canaria25,583Alacant/Alicante: 25,467 countAlacant/Alicante25,467Bilbao: 25,329 countBilbao25,329Vigo: 21,029 countVigo21,029Córdoba: 21,008 countCórdoba21,008Marbella: 20,062 countMarbella20,062A Coruña: 18,742 countA Coruña18,742Granada: 18,498 countGranada18,498Valladolid: 18,130 countValladolid18,130Gijón: 17,107 countGijón17,107Elx/Elche: 16,442 countElx/Elche16,442Donostia/San Sebastián: 15,350 countDonostia/San Sebastián15,350Oviedo: 15,018 countOviedo15,018Santa Cruz de Tenerife: 15,006 countSanta Cruz de Tenerife15,006Terrassa: 14,162 countTerrassa14,162Sabadell: 14,075 countSabadell14,075L'Hospitalet de Llobregat: 13,734 countL'Hospitalet de Llobregat13,734Badalona: 13,442 countBadalona13,442Pamplona/Iruña: 13,239 countPamplona/Iruña13,239Vitoria-Gasteiz: 13,101 countVitoria-Gasteiz13,101Castelló de la Plana/Castellón de la Plana: 12,539 countCastelló de la Plana/Castellón de la Plana12,539Almería: 12,056 countAlmería12,056Burgos: 11,750 countBurgos11,750Albacete: 11,492 countAlbacete11,492Santander: 11,474 countSantander11,474Jerez de la Frontera: 11,337 countJerez de la Frontera11,337Cartagena: 10,865 countCartagena10,865Pozuelo de Alarcón: 10,682 countPozuelo de Alarcón10,682Sant Cugat del Vallès: 10,623 countSant Cugat del Vallès10,623Las Rozas de Madrid: 10,518 countLas Rozas de Madrid10,518Logroño: 10,393 countLogroño10,393Alcobendas: 10,056 countAlcobendas10,056
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2024
count
Change on 2023
1Madrid289,194+2.5%
2Barcelona171,152+2.4%
3València67,417+3.2%
4Sevilla48,586+1.8%
5Málaga42,375+3.3%
6Zaragoza42,371+0.7%
7Palma35,613+2%
8Murcia31,943+1.5%
9Las Palmas de Gran Canaria25,583+1%
10Alacant/Alicante25,467+3.6%
11Bilbao25,329+1.3%
12Vigo21,029+0.2%
13Córdoba21,008+0.3%
14Marbella20,062+4.2%
15A Coruña18,742+0.2%
16Granada18,498+1.1%
17Valladolid18,130+0.6%
18Gijón17,107-0.1%
19Elx/Elche16,442+1%
20Donostia/San Sebastián15,350+1.2%
21Oviedo15,018+0.5%
22Santa Cruz de Tenerife15,006+1.5%
23Terrassa14,162+1.1%
24Sabadell14,075+1.9%
25L'Hospitalet de Llobregat13,734+2.9%
26Badalona13,442+2.3%
27Pamplona/Iruña13,239-0.7%
28Vitoria-Gasteiz13,101+0.5%
29Castelló de la Plana/Castellón de la Plana12,539+0.8%
30Almería12,056+1.3%
31Burgos11,750+0.8%
32Albacete11,492-0.1%
33Santander11,474+0.5%
34Jerez de la Frontera11,337+1.3%
35Cartagena10,865+1.3%
36Pozuelo de Alarcón10,682+1.4%
37Sant Cugat del Vallès10,623+0.5%
38Las Rozas de Madrid10,518+1.5%
39Logroño10,393-0.4%
40Alcobendas10,056+2.9%
41Fuenlabrada10,015+1.4%
42Lleida9,977+1.5%
43Alcalá de Henares9,549+1.9%
44Badajoz9,533+2.1%
45Girona9,524+2.5%
46Getafe9,428+1.6%
47San Cristóbal de La Laguna9,320+1.8%
48Mataró9,296+1.5%
49Leganés9,243+1.5%
50Salamanca9,178+0.3%
51Móstoles9,076+0.3%
52Alcorcón8,703+1%
53Santiago de Compostela8,621+0.7%
54León8,447-0.2%
55Mijas8,081+4.6%
56Ourense8,033-0.2%
57Tarragona7,988+1.2%
58Dos Hermanas7,632+2.2%
59Lugo7,560-0.7%
60Huelva7,238-0.3%
61Fuengirola7,096+5.3%
62Reus6,842+0.9%
63Jaén6,833+0.4%
64San Sebastián de los Reyes6,695+0.1%
65Rivas-Vaciamadrid6,676+1.8%
66Benalmádena6,647+4.4%
67Boadilla del Monte6,611+2.8%
68Estepona6,602+5.5%
69Majadahonda6,583+2.6%
70Arona6,577+2.4%
71Cáceres6,560+0.9%
72Torrevieja6,406+8.7%
73Torrejón de Ardoz6,337+1.6%
74Pontevedra6,0760%
75Roquetas de Mar5,981+1.5%
76Vélez-Málaga5,952+1.3%
77Paterna5,907+2.6%
78Orihuela5,864+5.3%
79Cádiz5,844+0.8%
80Eivissa5,840+3.3%
81Castelldefels5,639+2.1%
82Toledo5,638+2.1%
83Torremolinos5,615+2.7%
84Lorca5,610+0.7%
85Getxo5,542+0.8%
86Telde5,457+0.5%
87Algeciras5,454+0.5%
88Benidorm5,360+2.3%
89Manresa5,314+0.5%
90Santa Coloma de Gramenet5,302+1.5%
91Torrent5,233+3.1%
92Parla5,224+2.4%
93Calvià5,214+2%
94Adeje5,189+5.9%
95Cornellà de Llobregat5,140+2.6%
96Chiclana de la Frontera5,102+2.1%
97El Puerto de Santa María5,078+1.5%
98Molina de Segura5,069+1.6%
99San Bartolomé de Tirajana5,061+3.1%
100Gandia4,988+1.9%
101El Ejido4,984+1.3%
102Granollers4,969+2.4%
103Talavera de la Reina4,919-0.6%
104Alcalá de Guadaíra4,884+0.3%
105Ciudad Real4,869+0.2%
106Rubí4,807+1.9%
107Vilanova i la Geltrú4,703+2.3%
108Barakaldo4,690+0.1%
109Dénia4,659+3.2%
110Ponferrada4,525-1.3%
111Palencia4,428-0.4%
112Coslada4,380+1.6%
113Sant Boi de Llobregat4,374+1.7%
114Zamora4,370+1.5%
115Melilla4,354-0.4%
116Irun4,340-0.2%
117Valdemoro4,330+3.4%
118Guadalajara4,184+1.1%
119Arganda del Rey4,090+2.6%
120Santa Eulària des Riu4,015+5.6%
121Arrecife3,998+6%
122Mérida3,971+2.1%
123Cerdanyola del Vallès3,955+0.8%
124Siero3,898-1.6%
125Collado Villalba3,864+0.5%
126Vic3,785+1.3%
127Avilés3,748-1.3%
128Alcoi/Alcoy3,717+1.4%
129Viladecans3,692+0.4%
130Huesca3,658-1%
131Mairena del Aljarafe3,624+1.5%
132Manacor3,592+3.8%
133Elda3,588-0.9%
134Rincón de la Victoria3,543+3.4%
135Sagunt/Sagunto3,522+4%
136Sant Vicent del Raspeig/San Vicente del Raspeig3,519+1.6%
137Sanlúcar de Barrameda3,495+1%
138Sitges3,493+3.4%
139Santa Lucía de Tirajana3,472+3.7%
140Tres Cantos3,464+2.4%
141San Fernando3,425+2.7%
142Cuenca3,380-0.9%
143Ávila3,378-0.6%
144Gavà3,310+2%
144Igualada3,310+1.4%
146Figueres3,307+1.3%
147Segovia3,304+0.1%
148Granadilla de Abona3,302+3.4%
149Ceuta3,301-2%
150Esplugues de Llobregat3,270+0.2%
151Xàbia/Jávea3,256+5.3%
152Alhaurín de la Torre3,215+3%
153El Prat de Llobregat3,214+1.3%
154Motril3,203+1.9%
155Colmenar Viejo3,182+1.8%
156Pinto3,163+1.7%
157Ferrol3,108-1.3%
158Vila-real3,084+2.5%
159Villaviciosa de Odón3,025+0.4%
160Lloret de Mar2,960+2.7%
161Marratxí2,948+1.2%
162Puerto del Rosario2,915+5.3%
163Oleiros2,905-0.2%
164Aranjuez2,894+0.9%
165Lucena2,879+0.8%
166Llucmajor2,870+1.5%
167Torrelavega2,835-0.1%
168Alzira2,829+0.7%
169Vilafranca del Penedès2,821+1.9%
170Sant Feliu de Llobregat2,819+1%
171La Oliva2,765+5.7%
172Arroyomolinos2,747+6.3%
173Cambrils2,714+2.8%
174Plasencia2,708-1%
175Utrera2,645+4.2%
176Galapagar2,643-0.8%
177Ontinyent2,640+0.2%
178Ciutadella de Menorca2,634+1.7%
179Yecla2,610+0.2%
180Montcada i Reixac2,596+2.4%
181Mollet del Vallès2,591+2.3%
182Soria2,585+0.5%
183Linares2,567-1.2%
184Torrelodones2,529+1.6%
185Maó2,528+1.6%
186La Línea de la Concepción2,522+0.4%
187La Orotava2,520+2.6%
187Vilagarcía de Arousa2,520+2.1%
189Tudela2,505+0.4%
190Almendralejo2,497+2.2%
191San Fernando de Henares2,495+2.5%
192Carballo2,494-0.6%
193Blanes2,490+1.9%
194Teruel2,466+1.9%
195Sant Pere de Ribes2,447+2.2%
196Barberà del Vallès2,444-0.4%
197Santa Pola2,438+3.2%
198Torre-Pacheco2,437+0.3%
199Puerto de la Cruz2,421+1.9%
200Alcantarilla2,418+1.9%
200Sant Josep de sa Talaia2,418+3%
202Don Benito2,415+0.9%
203Olot2,412+3.9%
204El Vendrell2,406+1.8%
205Altea2,377+2.4%
206San Roque2,373+3.7%
207Tomelloso2,372+0.5%
208Antequera2,358+0.2%
209Écija2,347-0%
210Ronda2,329-0.8%
211Sant Joan Despí2,326+3.2%
212San Javier2,266+2.7%
213el Campello2,263+3.7%
214Inca2,262+5.5%
215Úbeda2,257-0.8%
216Ames2,251-0.8%
217Villanueva de la Cañada2,230+0.9%
218La Rinconada2,212+1.1%
219Ripollet2,205+0.1%
220Sant Adrià de Besòs2,196+2.8%
221Petrer2,195-0.7%
222Calp2,193+4%
223Sant Just Desvern2,191+1.9%
224Los Realejos2,170+2.6%
225Arteixo2,165-0.6%
226Aranda de Duero2,158-0%
227Almuñécar2,151+2.5%
228Mislata2,145+2.3%
229Villena2,143-0.5%
230Basauri2,142+0.1%
231Culleredo2,131+1.8%
231Illescas2,131+2.9%
233El Masnou2,126-0.1%
234Tortosa2,125+2.1%
235Camargo2,119+1%
236la Vila Joiosa/Villajoyosa2,117+4.4%
237Humanes de Madrid2,105+0.9%
238Molins de Rei2,104+2.8%
239Sant Quirze del Vallès2,095+2.8%
240Alhaurín el Grande2,087+3.8%
241Andújar2,085-1.4%
242Bétera2,072+0.8%
243Xàtiva2,071-1%
244Castro-Urdiales2,065-0%
245Vinaròs2,062+0.4%
246Riba-roja de Túria2,060+0.5%
247Narón2,039-0.9%
248Sant Antoni de Portmany2,026+3.3%
249Águilas2,024+0.4%
250Leioa2,004+0.1%

Showing the top 250 of 6890. The Excel download has every row.

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. 469 municipalities with data in other periods have no value for 2024 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

The publisher is the author. Invokely is named only as the place the figures were read, where a style asks for it.

APA 7

Instituto Nacional de Estadística. (2026). Directorio central de empresas: empresas activas por municipio (tabla 4721) (Municipalities of Spain by active companies, 2024) [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, 2024. 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=2024. 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, 2024. 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=2024.

Harvard

Instituto Nacional de Estadística (2026) Directorio central de empresas: empresas activas por municipio (tabla 4721), Municipalities of Spain by active companies, 2024 [Dataset]. Available at: https://www.ine.es/jaxiT3/Tabla.htm?t=4721, via Invokely: https://invokely.ai/rankings/active-companies/spain-municipalities?period=2024 (Accessed: 12 October 2026).

BibTeX
@misc{instituto_municipalities_of_spain_by_2024,
  author = {{Instituto Nacional de Estadística}},
  title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2024}},
  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=2024. 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, 2024
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=2024
Y2  - 2026/10/12
N1  - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities?period=2024.
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  - 
Embed this chart

Paste this code into a web page or a blog post. The chart shows the latest figures as they are published, with the source and a link back to this page.

Sites that read oEmbed links, such as WordPress, can show the chart when you paste the link to this page.

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

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

Questions

Which municipality has the highest active companies?

Madrid, with 289,194 in 2024, according to the Instituto Nacional de Estadística.

Which municipality has the lowest active companies?

Zorita de los Canes, with 4 in 2024.

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. 469 municipalities have no value for 2024 and are not ranked.

Active companies: other rankings

Municipalities of Spain: more rankings