Skip to content
3D map of Spain’s population in 2020, north up, one column for each 2 km square as tall as its density: the tallest columns stand over Barcelona, with Madrid the next labelled town

World / Europe / Spain

Spain’s population density is 251 people per square mile

48,352,528 people on 192,934 sq mi (499,697 km²) · 90th of 193 countries by density · World Bank, 2023

Spain on a globe

People per sq mi, 2020 per km² on the second row

  1. 10.4
  2. 5019
  3. 25097
  4. 1,000386
  5. 5,0001,931
  6. 25,000+9,653+

The ground: the average within 7 mi (11 km); sand: no one

Where Spain’s 47,380,262 people lived in 2020: a 3D model with one column for each 1.2 mi (2 km) square (0.6 mi, 1 km, on a desktop computer) that has people, its height and colour set by that square’s density and nothing smoothed (the ground’s paler colour is the average round it), north up. Modeled estimate (JRC), GHS-POP R2023A; town names from GeoNames. The model leaves out the Canary Islands, far beyond the map’s frame: 2,126,572 people in the grid for 2020, counted in every grid figure on this page. Download the map (PNG) Download the figures (CSV)

Spain has 251 people per square mile (97 per km²): 48,352,528 people on 192,934 sq mi (499,697 km²) of land, the World Bank’s official estimate for 2023. That ranks 90th of 193 countries and 22nd of 43 in Europe. The 3D map above shows where those people live, square by square.

By Marko Visic, MPharm, BSc Physics · Updated · How the maps are made

Sheet: Spain, official estimates 2023
Population48,352,528
Land area192,934 sq mi499,697 km²
Density251 per sq mi97 per km²
Rank by density90th of 19322nd of 43 in Europe

Where Spain’s people live

Spain’s people live close together on a small part of its land. The JRC’s population grid counts 47,380,262 people in 2020 and places each one on the map above.

0.46%of the land holds half of all residents.
2.3%of the land holds four in five.
41.1%of the land has no modeled residents.
20,811people per sq mi (8,035 per km²) around the average resident, about 83 times the national density. This population-weighted density is the crowding people actually live in.
  • 0.46% of the land: half of all residents
  • 1.9% of the land: the next 30%
  • 56.5% of the land: the last 20%
  • 41.1% of the land: nobody

Modeled estimates for 2020 (JRC GHS-POP R2023A). The shares and the weighted density are counted on 1 km squares; the map adds up the same people on 2 km squares.

Cities and towns

The JRC’s 2020 grid finds 90 places in Spain big and dense enough to count as urban centres. They hold 52.0% of all residents; the table lists the 20 largest. Another 26.7% live in urban clusters, the JRC’s class for towns and suburbs, and 21.4% in rural areas.

Urban centrePeople, 2020Share of Spain
Madrid5,450,75711.5%
Barcelona3,667,2547.7%
Valencia1,398,0913.0%
Bilbao748,4151.6%
Seville699,5951.5%
Zaragoza588,8411.2%
Málaga517,9471.1%
Palma de Mallorca407,3720.9%
Alicante391,9740.8%
Las Palmas de Gran Canaria374,8220.8%
Granada364,8600.8%
Santa Cruz de Tenerife356,4170.8%
Murcia325,9820.7%
Valladolid315,8810.7%
Pamplona305,5750.6%
Vigo291,3150.6%
A Coruña274,3250.6%
Gijón257,9400.5%
Terrassa253,3560.5%
Vitoria-Gasteiz248,1290.5%

Modeled estimates (JRC): urban-centre extents and people from GHS-SMOD and GHS-POP 2020, names from GHS-UCDB R2024A. Definitions on the methodology page.

How Spain’s density changed

Spain’s density went from 159 to 251 people per sq mi between 1961 and 2023 (62 to 97 per km²), the years the World Bank series covers.

1961: 159 per sq mi2023: 251 per sq mi

People per square mile, official estimates, World Bank. The axis starts at 150.

The JRC’s grid goes back to 1975. It counts 35,768,984 people then and 47,380,262 in 2020,a rise of 32.5%. Over the same years the population’s centre moved 24.6 mi (39.6 km) southeast.

YearPeopleWeighted density, per sq mi (km²)In urban centres
197535,768,98417,686 (6,829)43.3%
198037,501,07718,916 (7,304)45.0%
198538,482,31319,119 (7,382)45.7%
199038,900,91819,258 (7,435)46.1%
199539,826,65718,511 (7,147)46.6%
200040,755,08918,043 (6,966)46.6%
200543,699,13418,057 (6,972)47.6%
201046,587,14218,405 (7,106)48.0%
201546,446,92519,247 (7,431)50.0%
202047,380,26220,811 (8,035)52.0%

Modeled estimates (JRC GHS-POP and GHS-SMOD R2023A, 1 km grid), 1975–2020. The population centre is the population-weighted mean position (calculated).

Modeled and official counts

Two sources count Spain’s people on this page. The headline figures are the World Bank’s official estimates. The map and the where-people-live figures come from the JRC’s GHS-POP grid, which spreads census-based counts over the built-up areas it finds in satellite data.

For 2020 the grid’s total is within 0.1% of the World Bank’s estimate. We show both as published and never adjust one to match the other.

Why the map looks like this

Four in five people in Spain live in urban areas that cover a fifth of its territory, by the count of the Spanish Urban Agenda that the government cited in 2020.1 On the map Madrid stands in the middle of the country, far from any coast, while Barcelona and Valencia, the next-largest centres, sit on the Mediterranean; Barcelona has the tallest columns.

Between the cities the high central plateau is thinly settled, and the grid leaves 41.1% of Spain’s land with no residents at all.

