Demographics and pensions: an ageing country

Spain spends 13.2% of GDP on pensions and its median pension equals 81% of the median earnings of those about to retire, the second highest ratio in the EU. Real spending has risen 53.5% since 2008, and for every person over 64 there are fewer people in work than then. How to pay for pensions is one of the questions of the 29 November election.

Published on 14 October 2026, updated on 19 October 2026. 8 charts.

Spain and Europe

Spain spends somewhat more on pensions than the European average, its pensions replace a larger share of earnings and they are drawn for more years.

Pensions are one of the questions the parties will have to answer before 29 November. To understand the debate there are three starting figures: how much is spent, what share of earnings the pension replaces and for how many years it is drawn.

Spain spent 13.2% of GDP on pensions in 2024, against an EU average of 12.6%: the seventh highest share of the 27. In 2008 it was 9.2%, below the European average (11.8%). The rise, of 4.0 points, is the second largest in the EU after Finland's (4.2). The European definition includes old-age, survivors', orphans' and disability pensions, including those of civil servants.

DE-E1

Spain spends 13.2% of GDP on pensions, against 12.6% in the EU: the 7th highest of 27 countries

Pension spending, 2024, as % of GDP. In 2008, Spain spent 9.2% and the EU 11.8%

Source: Eurostat, European system of integrated social protection statistics (ESSPROS). Licence CC BY 4.0. Data retrieved on 19 October 2026.

  • Old-age, early retirement, survivors', disability and partial pensions, public and mandatory private, with and without prior contributions. Includes civil servants' pensions (clases pasivas).
  • It is not the same as the Social Security spending the government publishes: the European definition is broader and is used to compare countries.
  • «prev» in the download: 2008 figure.
  • Provisional 2024 data: Germany, the EU.
Show the data as a table
Area2024
European Union12.6
Austria15.6
Belgium13.5
Bulgaria9.6
Croatia9.4
Cyprus7.6
Czechia9
Denmark11.4
Estonia8.7
Finland14.5
France15.1
Germany11.8
Greece14.1
Hungary7
Ireland4
Italy15.9
Latvia9
Lithuania7.4
Luxembourg10.4
Malta5.1
Netherlands11.2
Poland11.6
Portugal13
Romania9.1
Slovakia9.4
Slovenia10
Spain13.2
Sweden10.8
Download the data (JSON)

One reason for that spending is the amount. The median pension of people aged 65 to 74 equals 81% of the median earnings of people aged 50 to 59, gross. In the EU, 60%. Only Luxembourg has a higher ratio (88%); Italy is just behind Spain (80%). It is a snapshot of two different groups in the same year, not the pension each worker will receive relative to their last wage, but it shows that retirement cuts income less in Spain than in almost all of Europe.

DE-E2

The median pension of Spanish retirees equals 81% of the median earnings of those about to retire; in the EU, 60%

Aggregate replacement ratio, 2025: median pension of people aged 65 to 74 as % of the median earnings of people aged 50 to 59, gross

Source: Eurostat, Survey on Income and Living Conditions (EU-SILC). Licence CC BY 4.0. Data retrieved on 19 October 2026.

  • It compares two different groups in the same year: the individual pensions of people aged 65 to 74 and the earnings of people aged 50 to 59. It is not the pension each worker will get relative to their last wage.
  • Gross amounts, before tax. Pensions only; other social benefits are not included.
  • Countries with a higher ratio than Spain: Luxembourg.
  • Spain, 2010: 50%.
Show the data as a table
Area2025
European Union60
Austria56
Belgium48
Bulgaria46
Croatia37
Cyprus41
Czechia53
Denmark46
Estonia49
Finland53
France61
Germany48
Greece77
Hungary49
Ireland38
Italy80
Latvia43
Lithuania37
Luxembourg88
Malta47
Netherlands56
Poland60
Portugal68
Romania47
Slovakia62
Slovenia41
Spain81
Sweden59
Download the data (JSON)

The other reason is duration. At 65, a person living in Spain can expect to live another 21.9 years on average, the same as in France and more than in any other EU country, where the average is 20.2. In 1975 it was 15.2 years: someone retiring at that age today draws their pension, on average, 6.7 years longer than then.

DE-E3

At 65, a Spaniard can expect to live another 21.9 years on average, the same as in France and more than in any other EU country (average: 20.2)

