Municipalities of Spain by active companies

Madrid had the highest active companies of 6875 municipalities in 2023, at 282,092. Zorita de los Canes had the lowest, at 4. The median was 46 and the figure for Spain was 3.21 million. Source: the Instituto Nacional de Estadística.

Keep it in a collection in your library.
Highest282,092Madrid
Median466875 municipalities
Spain3,207,580History

Top 40 municipalities, 2023

Madrid: 282,092 countMadrid282,092Barcelona: 167,067 countBarcelona167,067València: 65,346 countValència65,346Sevilla: 47,750 countSevilla47,750Zaragoza: 42,081 countZaragoza42,081Málaga: 41,040 countMálaga41,040Palma: 34,902 countPalma34,902Murcia: 31,471 countMurcia31,471Las Palmas de Gran Canaria: 25,337 countLas Palmas de Gran Canaria25,337Bilbao: 25,009 countBilbao25,009Alacant/Alicante: 24,587 countAlacant/Alicante24,587Vigo: 20,985 countVigo20,985Córdoba: 20,947 countCórdoba20,947Marbella: 19,246 countMarbella19,246A Coruña: 18,702 countA Coruña18,702Granada: 18,289 countGranada18,289Valladolid: 18,014 countValladolid18,014Gijón: 17,128 countGijón17,128Elx/Elche: 16,275 countElx/Elche16,275Donostia/San Sebastián: 15,163 countDonostia/San Sebastián15,163Oviedo: 14,941 countOviedo14,941Santa Cruz de Tenerife: 14,781 countSanta Cruz de Tenerife14,781Terrassa: 14,004 countTerrassa14,004Sabadell: 13,818 countSabadell13,818L'Hospitalet de Llobregat: 13,349 countL'Hospitalet de Llobregat13,349Pamplona/Iruña: 13,333 countPamplona/Iruña13,333Badalona: 13,134 countBadalona13,134Vitoria-Gasteiz: 13,032 countVitoria-Gasteiz13,032Castelló de la Plana/Castellón de la Plana: 12,434 countCastelló de la Plana/Castellón de…12,434Almería: 11,902 countAlmería11,902Burgos: 11,657 countBurgos11,657Albacete: 11,505 countAlbacete11,505Santander: 11,416 countSantander11,416Jerez de la Frontera: 11,193 countJerez de la Frontera11,193Cartagena: 10,725 countCartagena10,725Sant Cugat del Vallès: 10,565 countSant Cugat del Vallès10,565Pozuelo de Alarcón: 10,533 countPozuelo de Alarcón10,533Logroño: 10,434 countLogroño10,434Las Rozas de Madrid: 10,365 countLas Rozas de Madrid10,365Fuenlabrada: 9,881 countFuenlabrada9,881Madrid: 282,092 countMadrid282,092Barcelona: 167,067 countBarcelona167,067València: 65,346 countValència65,346Sevilla: 47,750 countSevilla47,750Zaragoza: 42,081 countZaragoza42,081Málaga: 41,040 countMálaga41,040Palma: 34,902 countPalma34,902Murcia: 31,471 countMurcia31,471Las Palmas de Gran Canaria: 25,337 countLas Palmas de Gran Canaria25,337Bilbao: 25,009 countBilbao25,009Alacant/Alicante: 24,587 countAlacant/Alicante24,587Vigo: 20,985 countVigo20,985Córdoba: 20,947 countCórdoba20,947Marbella: 19,246 countMarbella19,246A Coruña: 18,702 countA Coruña18,702Granada: 18,289 countGranada18,289Valladolid: 18,014 countValladolid18,014Gijón: 17,128 countGijón17,128Elx/Elche: 16,275 countElx/Elche16,275Donostia/San Sebastián: 15,163 countDonostia/San Sebastián15,163Oviedo: 14,941 countOviedo14,941Santa Cruz de Tenerife: 14,781 countSanta Cruz de Tenerife14,781Terrassa: 14,004 countTerrassa14,004Sabadell: 13,818 countSabadell13,818L'Hospitalet de Llobregat: 13,349 countL'Hospitalet de Llobregat13,349Pamplona/Iruña: 13,333 countPamplona/Iruña13,333Badalona: 13,134 countBadalona13,134Vitoria-Gasteiz: 13,032 countVitoria-Gasteiz13,032Castelló de la Plana/Castellón de la Plana: 12,434 countCastelló de la Plana/Castellón de la Plana12,434Almería: 11,902 countAlmería11,902Burgos: 11,657 countBurgos11,657Albacete: 11,505 countAlbacete11,505Santander: 11,416 countSantander11,416Jerez de la Frontera: 11,193 countJerez de la Frontera11,193Cartagena: 10,725 countCartagena10,725Sant Cugat del Vallès: 10,565 countSant Cugat del Vallès10,565Pozuelo de Alarcón: 10,533 countPozuelo de Alarcón10,533Logroño: 10,434 countLogroño10,434Las Rozas de Madrid: 10,365 countLas Rozas de Madrid10,365Fuenlabrada: 9,881 countFuenlabrada9,881
count. Source: INE, Directorio central de empresas: empresas activas por municipio (tabla 4721). Retrieved 2026-10-12.