Spain compared

The United Kingdom is the most densely populated of Spain’s neighbours, with 734 people per sq mi, 2.9 times Spain’s density; Morocco is the least, with 219, 87% of Spain’s density.

CountryPeople per sq miper km²Population
United Kingdom73428368,526,000
Andorra44717380,856
France32912768,372,286
Portugal29911510,578,174
Spain2519748,352,528
Morocco2198537,712,505

Official estimates for 2023, World Bank. Spain and its neighbours, the countries next to it on our 1 km grid of the World Bank’s boundaries (see methodology), densest first.

Farther away, Côte d'Ivoire (254), Kenya (247), Honduras (246), Cambodia (256) and Senegal (243) have nearly the same density. In Europe, Spain ranks 22nd of 43 by density, behind leaders Monaco, Malta and San Marino. The full ranking is on the population density by country page.

A US state the same size

California is the US state closest to Spain in land area: 155,860 sq mi against 192,934. It holds 39,355,309 people (2025 estimate): 253 per sq mi (97 per km²), about the same as Spain’s. See the California density map.

Using this map

  • Move it, turn it and look closer. Drag the map to move it, right-drag (or drag with Ctrl or ⌘ held) to turn and tilt it, scroll to zoom (scrolling down from the opening view carries on down the page), or use the buttons; on a phone, drag it with one finger, pinch or double-tap to zoom, twist two fingers to turn it and slide two fingers up or down to tilt it (the page scrolls from below the map). The compass button turns north back up. Point at any column to read its density.
  • Read the colours, then the heights. A column’s top takes the legend’s colour for its square, and its height rises in step with density, so a column twice as tall marks a square twice as dense.
  • Use the weighted density for crowding. The national figure of 251 per sq mi spreads people over all of Spain’s land, empty or not; 20,811 per sq mi is what the average resident lives in.
  • Take the data with you. The CSV lists every figure on this page with its year, label and source, and the PNG is free to reuse with the credit below.

Questions about Spain’s population density

What is the population density of Spain?
251 people per square mile (97 per km²), the World Bank’s official estimate for 2023: 48,352,528 people on 192,934 sq mi (499,697 km²) of land. That ranks Spain 90th of 193 countries.
What US state is closest in size to Spain?
California, by land area: 155,860 sq mi against Spain’s 192,934 sq mi. California has 253 people per sq mi (2025); Spain has 251 (2023).
Where do most people in Spain live?
Half of the population lives on 0.46% of the land. Spain’s 90 urban centres, led by Madrid (5,450,757 people), Barcelona (3,667,254) and Valencia (1,398,091), hold 52.0% of all residents, and 21.4% live in rural areas (JRC modeled estimates for 2020).
Is Spain densely populated?
It sits in the middle of Europe’s table, 22nd of 43 countries by density. Its neighbours range from Morocco at 219 people per sq mi to the United Kingdom at 734.

Data and sources

Data as of: World Bank World Development Indicators (official estimates to 2023); JRC GHS-POP and GHS-SMOD R2023A (modeled estimates, 1975–2020); page figures computed 2026-11-08. Every figure carries its label: official estimate, modeled estimate (JRC) or calculated. Equations and limits are on the methodology page.

  1. World Bank, World Development Indicators: EN.POP.DNST, SP.POP.TOTL, AG.LND.TOTL.K2. CC BY 4.0; retrieved Oct 2026. data.worldbank.org
  2. European Commission, Joint Research Centre (JRC), GHS-POP R2023A, 1 km Mollweide grid, epochs 1975–2020. CC BY 4.0; retrieved Oct 2026. human-settlement.emergency.copernicus.eu
  3. European Commission, Joint Research Centre (JRC), GHS-POP R2023A, 100 m Mollweide grid, epoch 2020 (poster cells under 1 km). CC BY 4.0; retrieved Nov 2026. human-settlement.emergency.copernicus.eu
  4. European Commission, Joint Research Centre (JRC), GHS-SMOD R2023A (Degree of Urbanisation, level 2), 1 km, epochs 1975–2020. CC BY 4.0; retrieved Oct 2026. human-settlement.emergency.copernicus.eu
  5. European Commission, Joint Research Centre (JRC), GHS-UCDB R2024A V1.2 (urban centre names only). CC BY 4.0 (JRC FTP copyright notice); retrieved Oct 2026. human-settlement.emergency.copernicus.eu
  6. GeoNames, GeoNames cities5000 (town names and points only). CC BY 4.0; retrieved Nov 2026. www.geonames.org
  7. World Bank, World Bank Official Boundaries, version 3 (Admin 0, Non-Determined Legal Status Areas, Admin 0 lines). CC BY 4.0; retrieved Oct 2026. datacatalog.worldbank.org
  8. U.S. Census Bureau, Gazetteer Files, counties: 2020 and 2025 (state land area = sum of county ALAND). public domain (17 U.S.C. §105); retrieved Oct 2026. www.census.gov
  9. U.S. Census Bureau, Vintage 2025 state population estimates (NST-EST2025-ALLDATA), July 1, 2025. public domain (17 U.S.C. §105); retrieved Oct 2026. www.census.gov
  10. GHSL dataset doi:10.2905/2FF68A52-5B5B-4A22-8F40-C41DA8332CFE; Pesaresi et al. (2024), doi:10.1080/17538947.2024.2390454.

Sources for “Why the map looks like this”

  1. La Moncloa (Government of Spain), “El Gobierno acelera las actuaciones para hacer frente al reto demográfico” (16 September 2020). www.lamoncloa.gob.es

Map and CSV: free to reuse under CC BY 4.0 with the credit “populationdensitymaps.com; data: World Bank, European Commission JRC”.