Seguros y pensiones para todos

How pensions are calculated in Spain

El cálculo de la pensión pública en España está en constante evolución tras la reforma de 2013 y siempre a expensas de decisiones políticas

Home > Pensions > The state pension > How pensions are calculated in Spain

How much retirement pension are you going to receive? The way the state pension in Spain is calculated has been evolving constantly since the 2013 reform and is always at the mercy of political decisions to ensure the sustainability of the system.

Three key elements are used to calculate how much pension you will get: the amount you have paid in, the number of years you have worked (contributed), and your retirement age.

Basically, the first element is used to calculate your regulatory base, which sets the maximum amount of the pension. The second determines the percentage of that regulatory base that you are going to receive, and that does not have to be 100%. Finally, the third is conditional, meaning that if you retire early you will also not receive 100% of the pension.

From this point on, each of the components has its own rules, which are what you need to understand to find out how much state pension you can expect when you retire.

How to calculate the regulatory base of a retirement pension

The first step in calculating your pension is to know your regulatory base. How many years are taken into account when calculating the regulatory base? In 2023, the magic number is 25 years.

The regulatory base for a retirement pension is calculated by dividing the contribution bases for the 300 months prior to the month before retirement by 350.

In other words, the contributions paid in the 25 years prior to retirement are added up and divided by 350. As 25 years is a long time and inflation will have been at work, what actually happens is that the contribution bases from the final 24 months are taken at their nominal value and the rest are updated in line with the CPI.

The calculation of the regulatory base also takes into account possible contribution gaps or periods in which you were not able to pay into the system due to loss of employment or for personal reasons and there is a formula to cover these that is currently under debate.

According to the current model, if within the 350 months you pay into the system there is a contribution gap, the first 48 months will be taken as 100% of the minimum contribution base of the General Regime and the rest at 50% of that minimum base.

This is the current situation, which may however change in the future. In fact, Royal Decree-Law 2/2023 makes it possible to opt for the previous formula for calculating the regulatory base or to take the last 29 years as a reference and discard the two worst ones.

To make the procedures easier, the Social Security has developed a tool you can use to calculate your regulatory base, which can be accessed through this link.

If you prefer something simpler and more comprehensive, you can use our pension simulator.

How many years do you have to pay contributions to receive 100% of the regulatory base?

The second key point for calculating your retirement pension is the number of years you pay into the system. To begin with, to qualify for a contributory retirement pension you must pay into the system for a minimum of 15 years (of which at least 2 years must have been during the last 15 years prior to your retirement). Individuals who do not attain this period are entitled to another type of Social Security pension, the non-contributory pension.

Those 15 years give you the right to collect 50% of the regulatory base. Each additional month you contribute for increases the percentage of the regulatory base that can be collected up to 100% when you have contributed for 37 years.

Specifically, for each of the 49 months following the minimum 15 years you add an additional 0.21% to the regulatory base and for each of the next 209 months you get an additional 0.19% until you reach 100%.

Furthermore, these percentages will evolve over time up to 2027, when the pension reform that began in 2013 will conclude. The following table summarizes this evolution.

Percentage - Retirement - Years of contributions
Applicable periodFirst 15 yearsAdditional yearsTotal
Años%Additional monthsCoefficient%YearsYears%
2013 to 201915501 to 163

0.21
34.23



83 remaining0.1915.77
Total 246 months50.0020.535.5100
2020 to 202215501 to 1060.21
22.26
146 remaining0.1927.74
Total 252 months50.002136100
2023 to 202615501 to 490.21
10.29
209 remaining0.1939.71
Total 258 months50.0021.536.5100
From 2027 onwards15501 to 2480.21
47.12

16 remaining
0.19
2.88
Total 264 months50.002237100

Source: Seguridad Social

Retirement age also matters

Finally, the age you retire is another condition. For example, in the case of voluntary early retirement (which allows the employee to retire 2 years earlier than the normal retirement age), a series of reduction coefficients will be applied depending on the number of years paid into the system. These coefficients are different if the retirement is taken for reasons beyond the contributor’s control, in which case the contributor may retire up to 4 years before the normal legal retirement age.

These percentages reduce the amount of the pension, depending on how early the retirement is. In the case of voluntary early retirement they are as follows:

Contribution period: less than 38 years and 6 monthsContribution period: equal to or more than 38 years and 6 months and less than 41 years and 6 monthsContribution period: equal to or more than 41 years and 6 months and less than 44 years and 6 monthsContribution period: equal to or more than 44 years and 6 months
Months retirement brought forward% reduction% reduction% reduction% reduction
2421.0019.0017.0013.00
2317.6016.5015.0012.00
2214.6514.0013.3311.00
2112.5712.0011.4310.00
2011.0010.5010.009.20
199.789.338.898.40
188.808.408.007.60
178.007.647.276.91
167.337.006.676.33
156.776.466.155.85
146.296.005.715.43
135.875.605.335.07
125.505.255.004.75
115.184.944.714.47
104.894.674.444.22
94.634.424.214.00
84.404.204.003.80
74.194.003.813.62
64.003.823.643.45
53.833.653.483.30
43.673.503.333.17
33.523.363.203.04
23.383.233.082.92
13.263.112.962.81

Source: Seguridad Social

Similarly, delaying your retirement will positively affect the amount you will receive later on. As long as you have satisfied the minimum contribution period, you will be entitled to an increase in your pension for each full year you pay into the system.

Specifically, you will be able to add an additional 4% for each full year contributed after reaching the legal retirement age.

There is also a supplement to reduce the gender gap, which adds 30.40 euros for each child up to a limit of four for people whose professional career has been affected by having or adopting children.

Finally, individuals who have paid 15 years of contributions but whose pension calculation result is lower than the minimum pension may request a minimum pension supplement to make it up to that amount.

Requirements for retirement in Spain

One thing is understanding how to calculate your state pension and another is knowing when you can access it.

To draw your contributory retirement pension it is necessary to:

  • Have paid into the system for at least 15 years, two of which must have been within the 15 years immediately prior to your retirement.
  • Reach the legal retirement age, which in 2023 is 66 years and four months. This age will continue to rise steadily until it reaches 67 in 2027.
  • It is also possible to retire at 65, as long as you have made at least 37 years and 9 months of contributions by 2023. By 2027, this figure will be 38 years and 6 months.
  • Additionally, there is the possibility of accessing voluntary early retirement two years before the normal retirement age (four years earlier, if the retirement is not voluntary), as well as other forms of retirement such as flexible or active retirement.