Autonomous communities of Spain by population density

Melilla had the highest population density of 19 autonomous communities in 2017, at 6,059.1 inhabitants per km². Castilla-La Mancha had the lowest, at 25.7 inhabitants per km². The median was 110.4 inhabitants per km² and the figure for Spain was 92.7 inhabitants per km². Source: Eurostat, European Commission.

Highest6,059.1Melilla
Median110.419 autonomous communities
Spain92.7History

All autonomous communities, 2017

CSVChart (SVG)

MelillaMelilla: 6,059.1 inhabitants per km²6,059.1CeutaCeuta: 4,256.1 inhabitants per km²4,256.1Community of MadridCommunity of Madrid: 817 inhabitants per km²817Basque CountryBasque Country: 301.7 inhabitants per km²301.7Canary IslandsCanary Islands: 291.8 inhabitants per km²291.8CataloniaCatalonia: 233.5 inhabitants per km²233.5Balearic IslandsBalearic Islands: 233 inhabitants per km²233Valencian CommunityValencian Community: 213.6 inhabitants per km²213.6Region of MurciaRegion of Murcia: 130.4 inhabitants per km²130.4CantabriaCantabria: 110.4 inhabitants per km²110.4AsturiasAsturias: 97.6 inhabitants per km²97.6AndalusiaAndalusia: 96.9 inhabitants per km²96.9GaliciaGalicia: 92.1 inhabitants per km²92.1La RiojaLa Rioja: 62.2 inhabitants per km²62.2NavarreNavarre: 62.1 inhabitants per km²62.1AragonAragon: 27.7 inhabitants per km²27.7ExtremaduraExtremadura: 26.2 inhabitants per km²26.2Castile and LeónCastile and León: 25.9 inhabitants per km²25.9Castilla-La ManchaCastilla-La Mancha: 25.7 inhabitants per km²25.7
inhabitants per km². Source: Eurostat. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2017
inhabitants per km²
Change on 2016
1Melilla6,059.1-0%
2Ceuta4,256.1+0.3%
3Community of Madrid817+1%
4Basque Country301.7+0.2%
5Canary Islands291.8+0.9%
6Catalonia233.5+0.5%
7Balearic Islands233+1.3%
8Valencian Community213.6+0.1%
9Region of Murcia130.4+0.3%
10Cantabria110.4-0.1%
11Asturias97.6-0.6%
12Andalusia96.90%
13Galicia92.1-0.3%
14La Rioja62.20%
15Navarre62.1+0.6%
16Aragon27.7-0.4%
17Extremadura26.2-0.8%
18Castile and León25.9-0.8%
19Castilla-La Mancha25.7-0.4%

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,059.1 inhabitants per km² in 2017, according to Eurostat, European Commission.

Which autonomous community has the lowest population density?

Castilla-La Mancha, with 25.7 inhabitants per km² in 2017.

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