Municipalities of Spain by active companies, 2025

Madrid had the highest active companies of 6925 municipalities in 2025, at 297,693. Zorita de la Frontera had the lowest, at 4. The median was 46 and the figure for Spain was 3.31 million. Source: the Instituto Nacional de Estadística.

Keep it in a collection in your library.
Highest297,693Madrid
Median466925 municipalities
Spain3,310,824History

Top 40 municipalities, 2025

Madrid: 297,693 countMadrid297,693Barcelona: 174,088 countBarcelona174,088València: 70,256 countValència70,256Sevilla: 49,304 countSevilla49,304Málaga: 43,994 countMálaga43,994Zaragoza: 42,897 countZaragoza42,897Palma: 36,623 countPalma36,623Murcia: 32,516 countMurcia32,516Alacant/Alicante: 26,372 countAlacant/Alicante26,372Las Palmas de Gran Canaria: 26,003 countLas Palmas de Gran Canaria26,003Bilbao: 25,457 countBilbao25,457Córdoba: 21,289 countCórdoba21,289Vigo: 21,112 countVigo21,112Marbella: 20,829 countMarbella20,829A Coruña: 19,100 countA Coruña19,100Granada: 18,942 countGranada18,942Valladolid: 18,326 countValladolid18,326Gijón: 17,221 countGijón17,221Elx/Elche: 16,775 countElx/Elche16,775Santa Cruz de Tenerife: 15,440 countSanta Cruz de Tenerife15,440Donostia/San Sebastián: 15,258 countDonostia/San Sebastián15,258Oviedo: 15,038 countOviedo15,038Terrassa: 14,413 countTerrassa14,413Sabadell: 14,177 countSabadell14,177L'Hospitalet de Llobregat: 14,026 countL'Hospitalet de Llobregat14,026Pamplona/Iruña: 13,854 countPamplona/Iruña13,854Badalona: 13,662 countBadalona13,662Vitoria-Gasteiz: 13,014 countVitoria-Gasteiz13,014Castelló de la Plana/Castellón de la Plana: 12,710 countCastelló de la Plana/Castellón de…12,710Almería: 12,340 countAlmería12,340Burgos: 11,815 countBurgos11,815Santander: 11,655 countSantander11,655Jerez de la Frontera: 11,566 countJerez de la Frontera11,566Albacete: 11,517 countAlbacete11,517Cartagena: 10,996 countCartagena10,996Pozuelo de Alarcón: 10,835 countPozuelo de Alarcón10,835Sant Cugat del Vallès: 10,760 countSant Cugat del Vallès10,760Las Rozas de Madrid: 10,623 countLas Rozas de Madrid10,623Logroño: 10,543 countLogroño10,543Alcobendas: 10,393 countAlcobendas10,393Madrid: 297,693 countMadrid297,693Barcelona: 174,088 countBarcelona174,088València: 70,256 countValència70,256Sevilla: 49,304 countSevilla49,304Málaga: 43,994 countMálaga43,994Zaragoza: 42,897 countZaragoza42,897Palma: 36,623 countPalma36,623Murcia: 32,516 countMurcia32,516Alacant/Alicante: 26,372 countAlacant/Alicante26,372Las Palmas de Gran Canaria: 26,003 countLas Palmas de Gran Canaria26,003Bilbao: 25,457 countBilbao25,457Córdoba: 21,289 countCórdoba21,289Vigo: 21,112 countVigo21,112Marbella: 20,829 countMarbella20,829A Coruña: 19,100 countA Coruña19,100Granada: 18,942 countGranada18,942Valladolid: 18,326 countValladolid18,326Gijón: 17,221 countGijón17,221Elx/Elche: 16,775 countElx/Elche16,775Santa Cruz de Tenerife: 15,440 countSanta Cruz de Tenerife15,440Donostia/San Sebastián: 15,258 countDonostia/San Sebastián15,258Oviedo: 15,038 countOviedo15,038Terrassa: 14,413 countTerrassa14,413Sabadell: 14,177 countSabadell14,177L'Hospitalet de Llobregat: 14,026 countL'Hospitalet de Llobregat14,026Pamplona/Iruña: 13,854 countPamplona/Iruña13,854Badalona: 13,662 countBadalona13,662Vitoria-Gasteiz: 13,014 countVitoria-Gasteiz13,014Castelló de la Plana/Castellón de la Plana: 12,710 countCastelló de la Plana/Castellón de la Plana12,710Almería: 12,340 countAlmería12,340Burgos: 11,815 countBurgos11,815Santander: 11,655 countSantander11,655Jerez de la Frontera: 11,566 countJerez de la Frontera11,566Albacete: 11,517 countAlbacete11,517Cartagena: 10,996 countCartagena10,996Pozuelo de Alarcón: 10,835 countPozuelo de Alarcón10,835Sant Cugat del Vallès: 10,760 countSant Cugat del Vallès10,760Las Rozas de Madrid: 10,623 countLas Rozas de Madrid10,623Logroño: 10,543 countLogroño10,543Alcobendas: 10,393 countAlcobendas10,393
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2025
count
Change on 2024
1Madrid297,693+2.9%
2Barcelona174,088+1.7%
3València70,256+4.2%
4Sevilla49,304+1.5%
5Málaga43,994+3.8%
6Zaragoza42,897+1.2%
7Palma36,623+2.8%
8Murcia32,516+1.8%
9Alacant/Alicante26,372+3.6%
10Las Palmas de Gran Canaria26,003+1.6%
11Bilbao25,457+0.5%
12Córdoba21,289+1.3%
13Vigo21,112+0.4%
14Marbella20,829+3.8%
15A Coruña19,100+1.9%
16Granada18,942+2.4%
17Valladolid18,326+1.1%
18Gijón17,221+0.7%
19Elx/Elche16,775+2%
20Santa Cruz de Tenerife15,440+2.9%
21Donostia/San Sebastián15,258-0.6%
22Oviedo15,038+0.1%
23Terrassa14,413+1.8%
24Sabadell14,177+0.7%
25L'Hospitalet de Llobregat14,026+2.1%
26Pamplona/Iruña13,854+4.6%
27Badalona13,662+1.6%
28Vitoria-Gasteiz13,014-0.7%
29Castelló de la Plana/Castellón de la Plana12,710+1.4%
30Almería12,340+2.4%
31Burgos11,815+0.6%
32Santander11,655+1.6%
33Jerez de la Frontera11,566+2%
34Albacete11,517+0.2%
35Cartagena10,996+1.2%
36Pozuelo de Alarcón10,835+1.4%
37Sant Cugat del Vallès10,760+1.3%
38Las Rozas de Madrid10,623+1%
39Logroño10,543+1.4%
40Alcobendas10,393+3.4%
41Fuenlabrada10,090+0.7%
42Lleida10,052+0.8%
43Alcalá de Henares9,786+2.5%
44Badajoz9,762+2.4%
45Girona9,692+1.8%
46Getafe9,655+2.4%
47San Cristóbal de La Laguna9,394+0.8%
48Mataró9,347+0.5%
49Leganés9,301+0.6%
50Móstoles9,200+1.4%
51Salamanca9,1800%
52Alcorcón8,883+2.1%
53Santiago de Compostela8,751+1.5%
54Mijas8,606+6.5%
55León8,510+0.7%
56Tarragona8,121+1.7%
57Ourense8,096+0.8%
58Dos Hermanas7,801+2.2%
59Lugo7,635+1%
60Fuengirola7,437+4.8%
61Huelva7,363+1.7%
62Estepona7,015+6.3%
63Torrevieja7,004+9.3%
64Benalmádena6,968+4.8%
65Reus6,894+0.8%
66Jaén6,867+0.5%
67San Sebastián de los Reyes6,837+2.1%
68Boadilla del Monte6,811+3%
69Arona6,771+2.9%
70Rivas-Vaciamadrid6,717+0.6%
71Cáceres6,696+2.1%
72Majadahonda6,667+1.3%
73Torrejón de Ardoz6,457+1.9%
74Roquetas de Mar6,193+3.5%
75Vélez-Málaga6,136+3.1%
76Eivissa6,108+4.6%
77Paterna6,101+3.3%
78Pontevedra6,090+0.2%
79Orihuela6,056+3.3%
80Cádiz5,851+0.1%
81Torremolinos5,827+3.8%
82Toledo5,707+1.2%
83Lorca5,703+1.7%
84Castelldefels5,686+0.8%
85Telde5,640+3.4%
86Benidorm5,606+4.6%
87Getxo5,519-0.4%
88Algeciras5,511+1%
89Torrent5,453+4.2%
90Santa Coloma de Gramenet5,448+2.8%
91Parla5,376+2.9%
92Adeje5,342+2.9%
93Manresa5,317+0.1%
94Calvià5,311+1.9%
95Chiclana de la Frontera5,244+2.8%
96Cornellà de Llobregat5,213+1.4%
97San Bartolomé de Tirajana5,203+2.8%
98Gandia5,166+3.6%
99El Ejido5,162+3.6%
100Molina de Segura5,134+1.3%
101El Puerto de Santa María5,132+1.1%
102Granollers5,074+2.1%
103Ciudad Real4,952+1.7%
104Alcalá de Guadaíra4,937+1.1%
105Talavera de la Reina4,877-0.9%
106Dénia4,797+3%
107Rubí4,795-0.2%
108Vilanova i la Geltrú4,765+1.3%
109Barakaldo4,648-0.9%
110Ponferrada4,547+0.5%
111Valdemoro4,484+3.6%
112Coslada4,434+1.2%
113Palencia4,406-0.5%
114Melilla4,396+1%
115Zamora4,331-0.9%
116Sant Boi de Llobregat4,308-1.5%
117Irun4,297-1%
118Guadalajara4,217+0.8%
119Santa Eulària des Riu4,215+5%
120Arganda del Rey4,203+2.8%
121Arrecife4,153+3.9%
122Mérida4,016+1.1%
123Cerdanyola del Vallès3,911-1.1%
124Siero3,891-0.2%
125Collado Villalba3,874+0.3%
126Vic3,846+1.6%
127Alcoi/Alcoy3,765+1.3%
128Avilés3,755+0.2%
129Viladecans3,746+1.5%
130Mairena del Aljarafe3,727+2.8%
131Rincón de la Victoria3,684+4%
131Sagunt/Sagunto3,684+4.6%
133Huesca3,666+0.2%
134Manacor3,657+1.8%
135Elda3,631+1.2%
136Santa Lucía de Tirajana3,594+3.5%
137Sant Vicent del Raspeig/San Vicente del Raspeig3,592+2.1%
138Tres Cantos3,586+3.5%
139Sitges3,559+1.9%
140Sanlúcar de Barrameda3,555+1.7%
141San Fernando3,448+0.7%
142Granadilla de Abona3,437+4.1%
143Cuenca3,433+1.6%
144Xàbia/Jávea3,408+4.7%
145Ávila3,374-0.1%
146Segovia3,350+1.4%
147Alhaurín de la Torre3,327+3.5%
148Igualada3,324+0.4%
149Figueres3,309+0.1%
150Pinto3,306+4.5%
151Colmenar Viejo3,305+3.9%
152Motril3,301+3.1%
153Gavà3,281-0.9%
154Esplugues de Llobregat3,272+0.1%
155El Prat de Llobregat3,239+0.8%
156Ceuta3,236-2%
157Vila-real3,147+2%
158Ferrol3,127+0.6%
159Villaviciosa de Odón3,108+2.7%
160Lloret de Mar3,087+4.3%
161Puerto del Rosario3,027+3.8%
162Llucmajor2,987+4.1%
162Oleiros2,987+2.8%
164Aranjuez2,969+2.6%
165Marratxí2,956+0.3%
166Lucena2,924+1.6%
167Alzira2,913+3%
168La Oliva2,904+5%
169Vilafranca del Penedès2,874+1.9%
170Torrelavega2,841+0.2%
171Sant Feliu de Llobregat2,833+0.5%
172Arroyomolinos2,779+1.2%
173Plasencia2,755+1.7%
174Utrera2,741+3.6%
175Cambrils2,733+0.7%
176Yecla2,684+2.8%
177Galapagar2,667+0.9%
178Ciutadella de Menorca2,647+0.5%
179Torrelodones2,637+4.3%
180Ontinyent2,620-0.8%
181Soria2,611+1%
182La Línea de la Concepción2,603+3.2%
183Montcada i Reixac2,602+0.2%
184Maó2,597+2.7%
185Mollet del Vallès2,596+0.2%
186Linares2,582+0.6%
187Tudela2,560+2.2%
188Santa Pola2,551+4.6%
189San Fernando de Henares2,544+2%
190La Orotava2,538+0.7%
191Vilagarcía de Arousa2,531+0.4%
192Blanes2,521+1.2%
193San Roque2,511+5.8%
194Sant Josep de sa Talaia2,504+3.6%
195Almendralejo2,493-0.2%
196Teruel2,491+1%
196Torre-Pacheco2,491+2.2%
198Alcantarilla2,482+2.6%
199El Vendrell2,479+3%
200Puerto de la Cruz2,478+2.4%
201Don Benito2,468+2.2%
202Carballo2,461-1.3%
203Sant Pere de Ribes2,452+0.2%
204Altea2,451+3.1%
205Olot2,443+1.3%
206Barberà del Vallès2,420-1%
207Antequera2,400+1.8%
208Tomelloso2,386+0.6%
209Inca2,366+4.6%
210Écija2,351+0.2%
211el Campello2,338+3.3%
212Ronda2,334+0.2%
213San Javier2,333+3%
214Sant Joan Despí2,315-0.5%
215Ames2,288+1.6%
216Úbeda2,270+0.6%
216Villanueva de la Cañada2,270+1.8%
218Sant Adrià de Besòs2,267+3.2%
219Calp2,263+3.2%
220Mislata2,257+5.2%
221la Vila Joiosa/Villajoyosa2,256+6.6%
222La Rinconada2,239+1.2%
223Almuñécar2,224+3.4%
224Ripollet2,213+0.4%
225Petrer2,207+0.5%
226Alhaurín el Grande2,206+5.7%
227Sant Just Desvern2,202+0.5%
228Los Realejos2,193+1.1%
229Illescas2,187+2.6%
230Arteixo2,162-0.1%
230Villena2,162+0.9%
232Aranda de Duero2,161+0.1%
233Tortosa2,158+1.6%
234Culleredo2,143+0.6%
235El Masnou2,135+0.4%
236Bétera2,131+2.8%
237Basauri2,127-0.7%
238Camargo2,112-0.3%
239Sant Antoni de Portmany2,111+4.2%
240Andújar2,110+1.2%
241Xàtiva2,109+1.8%
242Humanes de Madrid2,096-0.4%
243Vinaròs2,093+1.5%
244Sant Quirze del Vallès2,089-0.3%
245Molins de Rei2,083-1%
246Riba-roja de Túria2,073+0.6%
247Castro-Urdiales2,069+0.2%
248Manises2,060+3.5%
249Águilas2,037+0.6%
250Leioa2,032+1.4%

Showing the top 250 of 6925. 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. 434 municipalities with data in other periods have no value for 2025 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, 2025) [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, 2025. 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. 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, 2025. 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.

Harvard

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

BibTeX
@misc{instituto_municipalities_of_spain_by_2025,
  author = {{Instituto Nacional de Estadística}},
  title = {{Directorio central de empresas: empresas activas por municipio (tabla 4721): Municipalities of Spain by active companies, 2025}},
  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. 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, 2025
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
Y2  - 2026/10/12
N1  - Accessed via Invokely, https://invokely.ai/rankings/active-companies/spain-municipalities.
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 297,693 in 2025, according to the Instituto Nacional de Estadística.

Which municipality has the lowest active companies?

Zorita de la Frontera, with 4 in 2025.

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

Active companies: other rankings

Municipalities of Spain: more rankings