Map of a Spanish province with its municipalities
Pick any of Spain’s 52 provinces and see its municipalities drawn on the map, with their names and population. Hover or tap one for its numbers, sort the list and take it as a CSV, or print a clean map.
Pick a province
Madrid
Community of Madrid 179 municipalities 7,137,031 people Capital: Madrid
Loading the map…
Hover over a municipality or tap it to see its numbers.
Population: INE municipal register as of January 1, 2025. Boundaries and area: IGN. See the province colored by population
Municipalities (179)
How to use it
Type the name of a province (or of an island: Mallorca, Tenerife, Lanzarote…) and pick it from the list. Spanish and local names both work, so Gerona and Girona, or Vizcaya and Bizkaia, find the same province. The map zooms to it and draws every municipality with its official boundary. The capital is highlighted in yellow with its name in bold; the other names appear as space allows, so you see more as you zoom in.
Hover over a municipality, or tap it on your phone, to see its name, INE code, population, area and density. The list next to the map has the same municipalities: sort it by name, code or population, search it, and tap a row to jump to it on the map.
“Download image” saves the map as you see it as a PNG, with a title and sources; “Print” gives you a page with the map and the full list of municipalities and their population, with nothing else from the site. The page address keeps the province you chose: copy it to share it.
Provinces and municipalities in Spain
Spain is divided into 17 autonomous communities (regions with their own parliament, like Andalusia or Catalonia), which are split into 50 provinces, plus the autonomous cities of Ceuta and Melilla in North Africa. Each province is made up of municipalities (municipios), the basic unit of local government: every one has a town council (ayuntamiento) and a mayor, and together they cover the whole country. Spain has 8,132 of them.
Burgos is the province with the most municipalities (371), followed by Salamanca (362); Las Palmas has the fewest (34). The northern and central provinces are full of tiny municipalities: 4,980 of them (61%) have fewer than 1,000 people and 1,406 have fewer than 100.
By population, Madrid is the largest province, with 7,137,031 people, and Soria the smallest, with 90,234. Among municipalities, Madrid is the most populous (3,506,730 people) and Torremochuela (Guadalajara) the least, with 6. The largest by area is Cáceres (Cáceres), at 1,750 km².
| Province | Municipalities | Population | Capital |
|---|---|---|---|
| A Coruña | 93 | 1,135,612 | A Coruña |
| Álava | 51 | 342,161 | Vitoria-Gasteiz |
| Albacete | 87 | 390,406 | Albacete |
| Alicante | 141 | 2,030,037 | Alicante |
| Almería | 103 | 773,577 | Almería |
| Asturias | 78 | 1,013,529 | Oviedo |
| Ávila | 248 | 159,887 | Ávila |
| Badajoz | 165 | 663,886 | Badajoz |
| Baleares | 67 | 1,237,480 | Palma |
| Barcelona | 311 | 5,983,325 | Barcelona |
| Bizkaia | 113 | 1,166,816 | Bilbao |
| Burgos | 371 | 361,556 | Burgos |
| Cáceres | 223 | 387,752 | Cáceres |
| Cádiz | 45 | 1,257,041 | Cádiz |
| Cantabria | 102 | 593,964 | Santander |
| Castellón | 135 | 627,173 | Castellón de la Plana |
| Ceuta | 1 | 83,595 | Ceuta |
| Ciudad Real | 102 | 494,407 | Ciudad Real |
| Córdoba | 77 | 772,153 | Córdoba |
| Cuenca | 238 | 198,216 | Cuenca |
| Gipuzkoa | 88 | 733,365 | San Sebastián |
| Girona | 221 | 832,026 | Girona |
| Granada | 174 | 942,618 | Granada |
| Guadalajara | 288 | 285,390 | Guadalajara |
| Huelva | 80 | 535,703 | Huelva |
| Huesca | 202 | 230,624 | Huesca |
| Jaén | 97 | 617,604 | Jaén |
| La Rioja | 174 | 327,286 | Logroño |
| Las Palmas | 34 | 1,167,555 | Las Palmas de Gran Canaria |
| León | 211 | 446,771 | León |
| Lleida | 231 | 456,106 | Lleida |
| Lugo | 67 | 325,759 | Lugo |
| Madrid | 179 | 7,137,031 | Madrid |
| Málaga | 103 | 1,791,092 | Málaga |
| Melilla | 1 | 86,780 | Melilla |
| Murcia | 45 | 1,589,138 | Murcia |
| Navarra | 272 | 683,500 | Pamplona |
| Ourense | 92 | 305,573 | Ourense |
| Palencia | 191 | 158,687 | Palencia |
| Pontevedra | 61 | 946,225 | Pontevedra |
| Salamanca | 362 | 328,779 | Salamanca |
| Santa Cruz de Tenerife | 54 | 1,082,421 | Santa Cruz de Tenerife |
| Segovia | 209 | 158,470 | Segovia |
| Sevilla | 106 | 1,976,624 | Sevilla |
| Soria | 183 | 90,234 | Soria |
| Tarragona | 184 | 874,808 | Tarragona |
| Teruel | 236 | 136,197 | Teruel |
| Toledo | 204 | 750,815 | Toledo |
| Valencia | 266 | 2,758,633 | Valencia |
| Valladolid | 225 | 528,841 | Valladolid |
| Zamora | 248 | 165,275 | Zamora |
| Zaragoza | 293 | 991,991 | Zaragoza |
Where the data comes from
Municipal and provincial boundaries come from the administrative divisions database of the IGN (Instituto Geográfico Nacional, Spain’s national mapping agency), dated August 10, 2026, simplified so the map loads fast without moving more than about 10 meters. Each municipality’s area comes from the IGN’s gazetteer of municipalities.
Population is the official figure from the municipal register (Padrón) as of January 1, 2025, published by the INE (Instituto Nacional de Estadística, Spain’s national statistics office): 49,114,494 people in all of Spain. Every resident has to be signed up in the register of the municipality where they live, so it works as a yearly count. Each municipality’s code is its five-digit INE code (two digits for the province and three for the municipality), the one public bodies use.
Frequently asked questions
How many municipalities are there in Spain?
8,132, according to the IGN boundaries and the INE’s 2025 municipal register. Burgos is the province with the most (371) and Las Palmas the one with the fewest (34), leaving out Ceuta and Melilla, which have one each.
Is a municipality the same as a town?
Not quite. A municipality is the area a town council governs, and it can include several villages and hamlets as well as farmland and forest. The municipality takes its name from its main town, which is the one that appears on the map.
What population does the map show?
The official number of residents of each municipality on January 1, 2025, which the INE takes from the yearly review of the municipal register. It’s the figure used, for example, to set the number of councillors each town elects.
Which municipality has the most people, and which the fewest?
Madrid is the most populous, with 3,506,730 people. The smallest is Torremochuela, in Guadalajara, with 6.
Can I print the map or use it in a report?
Yes. “Print” gives you a clean page with the map and the list of municipalities, and “Download image” a PNG. If you publish it, keep the credits printed on the image: the boundaries are from the IGN and the population from the INE.
Why are there areas that belong to no municipality?
They’re 81 pieces of common land shared by several municipalities that belong to none of them, such as the Bardenas Reales in Navarre. They show up gray on the map and have no population of their own.
Related tools
All toolsSources
- Administrative divisions database (municipal boundaries) · Instituto Geográfico Nacional (CC BY 4.0 ign.es), simplified
- Municipal areas (Nomenclátor Geográfico de Municipios) · Instituto Geográfico Nacional (CC BY 4.0 ign.es)
- Official population figures from the municipal register as of January 1, 2025 · Mapsfera’s own work with data from the INE website, www.ine.es (updated December 11, 2025)
- Base map · OpenFreeMap, with OpenStreetMap data