Population and demography in Spain
The latest figures for 8 indicators in Spain, how the autonomous communities compare, and the source of each figure.
- Population
- Natural change rate
- Median age
- Average age
- Population aged 65 and over
- Foreign nationals share of population
- Population density
- Net migration including statistical adjustment
- Sources and citations
Population
Population in Spain was 49.11 million in 2025, up 1.1% from 2024.
Of 19 autonomous communities in 2025, Andalusia had the highest population (8.67 million) and Ceuta the lowest (83,595).
Highest and lowest autonomous communities
- Andalusia8.67 million
- Catalonia8.15 million
- Community of Madrid7.14 million
Natural change rate
Natural change rate in Spain was -2.5 per 1,000 inhabitants (provisional) in 2025, down 0.1 per 1,000 inhabitants from 2024.
Of 19 autonomous communities in 2024, Melilla had the highest natural change rate (4.2 per 1,000 inhabitants) and Asturias the lowest (-8.5 per 1,000 inhabitants).
Highest and lowest autonomous communities
- Melilla4.2 per 1,000 inhabitants
- Ceuta2 per 1,000 inhabitants
- Region of Murcia0.5 per 1,000 inhabitants
- Castile and León-6.7 per 1,000 inhabitants
- Galicia-7.2 per 1,000 inhabitants
- Asturias-8.5 per 1,000 inhabitants
Median age
Median age in Spain was 45.8 years in 2025, up 0.2 years from 2024.
Of 19 autonomous communities in 2025, Asturias had the highest median age (51.6 years) and Melilla the lowest (36.7 years).
Highest and lowest autonomous communities
- Asturias51.6 years
- Castile and León50.6 years
- Galicia50 years
- Region of Murcia42.8 years
- Ceuta39.2 years
- Melilla36.7 years
Average age
Average age in Spain was 44.6 years in 2025, up 0.2 years from 2024.
Of 19 autonomous communities in 2025, Asturias had the highest average age (49.6 years) and Melilla the lowest (37.7 years).
Highest and lowest autonomous communities
- Asturias49.6 years
- Castile and León48.6 years
- Galicia48.5 years
- Region of Murcia41.8 years
- Ceuta39.3 years
- Melilla37.7 years
Population aged 65 and over
Share of population aged 65 and over in Spain was 20.7% in 2025, up 0.3 percentage points from 2024.
Of 19 autonomous communities in 2025, Asturias had the highest share of population aged 65 and over (28.4%) and Melilla the lowest (12.7%).
Highest and lowest autonomous communities
- Asturias28.4%
- Castile and León27.3%
- Galicia26.9%
- Balearic Islands16.8%
- Ceuta13.7%
- Melilla12.7%
Foreign nationals share of population
Share of foreign nationals in Spain was 14.1% in 2025, up 0.7 percentage points from 2024.
Of 19 autonomous communities in 2025, Balearic Islands had the highest share of foreign nationals (21.7%) and Extremadura the lowest (4.4%).
Highest and lowest autonomous communities
- Balearic Islands21.7%
- Valencian Community19.5%
- Catalonia18.7%
- Galicia6.4%
- Ceuta6.4%
- Extremadura4.4%
Population density
Population density in Spain was 97.2 inhabitants per km² in 2024, up 1% from 2023.
Of 19 autonomous communities in 2024, Melilla had the highest population density (6,180.4 inhabitants per km²) and Castile and León the lowest (25.5 inhabitants per km²).
Highest and lowest autonomous communities
- Melilla6,180.4 inhabitants per km²
- Ceuta4,168.7 inhabitants per km²
- Community of Madrid885.8 inhabitants per km²
- Castilla-La Mancha26.7 inhabitants per km²
- Extremadura25.8 inhabitants per km²
- Castile and León25.5 inhabitants per km²
Net migration including statistical adjustment
Net migration including statistical adjustment in Spain was 582,896 (provisional) in 2025, compared with 624,658 in 2024.
Of 19 autonomous communities in 2024, Catalonia had the highest net migration including statistical adjustment (125,672) and Ceuta the lowest (225).
Highest and lowest autonomous communities
- Catalonia125,672
- Valencian Community116,702
- Community of Madrid103,256
- Extremadura3,600
- Melilla721
- Ceuta225
Sources and citations
- Instituto Nacional de Estadística (INE). Cifras oficiales de población de los municipios españoles: Revisión del Padrón municipal (tabla 29005). https://www.ine.es/jaxiT3/Tabla.htm?t=29005. Retrieved 2026-10-07.
- Eurostat. Population change, crude rate of natural change of population (demo_gind). https://ec.europa.eu/eurostat/databrowser/view/demo_gind/default/table. Retrieved 2026-10-12.
- Eurostat. Population change, crude rate of natural change of population, by NUTS 2 and 3 region (demo_r_gind3). https://ec.europa.eu/eurostat/databrowser/view/demo_r_gind3/default/table. Retrieved 2026-10-12.
- Eurostat. Population structure indicators by NUTS 3 region (demo_r_pjanind3). https://ec.europa.eu/eurostat/databrowser/view/demo_r_pjanind3/default/table. Retrieved 2026-10-07.
- Instituto Nacional de Estadística (INE). Indicadores demográficos básicos: edad media de la población (tablas 3197, 3198, 3199 y 30699). https://www.ine.es/jaxiT3/Tabla.htm?t=3197. Retrieved 2026-10-07.
- Instituto Nacional de Estadística (INE). Indicadores demográficos básicos: edad media de la población (tablas 3197, 3198, 3199 y 30699). https://www.ine.es/jaxiT3/Tabla.htm?t=3198. Retrieved 2026-10-07.
- Invokely calculation from Población de 65 años y más entre población total (Censo anual, INE). https://invokely.ai/docs/methodology#population_65_plus_share. Retrieved 2026-10-08.
- Invokely calculation from Población extranjera entre población total (Censo anual, INE). https://invokely.ai/docs/methodology#foreign_population_share. Retrieved 2026-10-08.
- 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.
- Eurostat. Population change, net migration plus statistical adjustment (demo_gind). https://ec.europa.eu/eurostat/databrowser/view/demo_gind/default/table. Retrieved 2026-10-12.
- Eurostat. Population change, net migration plus statistical adjustment, by NUTS 2 and 3 region (demo_r_gind3). https://ec.europa.eu/eurostat/databrowser/view/demo_r_gind3/default/table. Retrieved 2026-10-12.
Population and demography in other areas
- Population and demography in the United States
- Population and demography in the EU
- Population and demography around the world
More topics for Spain
- AI and digital economy in Spain
- Labor market in Spain
- Health in Spain
- Income and living conditions in Spain
- Economy in Spain
- Housing in Spain
- Tourism in Spain
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:
Compare population and demography figures across Spain with official data, and cite the sources.
rank_places {"indicator":"population","level":"region","within":"Spain","limit":10}
GET https://invokely.ai/api/v1/rank?indicator=population&level=region&within=Spain&limit=10