Life expectancy at 65, both sexes, 2024, in years

Source: Eurostat. Licence CC BY 4.0. Data retrieved on 19 October 2026.

  • Years a person turning 65 would live on average if that year's age-specific death rates held.
  • Spain: 15.2 years in 1975, 20.2 in 2008.
  • EU data estimated or provisional by Eurostat.
Show the data as a table
Area2024
European Union20.2
Austria20.3
Belgium20.6
Bulgaria16.9
Croatia18
Cyprus21.2
Czechia18.9
Denmark20.1
Estonia19.2
Finland20.6
France21.9
Germany19.7
Greece20.3
Hungary16.9
Ireland21
Italy21.4
Latvia17.8
Lithuania18.3
Luxembourg21.1
Malta20.8
Netherlands19.9
Poland18.5
Portugal21.1
Romania17.3
Slovakia18.3
Slovenia20.2
Spain21.9
Sweden21.3
Download the data (JSON)

This lens across all themes

Spain from within

Ageing is very uneven across regions, but in all of them there are now fewer people in work for every person over 64 than in 2008.

On 1 January 2025 there were 31.7 people aged 65 or over in Spain for every 100 aged 16 to 64. The figure ranges from 46.5 in Asturias, 44.7 in Castile and León and 43.7 in Galicia to 24.5 in the Balearic Islands, 25.7 in Murcia and 26.1 in the Canary Islands. In 1975, Asturias had 17.2, less than the Balearic Islands (19.5): since then it has added 29.3 points, the largest rise of the 17 regions, and the Balearic Islands 5.0, the smallest. Fertility, life expectancy and migration all play a part in that difference, both young people leaving and new residents arriving.

DE-D1

For every 100 people aged 16 to 64 there are 31.7 people over 64: 46.5 in Asturias and 24.5 in Balearic Islands

Old-age dependency ratio (over 64), 1 January 2025. In 1975, Spain's was 16.8

Source: INE, Basic Demographic Indicators. Licence Free reuse with attribution. Data retrieved on 19 October 2026.

  • Population aged 65 or over divided by the population aged 16 to 64, times 100. It is a demographic measure: it does not take into account how many people aged 16 to 64 work or how many aged 65 or over are still working.
  • «prev» in the download: 1975 figure.
  • Ceuta and Melilla have small, very young populations.
Show the data as a table
Area2025
Andalusia29
Aragon35.5
Asturias46.5
Balearic Islands24.5
Basque Country38.6
Canary Islands26.1
Cantabria38.9
Castile and León44.7
Castile-La Mancha30.8
Catalonia29.9
Ceuta20.1
Extremadura36
Galicia43.7
La Rioja35.5
Madrid28.3
Melilla19.1
Murcia25.7
Navarre32.8
Spain31.7
Valencian Community31.2
Download the data (JSON)

That ratio is demographic: it compares ages, not who works. Counting people in work of all ages for every person aged 65 or over, Spain had 2.19 in the last year, against 2.79 in 2008. The figure has fallen in all 17 regions. Since 2008 the number of people in work has grown 9.8% and the number over 64, 39.6%.

The regional differences remain: in the Balearic Islands there are 2.98 people in work for every person over 64 and in Asturias, 1.50. Pensions are paid by the common Social Security system, so these differences do not mean different pensions by region, but they do show where ageing weighs most on the services the regions run, such as healthcare and long-term care.

DE-D2

There are fewer people in work for every person over 64 than in 2008 in all 17 regions: in Spain, 2.19 against 2.79

People in work of all ages per person aged 65 or over, average from Q3 2025 to Q2 2026

Source: INE, Labour Force Survey (EPA). Licence Free reuse with attribution. Data retrieved on 19 October 2026.

  • People in work aged 16 and over (including those over 64 who work) divided by the population aged 65 and over, both from the EPA and as four-quarter averages.
  • It is not Social Security's ratio of contributors per pension: not everyone in work contributes to the same scheme, not everyone over 64 draws a pension and there are pensioners under 65 (disability, survivors', early retirement).
  • «prev» in the download: average of the four quarters of 2008. Since then, the number of people in work in Spain has grown 9.8% and the number over 64, 39.6%.
  • Extremes in the last year (excluding Ceuta and Melilla): Balearic Islands, 2.98; Asturias, 1.50.
  • The EPA is a survey: in small regions its margin of error is larger. Ceuta and Melilla are not used in the headline.
