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.
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.
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%
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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.
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
Loading the chart
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
- 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.
- 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.
- 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.
- 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.
Sources for the text
- BOE (official gazette): Law 21/2021 guaranteeing the purchasing power of pensions
- BOE: Royal Decree-law 2/2023 extending pensioners' rights and setting a new sustainability framework for the public pension system
- AIReF: Evaluation of the pension spending rule (Study 1/2026, 29 May 2026)
- AIReF: the pension spending rule is met, but sustainability has not improved (press release, 31 March 2025)
- Ángel de la Fuente, Sobre la aplicación de la cláusula de salvaguarda del MEI: algunas dudas metodológicas (Fedea, Apuntes 2025/18)
- INE: Population Projections 2026-2075
Other themes
- Housing: why it is the issue of this electionThe 29 November election was called after Congress rejected two rental decrees. The data explains why housing is at the centre: since 2015 house prices have risen 80%, and wages 25%.
- Congress in dataHow the parties have voted in the 2,173 roll-call votes of this parliament: who votes with whom, who wins the votes and which government decrees fell.
- The parliament in data: how Spain has changed since July 2023The 29 November election closes the parliament that began with the July 2023 general election. Since then unemployment has fallen from 12.2% to 10.5%, although it is still the highest in the EU; GDP has grown 6.4%, a third of it from population growth; and the deficit has fallen to 2.4% of GDP, mostly in 2025 thanks to the lower cost of the measures for the energy crisis and the DANA floods, according to AIReF.
- Jobs: the labour reform, three years onThe labour reform of December 2021 changed employment contracts. Since then, temporary employees in the private sector have gone from 23.7% to 12.4%. Part of that change has gone into permanent seasonal contracts, and youth unemployment is still among the highest in the EU.
- 29 November general electionPolls, the 2023 results and who governs each region, updated until election day. With the methodology in plain sight.
- Immigration in dataOne in five residents of Spain was born in another country, and one in four among those of working age. They are younger than the population born here, work in almost the same proportion and more often below their qualifications. Ahead of the 29 November election we look at where they come from, where they live, how they fare at work, what the evidence says about their effect on the economy and what the 2026 extraordinary regularisation involves.
- Regional finance: who raises the money, who receives it and whom the regions oweThe regions run health and education, and together with municipalities they spend half of all public money. They are funded by a 2009 system that shares money out unevenly, and they owe more than half of their debt to central government. Both questions are open on 29 November: the bill to write off part of that debt lapsed when parliament was dissolved.
- Health: waiting lists and spending by regionMore than 850,000 people are waiting for surgery in the public health system, and how long they wait depends heavily on where they live. Spain spends less on public health care than the EU average, and households pay a larger share out of their own pockets. Spending more per inhabitant does not guarantee shorter waits either: across regions, the two are barely related.