Autonomous communities of Spain by population density, 2024

Melilla had the highest population density of 19 autonomous communities in 2024, at 6,180.4 inhabitants per km². Castile and León had the lowest, at 25.5 inhabitants per km². The median was 112.4 inhabitants per km² and the figure for Spain was 97.2 inhabitants per km². Source: Eurostat, European Commission.

Highest6,180.4Melilla
Median112.419 autonomous communities
Spain97.2History

All autonomous communities, 2024

CSVChart (SVG)

MelillaMelilla: 6,180.4 inhabitants per km²6,180.4CeutaCeuta: 4,168.7 inhabitants per km²4,168.7Community of MadridCommunity of Madrid: 885.8 inhabitants per km²885.8Basque CountryBasque Country: 310.9 inhabitants per km²310.9Canary IslandsCanary Islands: 303 inhabitants per km²303CataloniaCatalonia: 252.4 inhabitants per km²252.4Balearic IslandsBalearic Islands: 249.5 inhabitants per km²249.5Valencian CommunityValencian Community: 232.2 inhabitants per km²232.2Region of MurciaRegion of Murcia: 139.6 inhabitants per km²139.6CantabriaCantabria: 112.4 inhabitants per km²112.4AndalusiaAndalusia: 99.7 inhabitants per km²99.7AsturiasAsturias: 95.8 inhabitants per km²95.8GaliciaGalicia: 92.3 inhabitants per km²92.3NavarreNavarre: 65.8 inhabitants per km²65.8La RiojaLa Rioja: 64.7 inhabitants per km²64.7AragonAragon: 28.6 inhabitants per km²28.6Castilla-La ManchaCastilla-La Mancha: 26.7 inhabitants per km²26.7ExtremaduraExtremadura: 25.8 inhabitants per km²25.8Castile and LeónCastile and León: 25.5 inhabitants per km²25.5
inhabitants per km². Source: Eurostat. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2024
inhabitants per km²
Change on 2023
1Melilla6,180.4+0.9%
2Ceuta4,168.7+0.3%
3Community of Madrid885.8+1.7%
4Basque Country310.9+0.6%
5Canary Islands303+1%
6Catalonia252.4+1.4%
7Balearic Islands249.5+1.6%
8Valencian Community232.2+2%
9Region of Murcia139.6+1.2%
10Cantabria112.4+0.4%
11Andalusia99.7+0.5%
12Asturias95.8+0.4%
13Galicia92.3+0.3%
14Navarre65.8+0.8%
15La Rioja64.7+0.8%
16Aragon28.6+0.7%
17Castilla-La Mancha26.7+0.8%
18Extremadura25.80%
19Castile and León25.50%

Other periods

About this ranking

Resident population divided by land area in km². World Bank figures use mid-year population and land area excluding inland water.

United States: Census Bureau population estimates for 1 July divided by land area (water excluded) from the latest Census Gazetteer files. US tables often give people per square mile; multiply persons per km² by 2.59 to compare.

Every value in the ranking comes from the same publisher and the same period, so the autonomous communities are compared on one definition. Equal values share a rank.

How to cite

Eurostat. Population density by NUTS 3 region (demo_r_d3dens). https://ec.europa.eu/eurostat/databrowser/view/demo_r_d3dens/default/table. Retrieved 2026-10-07.

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 Autonomous communities of Spain by population density using official data, and cite the source.
rank_places {"indicator":"population_density","level":"region","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=population_density&level=region&within=Spain&limit=10

Connect Claude, ChatGPT or Cursor in one step. The trial answers 25 calls a day without an account.

Questions

Which autonomous community has the highest population density?

Melilla, with 6,180.4 inhabitants per km² in 2024, according to Eurostat, European Commission.

Which autonomous community has the lowest population density?

Castile and León, with 25.5 inhabitants per km² in 2024.

Where does this ranking come from?

Every value comes from one source and one period, so the places are comparable: Eurostat, European Commission, Population density by NUTS 3 region (demo_r_d3dens). Retrieved 2026-10-07.

Population density: other rankings

Autonomous communities of Spain: more rankings