Show the data as a table
Area2026
Andalusia2.15
Aragon2.07
Asturias1.5
Balearic Islands2.98
Basque Country1.85
Canary Islands2.47
Cantabria1.83
Castile and León1.61
Castile-La Mancha2.19
Catalonia2.45
Ceuta3.08
Extremadura1.78
Galicia1.62
La Rioja2.06
Madrid2.65
Melilla2.21
Murcia2.6
Navarre2.2
Spain2.19
Valencian Community2.21
Download the data (JSON)

This lens across all themes

Spain over time

Fewer children are born than ever, pension spending is growing because of more pensioners and higher pensions, and what happens to the dependency ratio will depend above all on migration.

In 1975 Spain had 2.77 children per woman. In 1981 the indicator fell below 2.1 for the first time (2.04), the level at which a population stays stable without migration, and kept falling to 1.13 in 1998. It recovered to 1.44 in 2008 and has fallen again since: 1.10 in 2024, the lowest figure in the series. In the EU only Malta has fewer children per woman, and no country reaches 2.1.

DE-T1

Fertility has gone from 2.77 children per woman in 1975 to 1.10 in 2024

Total fertility rate in Spain, 1975-2024, children per woman

Source: INE, Basic Demographic Indicators. Licence Free reuse with attribution. Data retrieved on 19 October 2026.

  • Average number of children a woman would have over her lifetime if that year's age-specific fertility rates held. Mothers of all nationalities.
  • The lowest figure in the series is 2024's (1.10).
  • Reference line: 2.1 children per woman, the level at which a population stays stable without migration.
  • In the EU (2024, Eurostat): average of 1.34 children per woman; with fewer than Spain, Malta. No EU country reaches 2.1.
Show the data as a table
Series20172018201920202021202220232024
Children per woman1.311.261.231.181.181.161.121.1
Download the data (JSON)

Why is spending rising? Between 2008 and 2024, pension spending adjusted for inflation grew 53.5%. Two reasons add up: the number of pensioners rose 21.4%, to 10.4 million, and real spending per pensioner 26.4%. Roughly, 45% of the rise is because there are more pensioners and 55% because they receive more.

The average pension does not rise only because existing pensions are uprated. New retirees had, on average, higher wages and longer contribution records than the people whose pensions stop being paid. That is why the average pension can grow faster than inflation even though each pension is only uprated in line with it.

DE-T2

Between 2008 and 2024, real pension spending rises 53.5%: there are 21.4% more pensioners and each receives 26.4% more on average, adjusted for inflation

Pension spending adjusted for inflation, number of pensioners and real spending per pensioner. Indices, 2008 = 100, 2008-2024

