Autonomous communities of Spain by population density

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

Highest6,124.2Melilla
Median111.919 autonomous communities
Spain96.2History

All autonomous communities, 2023

CSVChart (SVG)

MelillaMelilla: 6,124.2 inhabitants per km²6,124.2CeutaCeuta: 4,155.8 inhabitants per km²4,155.8Community of MadridCommunity of Madrid: 870.6 inhabitants per km²870.6Basque CountryBasque Country: 309 inhabitants per km²309Canary IslandsCanary Islands: 299.9 inhabitants per km²299.9CataloniaCatalonia: 248.9 inhabitants per km²248.9Balearic IslandsBalearic Islands: 245.5 inhabitants per km²245.5Valencian CommunityValencian Community: 227.7 inhabitants per km²227.7Region of MurciaRegion of Murcia: 138 inhabitants per km²138CantabriaCantabria: 111.9 inhabitants per km²111.9AndalusiaAndalusia: 99.2 inhabitants per km²99.2AsturiasAsturias: 95.4 inhabitants per km²95.4GaliciaGalicia: 92 inhabitants per km²92NavarreNavarre: 65.3 inhabitants per km²65.3La RiojaLa Rioja: 64.2 inhabitants per km²64.2AragonAragon: 28.4 inhabitants per km²28.4Castilla-La ManchaCastilla-La Mancha: 26.5 inhabitants per km²26.5ExtremaduraExtremadura: 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 communities2023
inhabitants per km²
Change on 2022
1Melilla6,124.2+0.6%
2Ceuta4,155.8+0.1%
3Community of Madrid870.6+2%
4Basque Country309+0.5%
5Canary Islands299.9+1.2%
6Catalonia248.9+1.6%
7Balearic Islands245.5+1.9%
8Valencian Community227.7+2.1%
9Region of Murcia138+1.2%
10Cantabria111.9+0.4%
11Andalusia99.2+0.7%
12Asturias95.4+0.2%
13Galicia92+0.2%
14Navarre65.3+1.1%
15La Rioja64.2+0.6%
16Aragon28.4+1.1%
17Castilla-La Mancha26.5+1.1%
18Extremadura25.80%
19Castile and León25.5+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,124.2 inhabitants per km² in 2023, according to Eurostat, European Commission.

Which autonomous community has the lowest population density?

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

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