Autonomous communities of Spain by population density

Melilla had the highest population density of 19 autonomous communities in 2022, at 6,086.6 inhabitants per km². Castile and León had the lowest, at 25.4 inhabitants per km². The median was 111.4 inhabitants per km² and the figure for Spain was 95.1 inhabitants per km². Source: Eurostat, European Commission.

Highest6,086.6Melilla
Median111.419 autonomous communities
Spain95.1History

All autonomous communities, 2022

CSVChart (SVG)

MelillaMelilla: 6,086.6 inhabitants per km²6,086.6CeutaCeuta: 4,152.7 inhabitants per km²4,152.7Community of MadridCommunity of Madrid: 853.9 inhabitants per km²853.9Basque CountryBasque Country: 307.5 inhabitants per km²307.5Canary IslandsCanary Islands: 296.3 inhabitants per km²296.3CataloniaCatalonia: 245 inhabitants per km²245Balearic IslandsBalearic Islands: 241 inhabitants per km²241Valencian CommunityValencian Community: 223.1 inhabitants per km²223.1Region of MurciaRegion of Murcia: 136.3 inhabitants per km²136.3CantabriaCantabria: 111.4 inhabitants per km²111.4AndalusiaAndalusia: 98.5 inhabitants per km²98.5AsturiasAsturias: 95.2 inhabitants per km²95.2GaliciaGalicia: 91.8 inhabitants per km²91.8NavarreNavarre: 64.6 inhabitants per km²64.6La RiojaLa Rioja: 63.8 inhabitants per km²63.8AragonAragon: 28.1 inhabitants per km²28.1Castilla-La ManchaCastilla-La Mancha: 26.2 inhabitants per km²26.2ExtremaduraExtremadura: 25.8 inhabitants per km²25.8Castile and LeónCastile and León: 25.4 inhabitants per km²25.4
inhabitants per km². Source: Eurostat. Retrieved 2026-10-07.

Full ranking

RankAutonomous communities2022
inhabitants per km²
Change on 2021
1Melilla6,086.6+1.1%
2Ceuta4,152.7-0.9%
3Community of Madrid853.9+0.8%
4Basque Country307.5+1.1%
5Canary Islands296.3-1.9%
6Catalonia245+2.2%
7Balearic Islands241-1.4%
8Valencian Community223.1+2.4%
9Region of Murcia136.3+2.1%
10Cantabria111.4+0.6%
11Andalusia98.5+0.7%
12Asturias95.2-1%
13Galicia91.8-0.1%
14Navarre64.6+1.7%
15La Rioja63.8+1.6%
16Aragon28.1+0.4%
17Castilla-La Mancha26.2+1.2%
18Extremadura25.8-0.4%
19Castile and León25.4-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,086.6 inhabitants per km² in 2022, according to Eurostat, European Commission.

Which autonomous community has the lowest population density?

Castile and León, with 25.4 inhabitants per km² in 2022.

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