Source: Eurostat, ESSPROS, INE, Consumer Price Index. Licence CC BY 4.0. Data retrieved on 19 October 2026.

  • Spending: all pensions under the European definition (old-age, survivors', orphans', disability; public and civil servants'), in euros, deflated with each year's average CPI.
  • Pensioners: people receiving at least one pension, counted once even if they receive two.
  • Real spending grows because both things grow: 121.4 x 126.4 / 100 = 153.5. On a logarithmic scale, the number of pensioners explains 45% of the rise and the average pension the rest.
  • The average pension also rises because new retirees had higher wages and longer contribution records than those who die (the replacement effect), not only because existing pensions are uprated.
Show the data as a table
Series20172018201920202021202220232024
Pensioners113.1114.4115.7115.8117.1118119.5121.4
Per pensioner112.9114.7118.1121.4122117.1123.3126.4
Real spending127.6131.3136.6140.6142.8138.3147.4153.5
Download the data (JSON)

What comes next? According to INE's projections, the dependency ratio will go from 31.7 in 2025 to 51.8 in 2050. It would reach 52.2 in 2054, fall slightly and rise again to 53.1 in 2075.

INE's central scenario assumes that immigrants keep arriving at the pace of recent years. If as many people arrived as left, the ratio would reach 69.9 in 2050 and 90.4 in 2075. The difference between those two scenarios is much larger than between INE's own high and low fertility scenarios: of the assumptions INE tests, net migration is the one that moves the projection most.

DE-T3

INE projects 51.8 people over 64 for every 100 people aged 16 to 64 in 2050; without migration, there would be 69.9

Old-age dependency ratio: observed, 1975-2025, and projected, 2026-2075, in two INE scenarios

Source: INE, Basic Demographic Indicators, INE, Population Projections 2026-2075. Licence Free reuse with attribution. Data retrieved on 19 October 2026.

  • Population aged 65 or over divided by the population aged 16 to 64, times 100.
  • INE central scenario: fertility, life expectancy and net migration following recent trends. Zero net migration scenario: as many people arrive as leave each year.
  • In the central scenario, the ratio calculated with the projected population matches the one INE publishes (table 36670). It rises to 52.2 in 2054, falls to 50.9 in 2066 and rises again to 53.1 in 2075. Without migration, it reaches 90.4 in 2075.
  • Other INE scenarios in 2050 and 2075: high fertility, 51.5 and 49.7; low fertility, 52.1 and 56.9; high net migration, 50.1 and 51.9; low net migration, 53.7 and 54.6.
  • A projection is not a forecast: it shows what would happen if its assumptions held.
  • The observed series is for 1 January each year; the projection starts in 2026.
Show the data as a table
Series20682069207020712072207320742075
Central50.951.151.351.651.952.252.753.1
No migration82.783.584.485.486.587.789.190.4
Observed––––––––
Download the data (JSON)

See also: Immigration in data: who arrives, where they work and how much they weigh in the population

Policy file: the 2021 and 2023 pension reforms

  1. What it is. Two laws. Law 21/2021 goes back to uprating pensions every year in line with average inflation. Royal Decree-law 2/2023 raises the system's revenue: an earmarked contribution, the Intergenerational Equity Mechanism (MEI), which starts at 0.6 points in 2023 and rises by a tenth a year to 1.2 in 2029; an increase in the maximum contribution base of 1.2 points a year above inflation between 2024 and 2050; an additional solidarity contribution on wages above that base, from 2025; and the option of calculating the pension over the last 29 years, discarding the 24 worst months.
  2. Who and when. Parliament passed Law 21/2021 in December 2021. The Council of Ministers approved Royal Decree-law 2/2023 in March 2023 and Congress validated it.
  3. What should happen. Pensions should keep their purchasing power and the new revenue should cover part of the rise in spending. The law includes a safeguard clause: every three years, AIReF (Spain's independent fiscal authority) checks whether average pension spending between 2022 and 2050, net of the new revenue, exceeds 13.3% of GDP. If it does, the government must propose measures or, failing that, raise the MEI.
  4. What we compare it with. With the spending projections of AIReF and the European Commission, and with the rest of the public finances.

What the independent evaluations say. AIReF (Study 1/2026, May 2026) concludes that the rule is being met: spending net of the new revenue measures will average 13.0% of GDP between 2022 and 2050, below 13.3%. Those measures would bring in 1.6% of GDP a year on average, 0.4% from the MEI. But AIReF itself warns that the rule is not a good indicator of sustainability: it expects gross pension spending to go from 13% to 16.4% of GDP between 2025 and 2050, transfers from the State and other Social Security funds to pay for it to rise by 2.3 points of GDP, to 3.0%, and, if policies do not change, public debt to reach 123% of GDP in 2050.

Ángel de la Fuente (Fedea, April 2025) shares those doubts and questions how the rule was applied in its first evaluation: he criticises counting State transfers as system revenue and the upward revision of GDP forecasts, and points out that a tenth of a point either way would have changed the result. The evidence is therefore inconclusive: the rule is met, but there is no agreement that this guarantees the system is sustainable without new measures.

What this data does not say. Pension spending is measured in different ways: Eurostat's includes civil servants and is broader than Social Security's, and AIReF's does not match either, so the figures cannot be added to or subtracted from each other. People in work in the EPA are not the same as contributors registered with Social Security, nor does everyone over 64 draw a pension. The replacement ratio compares two different groups of people and does not say whether pensions are adequate, nor does it capture poverty among older people. Projections show what would happen if their assumptions held, not what will happen. And none of this data makes it possible to attribute the trend in spending to a particular government: it depends above all on demographics and on rules passed over decades.

This lens across all themes

Sources for the text

Other themes