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.

Keep it in a collection in your library.
Highest321,340Madrid
Lowest4Zamayón
Median476903 municipalities
Spain3,430,663History

Top 40 municipalities, 2022

Madrid: 321,340 countMadrid321,340Barcelona: 186,731 countBarcelona186,731València: 69,365 countValència69,365Sevilla: 51,883 countSevilla51,883Zaragoza: 45,267 countZaragoza45,267Málaga: 43,211 countMálaga43,211Palma: 37,112 countPalma37,112Murcia: 33,937 countMurcia33,937Las Palmas de Gran Canaria: 28,833 countLas Palmas de Gran Canaria28,833Alacant/Alicante: 27,388 countAlacant/Alicante27,388Bilbao: 26,944 countBilbao26,944Vigo: 22,859 countVigo22,859Córdoba: 22,374 countCórdoba22,374Marbella: 20,313 countMarbella20,313A Coruña: 20,175 countA Coruña20,175Granada: 19,783 countGranada19,783Valladolid: 19,288 countValladolid19,288Gijón: 17,960 countGijón17,960Elx/Elche: 17,877 countElx/Elche17,877Santa Cruz de Tenerife: 16,530 countSanta Cruz de Tenerife16,530Oviedo: 16,047 countOviedo16,047Donostia/San Sebastián: 15,999 countDonostia/San Sebastián15,999Pamplona/Iruña: 15,128 countPamplona/Iruña15,128Terrassa: 15,073 countTerrassa15,073Sabadell: 14,884 countSabadell14,884L'Hospitalet de Llobregat: 14,429 countL'Hospitalet de Llobregat14,429Badalona: 13,913 countBadalona13,913Vitoria-Gasteiz: 13,846 countVitoria-Gasteiz13,846Castelló de la Plana/Castellón de la Plana: 13,604 countCastelló de la Plana/Castellón de…13,604Almería: 12,787 countAlmería12,787Burgos: 12,614 countBurgos12,614Albacete: 12,422 countAlbacete12,422Santander: 11,976 countSantander11,976Jerez de la Frontera: 11,650 countJerez de la Frontera11,650Cartagena: 11,531 countCartagena11,531Pozuelo de Alarcón: 11,509 countPozuelo de Alarcón11,509Las Rozas de Madrid: 11,317 countLas Rozas de Madrid11,317Logroño: 11,233 countLogroño11,233Sant Cugat del Vallès: 10,942 countSant Cugat del Vallès10,942Alcobendas: 10,941 countAlcobendas10,941Madrid: 321,340 countMadrid321,340Barcelona: 186,731 countBarcelona186,731València: 69,365 countValència69,365Sevilla: 51,883 countSevilla51,883Zaragoza: 45,267 countZaragoza45,267Málaga: 43,211 countMálaga43,211Palma: 37,112 countPalma37,112Murcia: 33,937 countMurcia33,937Las Palmas de Gran Canaria: 28,833 countLas Palmas de Gran Canaria28,833Alacant/Alicante: 27,388 countAlacant/Alicante27,388Bilbao: 26,944 countBilbao26,944Vigo: 22,859 countVigo22,859Córdoba: 22,374 countCórdoba22,374Marbella: 20,313 countMarbella20,313A Coruña: 20,175 countA Coruña20,175Granada: 19,783 countGranada19,783Valladolid: 19,288 countValladolid19,288Gijón: 17,960 countGijón17,960Elx/Elche: 17,877 countElx/Elche17,877Santa Cruz de Tenerife: 16,530 countSanta Cruz de Tenerife16,530Oviedo: 16,047 countOviedo16,047Donostia/San Sebastián: 15,999 countDonostia/San Sebastián15,999Pamplona/Iruña: 15,128 countPamplona/Iruña15,128Terrassa: 15,073 countTerrassa15,073Sabadell: 14,884 countSabadell14,884L'Hospitalet de Llobregat: 14,429 countL'Hospitalet de Llobregat14,429Badalona: 13,913 countBadalona13,913Vitoria-Gasteiz: 13,846 countVitoria-Gasteiz13,846Castelló de la Plana/Castellón de la Plana: 13,604 countCastelló de la Plana/Castellón de la Plana13,604Almería: 12,787 countAlmería12,787Burgos: 12,614 countBurgos12,614Albacete: 12,422 countAlbacete12,422Santander: 11,976 countSantander11,976Jerez de la Frontera: 11,650 countJerez de la Frontera11,650Cartagena: 11,531 countCartagena11,531Pozuelo de Alarcón: 11,509 countPozuelo de Alarcón11,509Las Rozas de Madrid: 11,317 countLas Rozas de Madrid11,317Logroño: 11,233 countLogroño11,233Sant Cugat del Vallès: 10,942 countSant Cugat del Vallès10,942Alcobendas: 10,941 countAlcobendas10,941
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2022
count
Change on 2021
1Madrid321,340+2.3%
2Barcelona186,731+1.9%
3València69,365+2.6%
4Sevilla51,883+1.8%
5Zaragoza45,267+0.6%
6Málaga43,211+2.7%
7Palma37,112+2.8%
8Murcia33,937+1.9%
9Las Palmas de Gran Canaria28,833+1.1%
10Alacant/Alicante27,388+1.5%
11Bilbao26,944+3.2%
12Vigo22,859+1.1%
13Córdoba22,374+1.8%
14Marbella20,313+6.6%
15A Coruña20,175+1%
16Granada19,783+2.1%
17Valladolid19,288+0.6%
18Gijón17,960+0.6%
19Elx/Elche17,877+1%
20Santa Cruz de Tenerife16,530+2.3%
21Oviedo16,047+0.8%
22Donostia/San Sebastián15,999+2.3%
23Pamplona/Iruña15,128+3.8%
24Terrassa15,073+1.8%
25Sabadell14,884+1.3%
26L'Hospitalet de Llobregat14,429+2.5%
27Badalona13,913+1.7%
28Vitoria-Gasteiz13,846+0.6%
29Castelló de la Plana/Castellón de la Plana13,604+2%
30Almería12,787+1.4%
31Burgos12,614+0.3%
32Albacete12,422+0.5%
33Santander11,976+1.1%
34Jerez de la Frontera11,650+2.4%
35Cartagena11,531+0.7%
36Pozuelo de Alarcón11,509+2.6%
37Las Rozas de Madrid11,317+1.2%
38Logroño11,233+1.2%
39Sant Cugat del Vallès10,942+4%
40Alcobendas10,941+1.8%
41Fuenlabrada10,782+0.4%
42Lleida10,605+1.1%
43Badajoz10,289+1.8%
44Alcalá de Henares10,188+1.2%
45San Cristóbal de La Laguna10,085+2.6%
46Getafe10,032+1.8%
47Móstoles10,015+1.2%
48Salamanca9,940-0.4%
49Leganés9,896+0.4%
50Mataró9,825+1.6%
51Girona9,774+2.3%
52Alcorcón9,392+1.6%
53León9,243+0.1%
54Santiago de Compostela9,161+1.5%
55Ourense8,787-0.2%
56Tarragona8,642+1.7%
57Lugo8,312-0.5%
58Huelva7,752+1.6%
59Dos Hermanas7,715+2.9%
60Mijas7,621+5.5%
61San Sebastián de los Reyes7,379+0.9%
62Jaén7,272+1.2%
63Reus7,216+2%
64Arona7,123+4%
65Fuengirola7,059+3.7%
66Majadahonda7,043+2.1%
67Cáceres7,032+0.7%
68Rivas-Vaciamadrid6,789+1.2%
69Torrejón de Ardoz6,700+1.8%
70Pontevedra6,526+0.5%
71Boadilla del Monte6,386+4.6%
72Torrevieja6,377+2.9%
73Estepona6,371+6.3%
74Benalmádena6,351+5.1%
75Cádiz6,217+0.2%
76Roquetas de Mar6,172+3.4%
77Orihuela6,053+1.1%
78Paterna6,022+1.1%
79Toledo5,996+1%
80Vélez-Málaga5,978+2.9%
81Eivissa5,930+3.6%
82Lorca5,913+0.8%
83Getxo5,881+3.4%
84Castelldefels5,867+3.1%
85Algeciras5,829+1.6%
86Telde5,806+2%
87Santa Coloma de Gramenet5,691+2.9%
88Benidorm5,684+3.5%
89Torremolinos5,635+4.6%
90Manresa5,631+1.2%
91San Bartolomé de Tirajana5,575+3.5%
92Cornellà de Llobregat5,495+2%
93Parla5,441+2.3%
94Talavera de la Reina5,325+0.7%
95El Puerto de Santa María5,318+2.8%
96Granollers5,313+0.7%
97Adeje5,292+5.5%
97Calvià5,292+4.1%
99El Ejido5,287+2.8%
100Ciudad Real5,263+2.7%
101Torrent5,252+2.1%
102Gandia5,226+0.4%
103Molina de Segura5,142+3.9%
104Chiclana de la Frontera5,108+2.6%
105Ponferrada5,058+0.6%
106Alcalá de Guadaíra5,012+2.3%
107Rubí4,983-0.1%
108Barakaldo4,910+1.3%
109Melilla4,856-3.3%
110Coslada4,847+0.9%
111Palencia4,842-0.6%
112Vilanova i la Geltrú4,822+1.2%
113Dénia4,777+2.4%
114Zamora4,637+0.2%
115Sant Boi de Llobregat4,623+0.5%
116Irun4,537+2.9%
117Valdemoro4,511+2.9%
118Guadalajara4,493+2.1%
119Arganda del Rey4,386+1.6%
120Arrecife4,351+1.7%
121Cerdanyola del Vallès4,250+1%
122Mérida4,206+3.1%
123Siero4,095+1.5%
124Collado Villalba4,083+2%
125Avilés4,020-0.3%
126Huesca3,992+1.2%
127Elda3,958+0.9%
128Vic3,940+1.2%
129Alcoi/Alcoy3,904-0.2%
130Viladecans3,855+0.2%
131Santa Eulària des Riu3,755+6.5%
132Ceuta3,744-0.1%
133Sant Vicent del Raspeig/San Vicente del Raspeig3,732+1.9%
134Cuenca3,729+2%
135Figueres3,667+0.6%
136Mairena del Aljarafe3,633+4%
137Ávila3,627+0.8%
138Sanlúcar de Barrameda3,583+3.4%
139Esplugues de Llobregat3,577+1.7%
140Sagunt/Sagunto3,574+1.2%
141Segovia3,572+1.2%
142Manacor3,565+2%
143Tres Cantos3,560+0.5%
144Santa Lucía de Tirajana3,542+2.3%
145San Fernando3,540+1.8%
146Gavà3,479+2.5%
147Ferrol3,466-0.5%
148Igualada3,449+1.6%
149Sitges3,426+3.6%
150El Prat de Llobregat3,402+0.7%
151Motril3,373+2.7%
152Pinto3,360+3%
152Villaviciosa de Odón3,360+0.8%
154Granadilla de Abona3,356+4.7%
155Rincón de la Victoria3,339+5.1%
156Xàbia/Jávea3,306+3.1%
157Vila-real3,247+1.5%
158Colmenar Viejo3,206+3.4%
159Puerto del Rosario3,191+2.5%
160Aranjuez3,072+3.7%
161Lloret de Mar3,056+3.3%
162Sant Feliu de Llobregat3,022+2.6%
163Oleiros3,013+1.1%
164Alzira2,993+2.1%
165Alhaurín de la Torre2,989+3.9%
166Vilafranca del Penedès2,986+1%
167Torrelavega2,980-0.9%
168Plasencia2,943+0.9%
169Marratxí2,934+3.7%
170Lucena2,911+1.5%
171Llucmajor2,905+3.1%
172Ontinyent2,861+0.9%
173Cambrils2,841+4%
174Galapagar2,810+1.9%
175San Fernando de Henares2,785+0.9%
176Mollet del Vallès2,770+1.2%
177Utrera2,755+3.6%
178Linares2,750+1.3%
179Tudela2,730+3.7%
180Soria2,718+0.6%
181Montcada i Reixac2,715-0.3%
182Yecla2,708+2%
183La Línea de la Concepción2,703+3.5%
184Puerto de la Cruz2,664+3.4%
185La Oliva2,660+9.4%
186Torrelodones2,631+1.3%
187Torre-Pacheco2,630+1.4%
188Carballo2,611+1.3%
189Vilagarcía de Arousa2,606+1.1%
190La Orotava2,591+2.1%
191Teruel2,586+0.9%
192Maó2,574+2.4%
193Ciutadella de Menorca2,571+1.3%
194Tomelloso2,559+2.8%
195Arroyomolinos2,556+3.5%
196Barberà del Vallès2,545+0.4%
197Don Benito2,544+2.3%
198Blanes2,538+2.8%
199Almendralejo2,537+2.3%
200Alcantarilla2,504+0.2%
201Écija2,500+1.1%
202Altea2,486+4.3%
203Antequera2,469+3.2%
204Sant Pere de Ribes2,464+1.9%
205Petrer2,462+2.4%
206El Vendrell2,457+1.7%
207Ronda2,450+3.6%
208Olot2,447+2.7%
209Santa Pola2,441+4.9%
210Sant Joan Despí2,405+3%
211Ripollet2,372+2.8%
212Úbeda2,371+0.9%
213San Roque2,368+6%
214Ames2,330+1.8%
215Villanueva de la Cañada2,329+2.7%
216Arteixo2,310+2.3%
217el Campello2,308+2.5%
218Aranda de Duero2,282+1.4%
219Humanes de Madrid2,279+2.8%
220Basauri2,278+0.6%
220Tortosa2,278+1.7%
222La Rinconada2,276+1.8%
222San Javier2,276+2.6%
224Villena2,269+1.2%
225El Masnou2,265+2.1%
226Inca2,258+2%
227Andújar2,246+2%
228Xàtiva2,233+2.1%
229Los Realejos2,229+2.9%
230Sant Adrià de Besòs2,219+3.3%
231Narón2,202+1.1%
232Sant Josep de sa Talaia2,192+5%
233Camargo2,1910%
234Culleredo2,183+0.9%
234Vinaròs2,183+1.4%
236Calp2,180+3.7%
237Mislata2,179+0.5%
238Illescas2,178+1%
239la Vila Joiosa/Villajoyosa2,155+2.7%
240Molins de Rei2,145+3.5%
241Castro-Urdiales2,137+0.2%
242Sant Just Desvern2,134+1.9%
243Almuñécar2,130+4.5%
244Riba-roja de Túria2,1230%
245Tías2,117+2.2%
246Leioa2,116+5%
247Burjassot2,112+2.1%
248Santurtzi2,111+3.2%
249Crevillent2,107+1%
250Sant Joan d'Alacant2,106+2.1%

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

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