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.

Keep it in a collection in your library.
Highest311,047Madrid
Lowest4Zamayón
Median476896 municipalities
Spain3,363,197History

Top 40 municipalities, 2019

Madrid: 311,047 countMadrid311,047Barcelona: 183,284 countBarcelona183,284València: 66,526 countValència66,526Sevilla: 50,132 countSevilla50,132Zaragoza: 46,256 countZaragoza46,256Málaga: 41,310 countMálaga41,310Palma: 37,255 countPalma37,255Murcia: 33,302 countMurcia33,302Las Palmas de Gran Canaria: 29,119 countLas Palmas de Gran Canaria29,119Alacant/Alicante: 26,712 countAlacant/Alicante26,712Bilbao: 26,474 countBilbao26,474Vigo: 23,320 countVigo23,320Córdoba: 21,761 countCórdoba21,761A Coruña: 21,050 countA Coruña21,050Valladolid: 19,884 countValladolid19,884Granada: 19,202 countGranada19,202Marbella: 18,522 countMarbella18,522Gijón: 18,035 countGijón18,035Elx/Elche: 17,470 countElx/Elche17,470Santa Cruz de Tenerife: 16,627 countSanta Cruz de Tenerife16,627Oviedo: 16,102 countOviedo16,102Donostia/San Sebastián: 15,805 countDonostia/San Sebastián15,805Terrassa: 14,747 countTerrassa14,747Sabadell: 14,576 countSabadell14,576Pamplona/Iruña: 14,325 countPamplona/Iruña14,325Vitoria-Gasteiz: 13,761 countVitoria-Gasteiz13,761Badalona: 13,476 countBadalona13,476L'Hospitalet de Llobregat: 13,404 countL'Hospitalet de Llobregat13,404Burgos: 12,982 countBurgos12,982Castelló de la Plana/Castellón de la Plana: 12,568 countCastelló de la Plana/Castellón de…12,568Almería: 12,443 countAlmería12,443Albacete: 12,419 countAlbacete12,419Santander: 11,816 countSantander11,816Cartagena: 11,692 countCartagena11,692Logroño: 11,236 countLogroño11,236Las Rozas de Madrid: 11,162 countLas Rozas de Madrid11,162Pozuelo de Alarcón: 11,058 countPozuelo de Alarcón11,058Jerez de la Frontera: 11,056 countJerez de la Frontera11,056Fuenlabrada: 10,856 countFuenlabrada10,856Lleida: 10,676 countLleida10,676Madrid: 311,047 countMadrid311,047Barcelona: 183,284 countBarcelona183,284València: 66,526 countValència66,526Sevilla: 50,132 countSevilla50,132Zaragoza: 46,256 countZaragoza46,256Málaga: 41,310 countMálaga41,310Palma: 37,255 countPalma37,255Murcia: 33,302 countMurcia33,302Las Palmas de Gran Canaria: 29,119 countLas Palmas de Gran Canaria29,119Alacant/Alicante: 26,712 countAlacant/Alicante26,712Bilbao: 26,474 countBilbao26,474Vigo: 23,320 countVigo23,320Córdoba: 21,761 countCórdoba21,761A Coruña: 21,050 countA Coruña21,050Valladolid: 19,884 countValladolid19,884Granada: 19,202 countGranada19,202Marbella: 18,522 countMarbella18,522Gijón: 18,035 countGijón18,035Elx/Elche: 17,470 countElx/Elche17,470Santa Cruz de Tenerife: 16,627 countSanta Cruz de Tenerife16,627Oviedo: 16,102 countOviedo16,102Donostia/San Sebastián: 15,805 countDonostia/San Sebastián15,805Terrassa: 14,747 countTerrassa14,747Sabadell: 14,576 countSabadell14,576Pamplona/Iruña: 14,325 countPamplona/Iruña14,325Vitoria-Gasteiz: 13,761 countVitoria-Gasteiz13,761Badalona: 13,476 countBadalona13,476L'Hospitalet de Llobregat: 13,404 countL'Hospitalet de Llobregat13,404Burgos: 12,982 countBurgos12,982Castelló de la Plana/Castellón de la Plana: 12,568 countCastelló de la Plana/Castellón de la Plana12,568Almería: 12,443 countAlmería12,443Albacete: 12,419 countAlbacete12,419Santander: 11,816 countSantander11,816Cartagena: 11,692 countCartagena11,692Logroño: 11,236 countLogroño11,236Las Rozas de Madrid: 11,162 countLas Rozas de Madrid11,162Pozuelo de Alarcón: 11,058 countPozuelo de Alarcón11,058Jerez de la Frontera: 11,056 countJerez de la Frontera11,056Fuenlabrada: 10,856 countFuenlabrada10,856Lleida: 10,676 countLleida10,676
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2019
count
Change on 2018
1Madrid311,047-0.4%
2Barcelona183,284+0.2%
3València66,526+2.2%
4Sevilla50,132+0.9%
5Zaragoza46,256-0.4%
6Málaga41,310+0.7%
7Palma37,255+1%
8Murcia33,302-1.2%
9Las Palmas de Gran Canaria29,119+2.3%
10Alacant/Alicante26,712+2.6%
11Bilbao26,474-0.7%
12Vigo23,320-0.5%
13Córdoba21,761+1.2%
14A Coruña21,050-0.5%
15Valladolid19,884+0.2%
16Granada19,202+0.5%
17Marbella18,522+1.2%
18Gijón18,035+0.9%
19Elx/Elche17,470+2.7%
20Santa Cruz de Tenerife16,627+2.8%
21Oviedo16,102-0.6%
22Donostia/San Sebastián15,805-2%
23Terrassa14,7470%
24Sabadell14,576+0.6%
25Pamplona/Iruña14,325+0.2%
26Vitoria-Gasteiz13,761-2.8%
27Badalona13,476+0.6%
28L'Hospitalet de Llobregat13,404+0.7%
29Burgos12,982-1%
30Castelló de la Plana/Castellón de la Plana12,568-0.6%
31Almería12,443+1.1%
32Albacete12,419+0.4%
33Santander11,816+0.9%
34Cartagena11,692+1.7%
35Logroño11,236-2.3%
36Las Rozas de Madrid11,162-2.4%
37Pozuelo de Alarcón11,058-0.3%
38Jerez de la Frontera11,056+0.3%
39Fuenlabrada10,856-0.6%
40Lleida10,676-1.5%
41Alcobendas10,590-2.9%
42Badajoz10,422+0.3%
43Sant Cugat del Vallès10,3800%
44Salamanca10,301+1.2%
45San Cristóbal de La Laguna9,999+3.9%
46Móstoles9,900+0.9%
47Alcalá de Henares9,776+2.6%
48Leganés9,748+1.2%
49León9,587+0.1%
50Mataró9,546+1.5%
51Getafe9,488+2.2%
52Girona9,419-0.6%
53Santiago de Compostela9,380-0.3%
54Ourense9,267-0.5%
55Alcorcón9,122+1.1%
56Lugo8,676-0.9%
57Tarragona8,369+0.1%
58Huelva7,676+1.4%
59Dos Hermanas7,323+3.4%
60San Sebastián de los Reyes7,263-0.5%
61Arona7,238+4.7%
62Cáceres7,203+1.2%
63Jaén7,188-0.6%
64Reus7,104+0.7%
65Majadahonda6,953+0.7%
66Mijas6,782+6.2%
67Pontevedra6,747+1.7%
68Fuengirola6,742+4.3%
69Torrejón de Ardoz6,422+2%
70Rivas-Vaciamadrid6,381+3.4%
71Torrevieja6,131+4.8%
72Cádiz6,083-0.6%
73Orihuela5,907+4.5%
74Toledo5,899+1.3%
75Paterna5,852+1.3%
76Boadilla del Monte5,815+1.2%
77Lorca5,810-0.6%
78San Bartolomé de Tirajana5,793+3.2%
79Estepona5,744+4.4%
80Eivissa5,743+3%
81Getxo5,742-1.3%
82Benalmádena5,739+7.2%
82Roquetas de Mar5,739+2.6%
84Telde5,658+2.5%
85Algeciras5,657+0.4%
86Castelldefels5,623+2.5%
87Vélez-Málaga5,572+4.7%
88Manresa5,538+0.6%
89Benidorm5,534+0.4%
90Cornellà de Llobregat5,326-1.7%
91Ponferrada5,316-1%
92Granollers5,304-0.9%
92Melilla5,304+13.6%
94Ciudad Real5,283+1.4%
95Santa Coloma de Gramenet5,271+2.7%
96Adeje5,206+3.3%
97Torremolinos5,202+2.2%
98Talavera de la Reina5,195+0.6%
99Gandia5,177+2.3%
100Calvià5,082+1.1%
101El Puerto de Santa María5,074-0.4%
102Parla5,065+3.1%
103Palencia4,976-2.7%
104El Ejido4,966-0.2%
105Molina de Segura4,962-0.3%
106Rubí4,947-0.4%
107Torrent4,927+3.4%
108Barakaldo4,872+0.4%
109Coslada4,827-1%
110Alcalá de Guadaíra4,800+1.2%
111Zamora4,793-0.1%
112Chiclana de la Frontera4,691+4.3%
113Vilanova i la Geltrú4,652-0.2%
114Sant Boi de Llobregat4,637-2.1%
115Irun4,583-0.5%
116Dénia4,531+3.5%
117Guadalajara4,488-1.8%
118Arrecife4,451+4.5%
119Mérida4,297-0.9%
120Valdemoro4,261+2%
121Cerdanyola del Vallès4,251-0.4%
122Arganda del Rey4,218+3%
123Avilés4,163-1.5%
124Siero4,115-0.2%
125Huesca4,061-0.1%
126Collado Villalba3,986+1.2%
127Elda3,942+0.9%
128Vic3,930-1.5%
129Alcoi/Alcoy3,917+2.6%
130Viladecans3,859-1.2%
131Cuenca3,822+1.1%
132Ceuta3,789-3.2%
133Ferrol3,728-0.8%
134Figueres3,722-0.4%
135Sant Vicent del Raspeig/San Vicente del Raspeig3,688+1.7%
136Ávila3,682-0.7%
137Segovia3,570-1.2%
138Mairena del Aljarafe3,541+0.9%
139Sagunt/Sagunto3,540+1.6%
140Esplugues de Llobregat3,501-0.1%
141Manacor3,487+1.9%
142San Fernando3,483+4.4%
143Tres Cantos3,470-0.5%
144Santa Lucía de Tirajana3,438+3.8%
145Igualada3,422-1.4%
146El Prat de Llobregat3,395-1.3%
147Santa Eulària des Riu3,382+5.2%
147Villaviciosa de Odón3,382+1%
149Gavà3,374-1%
150Puerto del Rosario3,303+6.4%
151Sanlúcar de Barrameda3,299+4.2%
152Sitges3,291+1.3%
153Vila-real3,284+1.7%
154Motril3,248-1.6%
155Granadilla de Abona3,240+6.9%
156Pinto3,211+1.6%
157Rincón de la Victoria3,130+4.2%
158Torrelavega3,1130%
159Xàbia/Jávea3,100+5.8%
160Colmenar Viejo3,081+2.2%
161Oleiros2,970+2.9%
162Vilafranca del Penedès2,969+1%
163Plasencia2,960+1%
164Sant Feliu de Llobregat2,934+2.6%
165Lucena2,921+1.6%
166Aranjuez2,920+3.3%
167Alzira2,900+0.9%
168Llucmajor2,876+3.6%
169Lloret de Mar2,842+3.1%
170Ontinyent2,836+0.6%
171Marratxí2,814+0.6%
172Alhaurín de la Torre2,796+5.5%
173Mollet del Vallès2,788+1%
174San Fernando de Henares2,748-0.5%
175Montcada i Reixac2,721-0%
176Soria2,719-2%
177Linares2,709+0.7%
178Cambrils2,708+1.5%
179Galapagar2,702+4.9%
180Puerto de la Cruz2,694+2.6%
181Yecla2,682+1.9%
182Teruel2,669+0.8%
183Tudela2,614-0.2%
184Carballo2,613-1.2%
185La Orotava2,612+5.5%
186Utrera2,608+4.2%
187Almendralejo2,590+3.7%
188Vilagarcía de Arousa2,583-0.4%
189La Línea de la Concepción2,567+1.8%
190Barberà del Vallès2,562-2.3%
191Torrelodones2,539+3.3%
192Tomelloso2,527+1.4%
193Alcantarilla2,516+0.1%
194Ciutadella de Menorca2,507+2.6%
195Torre-Pacheco2,502+1.8%
196Maó2,491+1.5%
197Don Benito2,459+0.2%
198Blanes2,443+3%
199Olot2,421-0.1%
200Petrer2,395+0.5%
201Arroyomolinos2,382+5.9%
201La Oliva2,382+8.1%
203Écija2,377+1.1%
204Antequera2,369-0.4%
205El Vendrell2,367+1.1%
206Arteixo2,366-1.8%
207Altea2,362+1.6%
208Sant Joan Despí2,351+0.5%
209Ronda2,335+3.5%
210Úbeda2,317-1.3%
211Sant Pere de Ribes2,314+2.8%
212Ames2,307+0.3%
213Tortosa2,2850%
214Basauri2,277-3.3%
215Ripollet2,273-1%
216Villanueva de la Cañada2,267+3.8%
217Aranda de Duero2,266+1%
217Narón2,266+0.9%
219Tías2,259+0.9%
220Villena2,248+0.7%
221Los Realejos2,224+5.4%
222el Campello2,223+8.2%
223Santa Pola2,218+5.1%
224Inca2,216+4.4%
225Culleredo2,214+1%
226Portugalete2,201+1.3%
227La Rinconada2,193+1.6%
228Xàtiva2,185+2.7%
229Humanes de Madrid2,182-1.1%
230Andújar2,176+0.4%
231El Masnou2,173+2.6%
232Camargo2,159+1%
233San Javier2,152+1.4%
234Mislata2,137+3.2%
235Riba-roja de Túria2,126+1.6%
236Vinaròs2,123-0.5%
237Castro-Urdiales2,109+0.8%
238Illescas2,104+2.1%
238Molins de Rei2,104+0.5%
240Crevillent2,101-0.9%
241Sant Adrià de Besòs2,095-0.7%
242Sant Just Desvern2,093-3.3%
243la Vila Joiosa/Villajoyosa2,092+3.9%
243Sant Quirze del Vallès2,092+2.4%
245San Roque2,075+2.5%
246Sant Joan d'Alacant2,063+3.6%
247Calp2,061+4.2%
248Premià de Mar2,060+1.8%
249Errenteria2,059+1%
250Santurtzi2,057-1%

Showing the top 250 of 6896. 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. 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

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, 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  - 
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 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 of Spain: more rankings