Skip to content
Make maps

Spain map by province and municipality

See Spain colored with official data: population, density, population change and area, by province or across all 8,132 municipalities. Hover to see each value, check the top and bottom 10 and download the data as a CSV.

Loading the map…

Hover over the map or tap an area to see its value.

Population (2025)

  • < 200K(9)
  • 200K to 400K(10)
  • 400K to 600K(6)
  • 600K to 750K(5)
  • 750K to 1M(8)
  • ≥ 1M(14)

Breaks by rounded quantiles: each color holds about the same number of provinces.

Provinces of Spain · Population (2025)

Top 10

  1. 1 7,137,031
  2. 2 5,983,325
  3. 3 2,758,633
  4. 4 2,030,037
  5. 5 1,976,624
  6. 6 1,791,092
  7. 7 1,589,138
  8. 8 1,257,041
  9. 9 1,237,480
  10. 10 1,167,555

Bottom 10

  1. 52 83,595
  2. 51 86,780
  3. 50 90,234
  4. 49 136,197
  5. 48 158,470
  6. 47 158,687
  7. 46 159,887
  8. 45 165,275
  9. 44 198,216
  10. 43 230,624

How to use it

Pick what you want to see under “Data” and the map recolors right away. Hover over a province, or tap it on your phone, to see its value, its rank and the rest of its numbers. Below the map you’ll find the legend and the 10 highest and lowest.

To see municipalities, tap a province and press “See its municipalities”, or choose it under “Province”. “Municipalities” shows all of Spain’s at once (it takes a little longer: that’s a lot of shapes). The Canary Islands sit off the southwest; use the “Canary Islands” button on the map to jump there. The page address keeps your view, so you can share it as is.

Provinces, municipalities and INE codes

Spain is split into 17 autonomous communities (regions such as Andalusia, Catalonia or Madrid) and two autonomous cities in North Africa, Ceuta and Melilla. The communities are divided into 50 provinces, which are older and smaller: most are named after their capital city, like Seville or Valencia, and some communities, like Madrid or Asturias, are a single province.

Each province is made up of municipalities (municipios), the local councils that cover every inch of the country, from Madrid with over three million people to villages with a few dozen. There are 8,132 of them, so they’re much smaller than a US county: closer to a township or a small town with its farmland around it.

The INE (Instituto Nacional de Estadística) is Spain’s national statistics office. Every province has a two-digit INE code and every municipality a five-digit one: the province code plus three digits, so 28079 is the city of Madrid (28) and 08019 is Barcelona (08). The CSV download uses these codes, which are the safe way to join your own data, since some names repeat across provinces.

What the map shows

Spain had 49,114,494 people on January 1, 2025, according to the municipal register, or 97.1 people per square kilometer. Leaving out Ceuta and Melilla, the densest province is Madrid (889.1 per km²) and the least dense is Soria (8.8 per km²).

From 2015 to 2025 Spain grew 5.3%, but not everywhere: 20 provinces have fewer people today than ten years ago. Guadalajara grew the most (+12.5%) and Zamora shrank the most (−9.9%).

By municipality the gap is even wider: 4,850 of those that existed in 2015 (60%) lost people, mostly small villages in the interior. Among those with at least 1,000 people, Yebes (Guadalajara) grew the fastest, by 105.7%. Among those with over 10,000, the densest is Mislata (Valencia), with 23,192 people per km².

How the colors work

Population, density and area use six colors split by rounded quantiles: each color holds about the same number of provinces or municipalities, and the breaks are rounded to easy numbers. They’re recalculated for what you’re looking at, so the provinces and the municipalities of one province each get their own.

Population change uses fixed breaks: gray for those that barely changed (between −1% and +1%), green for those that grew and brown for those that shrank, darker as the change gets bigger (over 5% and over 10%). Every scale goes from light to dark, so it still reads in grayscale or printed in black and white. Areas are in square kilometers, as the official figures are (1 km² is 0.386 square miles).

Where the data comes from

Population is the official figure from the Padrón, the municipal register every resident of Spain has to sign up in, as of January 1 of 2025, 2020 and 2015, published by the INE. Each municipality’s area comes from the Nomenclátor Geográfico de Municipios of the IGN (Instituto Geográfico Nacional, Spain’s national mapping agency), and the boundaries from its database of administrative divisions, simplified so the map loads fast. Density is population divided by area.

Frequently asked questions

How many provinces does Spain have?

50 provinces, plus the autonomous cities of Ceuta and Melilla, which the map shows alongside them (52 areas in all). They are grouped into 17 autonomous communities.

Which province is the most densely populated?

Madrid, with 889.1 people per km², leaving out Ceuta and Melilla, which are tiny and very dense. The least dense is Soria, with 8.8.

How many municipalities are losing people?

4,850 of those that existed in 2015 had fewer people in 2025: 60% of them. Choose “Population change 2015–2025” and “Municipalities” to see them on the map.

What is an INE code?

The official code the Spanish statistics office gives each province (two digits) and municipality (five digits: the province plus three). 41091 is Seville, in province 41. If a spreadsheet dropped the leading zero, 8019 is Barcelona’s 08019.

How current is the data?

Population is from the municipal register as of January 1, 2025, the latest official figure the INE has published. The changes compare it with January 1, 2020 and 2015.

Can I download the data?

“Download data (CSV)” gives you every value for what you’re viewing (the provinces, one province’s municipalities or all of Spain’s), with their INE codes, ready for Excel or Google Sheets. “Download image” saves the map with its legend as a PNG.

Why do some municipalities have no change?

Because they didn’t exist ten years ago: they were created or merged later. On the change map they show up white (no data). There are 15 of them.

Related tools

All tools

Sources