Autonomous communities of Spain by population density

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

Highest6,017.7Melilla
Median110.719 autonomous communities
Spain94.2History

All autonomous communities, 2021

CSVChart (SVG)

MelillaMelilla: 6,017.7 inhabitants per km²6,017.7CeutaCeuta: 4,190.1 inhabitants per km²4,190.1Community of MadridCommunity of Madrid: 846.9 inhabitants per km²846.9Basque CountryBasque Country: 304.2 inhabitants per km²304.2Canary IslandsCanary Islands: 301.9 inhabitants per km²301.9Balearic IslandsBalearic Islands: 244.4 inhabitants per km²244.4CataloniaCatalonia: 239.7 inhabitants per km²239.7Valencian CommunityValencian Community: 217.8 inhabitants per km²217.8Region of MurciaRegion of Murcia: 133.5 inhabitants per km²133.5CantabriaCantabria: 110.7 inhabitants per km²110.7AndalusiaAndalusia: 97.8 inhabitants per km²97.8AsturiasAsturias: 96.2 inhabitants per km²96.2GaliciaGalicia: 91.9 inhabitants per km²91.9NavarreNavarre: 63.5 inhabitants per km²63.5La RiojaLa Rioja: 62.8 inhabitants per km²62.8AragonAragon: 28 inhabitants per km²28Castilla-La ManchaCastilla-La Mancha: 25.9 inhabitants per km²25.9ExtremaduraExtremadura: 25.9 inhabitants per km²25.9Castile 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 communities2021
inhabitants per km²
Change on 2020
1Melilla6,017.7-0.4%
2Ceuta4,190.1-0.8%
3Community of Madrid846.9+0.9%
4Basque Country304.2+0.2%
5Canary Islands301.9+0.8%
6Balearic Islands244.4+1.3%
7Catalonia239.7+0.7%
8Valencian Community217.8+0.7%
9Region of Murcia133.5+0.8%
10Cantabria110.7+0.2%
11Andalusia97.8+0.4%
12Asturias96.2-0.4%
13Galicia91.9-0.1%
14Navarre63.5+0.6%
15La Rioja62.8+0.3%
16Aragon28+0.4%
17Castilla-La Mancha25.9+0.4%
17Extremadura25.9-0.4%
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,017.7 inhabitants per km² in 2021, according to Eurostat, European Commission.

Which autonomous community has the lowest population density?

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

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