Autonomous communities of Spain by population density

Melilla had the highest population density of 19 autonomous communities in 2018, at 6,049.9 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 93.1 inhabitants per km². Source: Eurostat, European Commission.

Highest6,049.9Melilla
Median110.419 autonomous communities
Spain93.1History

All autonomous communities, 2018

CSVChart (SVG)

MelillaMelilla: 6,049.9 inhabitants per km²6,049.9CeutaCeuta: 4,251 inhabitants per km²4,251Community of MadridCommunity of Madrid: 827.3 inhabitants per km²827.3Basque CountryBasque Country: 302.4 inhabitants per km²302.4Canary IslandsCanary Islands: 295.3 inhabitants per km²295.3Balearic IslandsBalearic Islands: 236.8 inhabitants per km²236.8CataloniaCatalonia: 235.5 inhabitants per km²235.5Valencian CommunityValencian Community: 214.4 inhabitants per km²214.4Region of MurciaRegion of Murcia: 131.1 inhabitants per km²131.1CantabriaCantabria: 110.4 inhabitants per km²110.4AndalusiaAndalusia: 97 inhabitants per km²97AsturiasAsturias: 97 inhabitants per km²97GaliciaGalicia: 92 inhabitants per km²92NavarreNavarre: 62.5 inhabitants per km²62.5La RiojaLa Rioja: 62.3 inhabitants per km²62.3AragonAragon: 27.7 inhabitants per km²27.7ExtremaduraExtremadura: 26.1 inhabitants per km²26.1Castile and LeónCastile and León: 25.7 inhabitants per km²25.7Castilla-La ManchaCastilla-La Mancha: 25.7 inhabitants per km²25.7
inhabitants per km². Source: Eurostat. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2018
inhabitants per km²
Change on 2017
1Melilla6,049.9-0.2%
2Ceuta4,251-0.1%
3Community of Madrid827.3+1.3%
4Basque Country302.4+0.2%
5Canary Islands295.3+1.2%
6Balearic Islands236.8+1.6%
7Catalonia235.5+0.9%
8Valencian Community214.4+0.4%
9Region of Murcia131.1+0.5%
10Cantabria110.40%
11Andalusia97+0.1%
11Asturias97-0.6%
13Galicia92-0.1%
14Navarre62.5+0.6%
15La Rioja62.3+0.2%
16Aragon27.70%
17Extremadura26.1-0.4%
18Castile and León25.7-0.8%
18Castilla-La Mancha25.70%

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

Which autonomous community has the lowest population density?

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

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