ChowChowRankings
English

Cities in Spain Ranked by Population density

Population divided by land area, both as recorded in Wikidata for the city proper. Cities without a recorded area are left out. Source: Wikidata (CC0 1.0 (public domain)).

Summary

L'Hospitalet de Llobregat ranks #1 with 23,348 people per km². Barcelona is second with 17,094 people per km², 36.6% behind. The top five are L'Hospitalet de Llobregat, Barcelona, Portugalete, Badalona and Melilla. The median across all 28 is 2,929 people per km²; Badajoz is last at 102.2 people per km².

#1
L'Hospitalet de Llobregat · 23,348 people per km²
Median
2,929 people per km²
Coverage
28 cities in Spain
Data year
As recorded in Wikidata
Last updated
2026-11-14
Top 10: Population densityBar chart of the top 10: 1. L'Hospitalet de Llobregat 23,348; 2. Barcelona 17,094; 3. Portugalete 13,970; 4. Badalona 10,922; 5. Melilla 7,034; 6. Coslada 6,654; 7. Sabadell 5,962; 8. Ibiza 4,967; 9. Móstoles 4,736; 10. Leganés 4,553.L'Hospitalet de Llobreg…23,348Barcelona17,094Portugalete13,970Badalona10,922Melilla7,034Coslada6,654Sabadell5,962Ibiza4,967Móstoles4,736Leganés4,553
Top 10: Population density (people per km²). Bar chart of the top 10: 1. L'Hospitalet de Llobregat 23,348; 2. Barcelona 17,094; 3. Portugalete 13,970; 4. Badalona 10,922; 5. Melilla 7,034; 6. Coslada 6,654; 7. Sabadell 5,962; 8. Ibiza 4,967; 9. Móstoles 4,736; 10. Leganés 4,553.

Full ranking

Cities in Spain Ranked by Population density
RankCityCountryPopulation density (people per km²)
1L'Hospitalet de LlobregatSpain23,348
2BarcelonaSpain17,094
3PortugaleteSpain13,970
4BadalonaSpain10,922
5MelillaSpain7,034
6CosladaSpain6,654
7SabadellSpain5,962
8IbizaSpain4,967
9MóstolesSpain4,736
10LeganésSpain4,553
11CeutaSpain4,519
12BarakaldoSpain3,504
13TerrassaSpain3,323
14ArrecifeSpain3,117
15AlcobendasSpain2,742
16PalmaSpain2,084
17AlicanteSpain1,820
18Castellón de la PlanaSpain1,650
19San Cristóbal de La LagunaSpain1,579
20MálagaSpain1,517
21TorrelavegaSpain1,457
22TorrentSpain1,313
23VillarrealSpain972.8
24SegoviaSpain320.2
25AranjuezSpain313.5
26ÁvilaSpain254.9
27PlasenciaSpain184.1
28BadajozSpain102.2

About the top 10

#1 L'Hospitalet de Llobregat

L'Hospitalet de Llobregat ranks #1 on this list with 23,348 people per km².

Country
Spain
Population
289,510 people (2025)
Area
12.4 km²
Density
23,348 people per km²
Elevation
8 m
Coordinates
41.36° N, 2.10° E

#3 Portugalete

Portugalete ranks #3 on this list with 13,970 people per km².

Country
Spain
Population
44,843 people (2025)
Area
3.21 km²
Density
13,970 people per km²
Elevation
26 m
Founded
1322
Coordinates
43.32° N, 3.02° W

#4 Badalona

Badalona ranks #4 on this list with 10,922 people per km².

Country
Spain
Population
231,542 people (2025)
Area
21.2 km²
Density
10,922 people per km²
Elevation
6 m
Coordinates
41.43° N, 2.23° E

#5 Melilla

Melilla ranks #5 on this list with 7,034 people per km².

Country
Spain
Population
86,780 people (2025)
Area
12.3 km²
Density
7,034 people per km²
Elevation
30 m
Coordinates
35.28° N, 2.95° W

#6 Coslada

Coslada ranks #6 on this list with 6,654 people per km².

Country
Spain
Population
80,512 people (2025)
Area
12.1 km²
Density
6,654 people per km²
Elevation
621 m
Coordinates
40.43° N, 3.56° W

#7 Sabadell

Sabadell ranks #7 on this list with 5,962 people per km².

Country
Spain
Population
225,368 people (2025)
Area
37.8 km²
Density
5,962 people per km²
Elevation
190 m
Founded
1799 BCE
Coordinates
41.55° N, 2.11° E

#8 Ibiza

Ibiza ranks #8 on this list with 4,967 people per km².

Country
Spain
Population
55,337 people (2025)
Area
11.1 km²
Density
4,967 people per km²
Elevation
99 m
Founded
653 BCE
Coordinates
38.91° N, 1.43° E

#9 Móstoles

Móstoles ranks #9 on this list with 4,736 people per km².

Country
Spain
Population
214,817 people (2025)
Area
45.4 km²
Density
4,736 people per km²
Elevation
620 m
Coordinates
40.33° N, 3.87° W

#10 Leganés

Leganés ranks #10 on this list with 4,553 people per km².

Country
Spain
Population
195,734 people (2025)
Area
43 km²
Density
4,553 people per km²
Elevation
666 m
Coordinates
40.33° N, 3.77° W

Profile facts: Wikidata (CC0).

Source and method

Population divided by land area, both as recorded in Wikidata for the city proper. Cities without a recorded area are left out.

Source: Wikidata. Licence: CC0 1.0 (public domain). Retrieved: 2026-11-14.

Data: Wikidata (CC0)

Values are shown as published. Provider terms: Wikidata. All licences: Sources & licences.