Full ranking

RankMunicipalities2023
count
Change on 2022
1Madrid282,092-12.2%
2Barcelona167,067-10.5%
3València65,346-5.8%
4Sevilla47,750-8%
5Zaragoza42,081-7%
6Málaga41,040-5%
7Palma34,902-6%
8Murcia31,471-7.3%
9Las Palmas de Gran Canaria25,337-12.1%
10Bilbao25,009-7.2%
11Alacant/Alicante24,587-10.2%
12Vigo20,985-8.2%
13Córdoba20,947-6.4%
14Marbella19,246-5.3%
15A Coruña18,702-7.3%
16Granada18,289-7.6%
17Valladolid18,014-6.6%
18Gijón17,128-4.6%
19Elx/Elche16,275-9%
20Donostia/San Sebastián15,163-5.2%
21Oviedo14,941-6.9%
22Santa Cruz de Tenerife14,781-10.6%
23Terrassa14,004-7.1%
24Sabadell13,818-7.2%
25L'Hospitalet de Llobregat13,349-7.5%
26Pamplona/Iruña13,333-11.9%
27Badalona13,134-5.6%
28Vitoria-Gasteiz13,032-5.9%
29Castelló de la Plana/Castellón de la Plana12,434-8.6%
30Almería11,902-6.9%
31Burgos11,657-7.6%
32Albacete11,505-7.4%
33Santander11,416-4.7%
34Jerez de la Frontera11,193-3.9%
35Cartagena10,725-7%
36Sant Cugat del Vallès10,565-3.4%
37Pozuelo de Alarcón10,533-8.5%
38Logroño10,434-7.1%
39Las Rozas de Madrid10,365-8.4%
40Fuenlabrada9,881-8.4%
41Lleida9,828-7.3%
42Alcobendas9,776-10.6%
43Alcalá de Henares9,371-8%
44Badajoz9,338-9.2%
45Girona9,292-4.9%
46Getafe9,283-7.5%
47Mataró9,162-6.7%
48San Cristóbal de La Laguna9,158-9.2%
49Salamanca9,153-7.9%
50Leganés9,104-8%
51Móstoles9,051-9.6%
52Alcorcón8,617-8.3%
53Santiago de Compostela8,565-6.5%
54León8,465-8.4%
55Ourense8,053-8.4%
56Tarragona7,890-8.7%
57Mijas7,726+1.4%
58Lugo7,614-8.4%
59Dos Hermanas7,471-3.2%
60Huelva7,263-6.3%
61Jaén6,805-6.4%
62Reus6,780-6%
63Fuengirola6,738-4.5%
64San Sebastián de los Reyes6,688-9.4%
65Rivas-Vaciamadrid6,556-3.4%
66Cáceres6,499-7.6%
67Boadilla del Monte6,433+0.7%
68Arona6,421-9.9%
69Majadahonda6,419-8.9%
70Benalmádena6,369+0.3%
71Estepona6,258-1.8%
72Torrejón de Ardoz6,238-6.9%
73Pontevedra6,073-6.9%
74Torrevieja5,895-7.6%
75Roquetas de Mar5,891-4.6%
76Vélez-Málaga5,877-1.7%
77Cádiz5,798-6.7%
78Paterna5,757-4.4%
79Eivissa5,654-4.7%
80Lorca5,570-5.8%
81Orihuela5,569-8%
82Castelldefels5,525-5.8%
83Toledo5,521-7.9%
84Getxo5,500-6.5%
85Torremolinos5,467-3%
86Telde5,432-6.4%
87Algeciras5,425-6.9%
88Manresa5,290-6.1%
89Benidorm5,237-7.9%
90Santa Coloma de Gramenet5,223-8.2%
91Calvià5,112-3.4%
92Parla5,100-6.3%
93Torrent5,075-3.4%
94Cornellà de Llobregat5,009-8.8%
95El Puerto de Santa María5,002-5.9%
96Chiclana de la Frontera4,995-2.2%
97Molina de Segura4,987-3%
98Talavera de la Reina4,947-7.1%
99El Ejido4,919-7%
100San Bartolomé de Tirajana4,911-11.9%
101Adeje4,900-7.4%
102Gandia4,895-6.3%
103Alcalá de Guadaíra4,869-2.9%
104Ciudad Real4,861-7.6%
105Granollers4,853-8.7%
106Rubí4,716-5.4%
107Barakaldo4,687-4.5%
108Vilanova i la Geltrú4,598-4.6%
109Ponferrada4,586-9.3%
110Dénia4,514-5.5%
111Palencia4,447-8.2%
112Melilla4,370-10%
113Irun4,348-4.2%
114Coslada4,313-11%
115Zamora4,307-7.1%
116Sant Boi de Llobregat4,301-7%
117Valdemoro4,187-7.2%
118Guadalajara4,138-7.9%
119Arganda del Rey3,985-9.1%
120Siero3,960-3.3%
121Cerdanyola del Vallès3,922-7.7%
122Mérida3,890-7.5%
123Collado Villalba3,843-5.9%
124Santa Eulària des Riu3,802+1.3%
125Avilés3,796-5.6%
126Arrecife3,772-13.3%
127Vic3,738-5.1%
128Huesca3,695-7.4%
129Viladecans3,676-4.6%
130Alcoi/Alcoy3,665-6.1%
131Elda3,621-8.5%
132Mairena del Aljarafe3,571-1.7%
133Sant Vicent del Raspeig/San Vicente del Raspeig3,465-7.2%
134Manacor3,462-2.9%
134Sanlúcar de Barrameda3,462-3.4%
136Rincón de la Victoria3,428+2.7%
137Cuenca3,412-8.5%
138Ávila3,397-6.3%
139Sagunt/Sagunto3,388-5.2%
140Tres Cantos3,383-5%
141Sitges3,378-1.4%
142Ceuta3,369-10%
143Santa Lucía de Tirajana3,348-5.5%
144San Fernando3,334-5.8%
145Segovia3,300-7.6%
146Figueres3,265-11%
147Esplugues de Llobregat3,264-8.8%
147Igualada3,264-5.4%
149Gavà3,245-6.7%
150Granadilla de Abona3,192-4.9%
151El Prat de Llobregat3,173-6.7%
152Ferrol3,149-9.1%
153Motril3,144-6.8%
154Colmenar Viejo3,125-2.5%
155Alhaurín de la Torre3,121+4.4%
156Pinto3,111-7.4%
157Xàbia/Jávea3,092-6.5%
158Villaviciosa de Odón3,012-10.4%
159Vila-real3,008-7.4%
160Marratxí2,913-0.7%
161Oleiros2,912-3.4%
162Lloret de Mar2,881-5.7%
163Aranjuez2,867-6.7%
164Lucena2,855-1.9%
165Torrelavega2,837-4.8%
166Llucmajor2,827-2.7%
167Alzira2,809-6.1%
168Sant Feliu de Llobregat2,792-7.6%
169Vilafranca del Penedès2,769-7.3%
170Puerto del Rosario2,767-13.3%
171Plasencia2,736-7%
172Galapagar2,663-5.2%
173Cambrils2,639-7.1%
174Ontinyent2,635-7.9%
175La Oliva2,616-1.7%
176Yecla2,605-3.8%
177Linares2,597-5.6%
178Ciutadella de Menorca2,591+0.8%
179Arroyomolinos2,585+1.1%
180Soria2,572-5.4%
181Utrera2,539-7.8%
182Montcada i Reixac2,536-6.6%
183Mollet del Vallès2,533-8.6%
184La Línea de la Concepción2,513-7%
185Carballo2,509-3.9%
186Tudela2,495-8.6%
187Torrelodones2,489-5.4%
188Maó2,488-3.3%
189Vilagarcía de Arousa2,469-5.3%
190La Orotava2,457-5.2%
191Barberà del Vallès2,455-3.5%
192Almendralejo2,444-3.7%
192Blanes2,444-3.7%
194San Fernando de Henares2,433-12.6%
195Torre-Pacheco2,429-7.6%
196Teruel2,419-6.5%
197Don Benito2,394-5.9%
197Sant Pere de Ribes2,394-2.8%
199Puerto de la Cruz2,377-10.8%
200Alcantarilla2,374-5.2%
201El Vendrell2,364-3.8%
202Santa Pola2,363-3.2%
203Tomelloso2,360-7.8%
204Antequera2,354-4.7%
205Écija2,348-6.1%
205Ronda2,348-4.2%
205Sant Josep de sa Talaia2,348+7.1%
208Olot2,322-5.1%
209Altea2,321-6.6%
210San Roque2,289-3.3%
211Úbeda2,276-4%
212Ames2,270-2.6%
213Sant Joan Despí2,254-6.3%
214Petrer2,211-10.2%
214Villanueva de la Cañada2,211-5.1%
216San Javier2,206-3.1%
217Ripollet2,203-7.1%
218La Rinconada2,189-3.8%
219el Campello2,182-5.5%
220Arteixo2,178-5.7%
221Aranda de Duero2,159-5.4%
222Villena2,153-5.1%
223Sant Just Desvern2,150+0.7%
224Inca2,145-5%
225Basauri2,139-6.1%
226Sant Adrià de Besòs2,136-3.7%
227El Masnou2,128-6%
228Los Realejos2,116-5.1%
229Andújar2,115-5.8%
230Calp2,108-3.3%
231Almuñécar2,099-1.5%
231Camargo2,099-4.2%
233Mislata2,097-3.8%
234Culleredo2,094-4.1%
235Xàtiva2,091-6.4%
236Humanes de Madrid2,086-8.5%
237Tortosa2,081-8.6%
238Illescas2,071-4.9%
239Castro-Urdiales2,066-3.3%
240Narón2,057-6.6%
241Bétera2,056+0.5%
242Vinaròs2,054-5.9%
243Riba-roja de Túria2,050-3.4%
244Molins de Rei2,047-4.6%
245Sant Quirze del Vallès2,037-2.5%
246la Vila Joiosa/Villajoyosa2,027-5.9%
247Águilas2,015-1.2%
248Alhaurín el Grande2,011-0.3%
249Leioa2,002-5.4%
250Castellar del Vallès1,985-4.4%

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

Harvard

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

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

Which municipality has the lowest active companies?

Zorita de los Canes, with 4 in 2023.

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

Active companies: other rankings

Municipalities of Spain: more rankings