Demographics of Madrid

MADRID (COMUNIDAD DE)

Ranking

#1

of 52 provinces

Population 2025

7,113,886

Average Age

43.42 years

Variation

+1.49%

Population Structure

Men3,407,410
Women3,706,476
Density886.17 hab/km²

Age Structure

Under 1816.56%
Working age (18-64)64.57%
Over 6518.87%

Natural Movement · 2024

Births50,770
Deaths49,408
Natural Growth+1,362

Migration · 2024

Immigration239,292
Emigration125,328
Net Migration+113,964

Population and mean age over time

Historical

YearPopulationAverage AgeOver 65BirthsDeaths
20257,113,88643.4218.87% ——
20247,009,26843.2518.62% 50,77049,408
20236,871,90343.0918.43% 50,29948,646
20226,743,25443.0218.32% 50,96151,154
20216,726,64042.7218.00% 51,36649,857
20206,720,31042.5317.92% 52,35766,648
20196,618,07842.3717.81% 55,74147,165
20186,529,92342.1817.65% 57,55446,599
20176,459,29741.9917.43% 60,55547,069
20166,411,46641.7517.18% 63,11245,066
20156,375,73741.5116.92% 64,87946,859
20146,372,55341.2116.48% 65,50543,064
20136,411,52540.8315.89% 65,34342,393

Source: INE. Population on 1 January 2025 (Continuous Population Statistics); births and deaths for 2024 (Vital Statistics) and migration for 2024 (Migration and Changes of Residence Statistics). Rates are per 1,000 residents on 1 July. Since 2021 INE has measured migration with a new methodology, so those figures are not fully comparable with earlier years.

The province of Madrid had 7,113,886 inhabitants on 1 January 2025, according to the Continuous Population Statistics (INE): 3,407,410 men and 3,706,476 women. A year earlier, on 1 January 2024, the population was 7,009,268 inhabitants, a change of +1.49%. The series on this page starts on 1 January 2013, with 6,411,525 inhabitants; between that point and 2025 the population has changed by 11.0%. By number of inhabitants, Madrid ranks 1st among the 52 provinces.

The density is 886.2 inhabitants per km². The average age is 43.4 years in 2025, compared with 40.8 years in 2013. In the 2025 age structure, people under 18 account for 16.6%; the 18–64 group, 64.6%; people aged 65 or over, 18.9%; and those aged 80 or over, 5.8%. The ageing index is 131.4 people aged 65 or over for every 100 children under 16.

Birth and death data correspond to 2024, the latest year available in these series, which predates the population data. In 2024 there were 50,770 births and 49,408 deaths, a natural growth of +1,362. The birth rate was 7.20 per 1,000 inhabitants and the death rate 7.01. In 2013 there were 65,343 births and 42,393 deaths. The rates, average age and density are calculations by datosespana.com using INE data.

In the 2024 migration flows, immigration from abroad was 239,292 and emigration abroad was 125,328, a net migration of +113,964. Changes of residence with other provinces in Spain totalled 100,342 arrivals and 113,335 departures, a net figure of -12,993. The foreign population on 1 January 2025 was 1,181,319 people, 16.6% of the total.

To put the figures in context, Spain had 49,128,297 inhabitants on 1 January 2025, an average age of 44.5 years and a foreign population of 14.1%. In 2024, Spain's birth rate was 6.50 per 1,000 inhabitants and its death rate 8.88. The page shows population by sex, density, average age, age structure, births and deaths, migration to and from abroad and the annual evolution of population, average age, the percentage of people over 65, births and deaths since 2013. Migration flows to and from abroad come from the Migration Statistics up to 2020 and from the Migration and Change of Residence Statistics (INE) from 2021, and the series is not entirely comparable between the two.

🕐 Last updated: 2026-11

❓ Frequently Asked Questions

According to INE's Continuous Population Statistics, Spain had 49,128,297 residents on 1 January 2025, about 509,000 more than a year earlier (48,619,695). The growth comes from migration: in 2024 there were 318,005 births and 436,118 deaths, so natural change was negative.