Municipalities of Spain by active companies

Madrid had the highest active companies of 6902 municipalities in 2016, at 299,397. Zarapicos had the lowest, at 4. The median was 46 and the figure for Spain was 3.24 million. Source: the Instituto Nacional de Estadística.

Keep it in a collection in your library.
Highest299,397Madrid
Lowest4Zarapicos
Median466902 municipalities
Spain3,236,582History

Top 40 municipalities, 2016

Madrid: 299,397 countMadrid299,397Barcelona: 174,209 countBarcelona174,209València: 62,013 countValència62,013Sevilla: 48,415 countSevilla48,415Zaragoza: 45,477 countZaragoza45,477Málaga: 39,352 countMálaga39,352Palma: 34,073 countPalma34,073Murcia: 32,265 countMurcia32,265Bilbao: 27,991 countBilbao27,991Las Palmas de Gran Canaria: 26,782 countLas Palmas de Gran Canaria26,782Alacant/Alicante: 24,886 countAlacant/Alicante24,886Vigo: 22,843 countVigo22,843A Coruña: 21,106 countA Coruña21,106Córdoba: 21,069 countCórdoba21,069Valladolid: 19,666 countValladolid19,666Granada: 18,313 countGranada18,313Gijón: 17,399 countGijón17,399Marbella: 16,869 countMarbella16,869Donostia/San Sebastián: 16,816 countDonostia/San Sebastián16,816Elx/Elche: 16,298 countElx/Elche16,298Oviedo: 15,975 countOviedo15,975Santa Cruz de Tenerife: 15,432 countSanta Cruz de Tenerife15,432Vitoria-Gasteiz: 14,889 countVitoria-Gasteiz14,889Terrassa: 14,439 countTerrassa14,439Sabadell: 14,216 countSabadell14,216Pamplona/Iruña: 14,088 countPamplona/Iruña14,088Burgos: 12,824 countBurgos12,824Badalona: 12,782 countBadalona12,782L'Hospitalet de Llobregat: 12,452 countL'Hospitalet de Llobregat12,452Castelló de la Plana/Castellón de la Plana: 12,387 countCastelló de la Plana/Castellón de…12,387Albacete: 12,367 countAlbacete12,367Almería: 11,848 countAlmería11,848Santander: 11,563 countSantander11,563Logroño: 11,411 countLogroño11,411Las Rozas de Madrid: 11,088 countLas Rozas de Madrid11,088Cartagena: 10,938 countCartagena10,938Lleida: 10,752 countLleida10,752Fuenlabrada: 10,705 countFuenlabrada10,705Jerez de la Frontera: 10,674 countJerez de la Frontera10,674Pozuelo de Alarcón: 10,662 countPozuelo de Alarcón10,662Madrid: 299,397 countMadrid299,397Barcelona: 174,209 countBarcelona174,209València: 62,013 countValència62,013Sevilla: 48,415 countSevilla48,415Zaragoza: 45,477 countZaragoza45,477Málaga: 39,352 countMálaga39,352Palma: 34,073 countPalma34,073Murcia: 32,265 countMurcia32,265Bilbao: 27,991 countBilbao27,991Las Palmas de Gran Canaria: 26,782 countLas Palmas de Gran Canaria26,782Alacant/Alicante: 24,886 countAlacant/Alicante24,886Vigo: 22,843 countVigo22,843A Coruña: 21,106 countA Coruña21,106Córdoba: 21,069 countCórdoba21,069Valladolid: 19,666 countValladolid19,666Granada: 18,313 countGranada18,313Gijón: 17,399 countGijón17,399Marbella: 16,869 countMarbella16,869Donostia/San Sebastián: 16,816 countDonostia/San Sebastián16,816Elx/Elche: 16,298 countElx/Elche16,298Oviedo: 15,975 countOviedo15,975Santa Cruz de Tenerife: 15,432 countSanta Cruz de Tenerife15,432Vitoria-Gasteiz: 14,889 countVitoria-Gasteiz14,889Terrassa: 14,439 countTerrassa14,439Sabadell: 14,216 countSabadell14,216Pamplona/Iruña: 14,088 countPamplona/Iruña14,088Burgos: 12,824 countBurgos12,824Badalona: 12,782 countBadalona12,782L'Hospitalet de Llobregat: 12,452 countL'Hospitalet de Llobregat12,452Castelló de la Plana/Castellón de la Plana: 12,387 countCastelló de la Plana/Castellón de la Plana12,387Albacete: 12,367 countAlbacete12,367Almería: 11,848 countAlmería11,848Santander: 11,563 countSantander11,563Logroño: 11,411 countLogroño11,411Las Rozas de Madrid: 11,088 countLas Rozas de Madrid11,088Cartagena: 10,938 countCartagena10,938Lleida: 10,752 countLleida10,752Fuenlabrada: 10,705 countFuenlabrada10,705Jerez de la Frontera: 10,674 countJerez de la Frontera10,674Pozuelo de Alarcón: 10,662 countPozuelo de Alarcón10,662
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2016
count
Change on 2015
1Madrid299,397+1.4%
2Barcelona174,209+2.4%
3València62,013+1.9%
4Sevilla48,415+1.6%
5Zaragoza45,477+0.8%
6Málaga39,352+1.9%
7Palma34,073+1.6%
8Murcia32,265+2.2%
9Bilbao27,991+2.1%
10Las Palmas de Gran Canaria26,782+0.9%
11Alacant/Alicante24,886+2.1%
12Vigo22,843+1.4%
13A Coruña21,106+1.1%
14Córdoba21,069+0.6%
15Valladolid19,666+0.8%
16Granada18,313+1.3%
17Gijón17,399+0.6%
18Marbella16,869+6.3%
19Donostia/San Sebastián16,816+1.1%
20Elx/Elche16,298+3.8%
21Oviedo15,975+0.3%
22Santa Cruz de Tenerife15,432+1.8%
23Vitoria-Gasteiz14,889+2.7%
24Terrassa14,439+2%
25Sabadell14,216+2.3%
26Pamplona/Iruña14,088+1.7%
27Burgos12,824+1.5%
28Badalona12,782+1.5%
29L'Hospitalet de Llobregat12,452+2.6%
30Castelló de la Plana/Castellón de la Plana12,387+1.9%
31Albacete12,367+0.6%
32Almería11,848+2.5%
33Santander11,563+1.5%
34Logroño11,411+0.4%
35Las Rozas de Madrid11,088+2.6%
36Cartagena10,938+1.8%
37Lleida10,752+1.4%
38Fuenlabrada10,705+0.9%
39Jerez de la Frontera10,674+1.2%
40Pozuelo de Alarcón10,662+2%
41Alcobendas10,409+3.5%
42Salamanca10,155-0.2%
43Badajoz10,044+3.2%
44Sant Cugat del Vallès9,841+3.4%
45Móstoles9,644+0.8%
46León9,567-0.3%
47Leganés9,310-0.5%
48Ourense9,235+1.3%
49Santiago de Compostela9,143+1.8%
50Alcalá de Henares9,121+0.8%
51Girona9,052+3.1%
52Mataró8,997+1.9%
53San Cristóbal de La Laguna8,994+2.3%
54Alcorcón8,836-0.6%
55Getafe8,766+2.8%
56Lugo8,562+1.7%
57Tarragona8,331+1.2%
58Huelva7,411+1.2%
59Jaén7,063+1.4%
60Reus6,967+0.5%
61San Sebastián de los Reyes6,966+1.4%
62Cáceres6,921+2%
63Dos Hermanas6,857+2.9%
64Majadahonda6,676+1.9%
65Pontevedra6,506+2.1%
66Arona6,197+4.6%
67Getxo6,069+1.7%
68Torrejón de Ardoz6,046+1.4%
69Fuengirola5,954+3.5%
70Cádiz5,865-0.3%
71Lorca5,852+2.1%
72Rivas-Vaciamadrid5,688+3.7%
73Mijas5,648+6%
74Toledo5,626-0.8%
75Algeciras5,596+1%
76Ponferrada5,525+0.6%
77Paterna5,497+3%
78Torrevieja5,446+1%
79Manresa5,376+0.7%
80Benidorm5,326+0.1%
81Boadilla del Monte5,324+4.7%
82Orihuela5,251+1.9%
83Roquetas de Mar5,235+2.3%
84Castelldefels5,227+4.5%
85San Bartolomé de Tirajana5,212+5.2%
86Cornellà de Llobregat5,206+1.1%
87Telde5,196+1.7%
88Palencia5,188-1.1%
89Ciudad Real5,138+1.9%
90Granollers5,137-0.2%
91Barakaldo5,126+1.8%
92Talavera de la Reina5,045+0.1%
93Estepona5,041+4.6%
94Eivissa5,006+3.9%
95Vélez-Málaga5,000+2%
96El Puerto de Santa María4,922+3%
97Irun4,893+1.7%
98Gandia4,885+0.4%
98Santa Coloma de Gramenet4,885+0.5%
100Zamora4,855+0.5%
101Benalmádena4,807+3.8%
102Coslada4,789+0.6%
103Rubí4,750+0.3%
104Alcalá de Guadaíra4,741+2.2%
105Molina de Segura4,731+2.6%
106El Ejido4,725+0.7%
107Torremolinos4,704+3.9%
108Sant Boi de Llobregat4,680+0.8%
109Guadalajara4,660+1.5%
110Calvià4,644+3.4%
111Torrent4,618+2.6%
112Parla4,505+2.5%
113Vilanova i la Geltrú4,439+1.8%
114Adeje4,349+3.2%
114Melilla4,349+6%
116Avilés4,256+0.1%
116Chiclana de la Frontera4,256+2.5%
118Cerdanyola del Vallès4,193+0.8%
119Dénia4,191+1.6%
120Mérida4,177+3.1%
121Huesca4,046+1.4%
122Siero4,035+0.5%
123Valdemoro4,000+1.1%
124Arrecife3,932+1.8%
125Vic3,923+2.4%
126Elda3,911+2.1%
127Arganda del Rey3,899+3.4%
128Viladecans3,834+0.4%
129Collado Villalba3,800+0.2%
130Ceuta3,762+0.3%
131Alcoi/Alcoy3,751+1%
132Ferrol3,735-0.7%
133Figueres3,731+2.9%
134Cuenca3,712+1.6%
135Segovia3,655+0.8%
136Ávila3,609-1%
137Sant Vicent del Raspeig/San Vicente del Raspeig3,564+2.7%
138Sagunt/Sagunto3,543+1.4%
139Igualada3,417+3.8%
140El Prat de Llobregat3,388+1.3%
141Tres Cantos3,373+1.4%
142Villaviciosa de Odón3,333+2.5%
143Esplugues de Llobregat3,311-0.9%
143Gavà3,311+4.3%
145Mairena del Aljarafe3,279+2.4%
146Motril3,263+0.9%
147Manacor3,226+2.5%
148Vila-real3,221+3.7%
149San Fernando3,193+0.1%
150Torrelavega3,093+0.6%
151Sanlúcar de Barrameda3,071+1.9%
152Sitges3,037+4.7%
153Santa Lucía de Tirajana3,025+4.6%
154Pinto2,976-0.1%
155Santa Eulària des Riu2,908+7.6%
156Plasencia2,883-1.5%
157Vilafranca del Penedès2,866+2.4%
158Colmenar Viejo2,859+2.4%
159Ontinyent2,858-3.2%
160Puerto del Rosario2,827+1.4%
161Aranjuez2,795-1%
162Lucena2,791+1.3%
163Soria2,790-1.5%
164Alzira2,780-0.7%
165Rincón de la Victoria2,740+5.2%
166Xàbia/Jávea2,727+1%
167Sant Feliu de Llobregat2,722+3.2%
168Oleiros2,713+2.7%
169Mollet del Vallès2,706+0.6%
170Tudela2,663+1.8%
171San Fernando de Henares2,657-0%
172Montcada i Reixac2,653+0.8%
173Linares2,651+2.8%
174Granadilla de Abona2,636+6.8%
175Teruel2,633+1.6%
176Marratxí2,622+2.3%
177Carballo2,616+2.3%
178Llucmajor2,605+1.1%
179Cambrils2,565+3%
180Lloret de Mar2,561+3.9%
181Barberà del Vallès2,560+0.7%
182Yecla2,554+2.4%
183Puerto de la Cruz2,552+0.4%
184Basauri2,543+1.8%
185Vilagarcía de Arousa2,516+1.1%
186Alhaurín de la Torre2,502+2.3%
186La Línea de la Concepción2,502+0.4%
188Alcantarilla2,460+3.4%
189Tomelloso2,452+1.1%
190Almendralejo2,432+2.4%
191Galapagar2,425+1.1%
192Don Benito2,410+2.6%
193La Orotava2,389+1%
194Utrera2,366+3.1%
195Petrer2,356+0.6%
196Antequera2,354+0.2%
197Torre-Pacheco2,350+2.6%
198Torrelodones2,347+1.1%
199Blanes2,345+3.4%
200Arteixo2,340-1.8%
201Portugalete2,335+1.9%
202Olot2,332-0%
203Sant Joan Despí2,307+1.1%
204Maó2,306-1%
205Écija2,303+1.4%
206Ciutadella de Menorca2,292+0.1%
207Úbeda2,275+1.7%
208Tortosa2,273+1.5%
209Altea2,256+0.9%
210Ripollet2,248+1%
211Aranda de Duero2,238+0.2%
211Villarrobledo2,238+1.7%
213El Vendrell2,229+2.3%
214Narón2,224+2.3%
215Culleredo2,206+1.4%
216Santurtzi2,202+1.2%
217Ronda2,199+1.8%
218Errenteria2,178+1.3%
219Ames2,169+2.6%
220Leioa2,163+1.2%
221Villena2,162+1.4%
222La Rinconada2,158+1.7%
223Vinaròs2,156+1.5%
224Xàtiva2,155+1.4%
225Humanes de Madrid2,139+1.4%
226Camargo2,125+0.3%
227Andújar2,124+0.8%
228Sant Just Desvern2,110+6.9%
229Arroyomolinos2,084+4.7%
230Sant Pere de Ribes2,083+3.6%
231El Masnou2,079+2.6%
231San Javier2,079+4.9%
233Tías2,065+2%
234Borriana/Burriana2,059+2.2%
235Miranda de Ebro2,058+0.7%
236Langreo2,057+0.1%
237Crevillent2,048+4.4%
238Castro-Urdiales2,039-0.7%
239Los Realejos2,037+2.3%
240Molins de Rei2,035+1.3%
241Mislata2,034+0.1%
242Santa Perpètua de Mogoda2,019+2.1%
243Sant Adrià de Besòs2,012+1.8%
244el Campello2,005+1.7%
245Castellar del Vallès2,000+3.1%
246Valdepeñas1,994+1.5%
247Inca1,990+1.2%
247La Oliva1,990+7.3%
249Puertollano1,988-1.2%
250Riba-roja de Túria1,969+3.8%

Showing the top 250 of 6902. 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. 457 municipalities with data in other periods have no value for 2016 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, 2016) [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, 2016. 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=2016. 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, 2016. 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=2016.

Harvard

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

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

Which municipality has the lowest active companies?

Zarapicos, with 4 in 2016.

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

Active companies: other rankings

Municipalities of Spain: more rankings