Employment law

Retirement in Spain: Required Age and Years of Contributions

By the AbogadoAI editorial team · Updated 18 July 2026 · 11 min read

🇪🇸 Read the original in Spanish

Planning for retirement in Spain has become a complex process due to successive legislative reforms aimed at ensuring the sustainability of the pension system. Understanding the exact relationship between your age and the years you have contributed to the Social Security system is essential to avoid last-minute surprises and to secure the maximum return on a lifetime of hard work. In this article, we will analyze in depth the current legal framework, the transitional calendar leading up to 2027, the necessary administrative steps, and the practical keys so you can take this step with complete legal certainty.

The pension system in Spain finds its fundamental regulation in the _Real Decreto Legislativo 8/2015, de 30 de octubre, por el que se aprueba el texto refundido de la Ley General de la Seguridad Social_ (LGSS) (Royal Legislative Decree 8/2015, of October 30, approving the recast text of the General Social Security Law). Specifically, Chapter XIV of this law details the conditions, requirements, and calculation formulas for the retirement pension under its contributory modality.

Likewise, the _Estatuto de los Trabajadores_ (Workers' Statute), approved by _Real Decreto Legislativo 2/2015, de 23 de octubre_ (Royal Legislative Decree 2/2015, of October 23), impacts this matter by regulating aspects such as the termination of employment contracts due to reaching retirement age or forced retirement clauses under certain collective bargaining agreements.

The reform introduced by Law 27/2011 established a transitional period (which began in 2013 and will end in 2027) to progressively raise the ordinary retirement age from 65 years to 67 years, as well as the number of years required to access 100% of the regulatory base.

Age and Years of Contributions: The Calendar Towards 2027

Currently, to access the ordinary contributory retirement pension in Spain, there are two pathways or age requirements, which depend directly on the worker's contribution history.

The Dual System of Ordinary Retirement

During the year 2024, the requirements are as follows:

This scale will become progressively stricter over the coming years. Below, we detail the official transitional calendar:

The Minimum Qualifying Period

Regardless of the worker's age, the LGSS requires a minimum contribution period to access a contributory retirement pension (known as the general and specific carencia [qualifying period]):

  1. General qualifying period: It is mandatory to have contributed a minimum of 15 years (5,475 days) throughout your entire working life.
  2. Specific qualifying period: Of those 15 years, at least 2 years must have been contributed within the 15 years immediately preceding the moment of triggering the right (the hecho causante [triggering event]).

How the Pension Amount is Calculated

Reaching the retirement age and meeting the minimum contribution period entitles you to a pension, but not necessarily to 100% of the base reguladora (regulatory base used to calculate the pension). The final amount depends on the total years contributed and the bases on which contributions were made.

1. The Regulatory Base

To calculate the base reguladora in 2024, the contribution bases of the last 25 years (a total of 300 months of contributions) are taken and divided by 350. The contribution bases of the last 2 years are calculated at their nominal value, while the previous ones are updated in accordance with the Índice de Precios al Consumo (IPC) (Consumer Price Index) so they do not lose purchasing power.

2. The Applicable Percentage According to Years Contributed

With the minimum of 15 years of contributions, the worker is entitled to 50% of their base reguladora. From there, the percentage increases for each additional month of contributions:

To reach 100% of the base reguladora in 2024, a total of 36 years and 6 months of contributions is required. From 2027 onwards, this requirement will increase to 37 years of contributions.

Practical Calculation Examples

To better understand how age, years of contributions, and the pension amount interact, we analyze two realistic scenarios.

Example 1: The Case of Carlos (Ordinary retirement with a long career)

Carlos turns 65 years old in 2024. Upon reviewing his vida laboral (work history report), he confirms that he has accumulated 39 years of effective contributions to Social Security.

Example 2: The Case of Elena (Retirement with a short career)

Elena turns 65 years old in 2024, but throughout her professional life, she has contributed a total of 17 years due to periods of family care and non-homologated work abroad.

Step-by-Step Practical Procedures to Apply for Retirement

The application process for the retirement pension is digitized, although the in-person route remains available for those who require it. Follow these steps to process your benefit before the Instituto Nacional de la Seguridad Social (INSS) (National Social Security Institute):

  1. Obtain the Work History Report and Contribution Bases: Access the Social Security electronic office (the "Importass" portal) using Cl@ve PIN, digital certificate, or SMS. Download your updated vida laboral (work history report) to verify that all worked periods are correctly recorded.
  2. Simulate Your Retirement: Use the "Retirement Simulator" tool within the "Tu Seguridad Social" portal. This official simulator will indicate the exact date you can retire and a very close estimate of your future pension amount.
  3. Prepare the Documentation: Gather your identity document (DNI, NIE, or passport), the libro de familia (family record book, for potential increases or gender-gap supplements), and the bank account number where you wish to receive the payments.
  4. Submit the Application:
  1. Resolution Period: The INSS has a maximum legal period of 90 days to resolve and notify the decision, although the procedure is usually resolved within an average period of 10 to 19 days. The financial effects of the pension are backdated to the day following the cessation of work (for employees) or to the first day of the month following the triggering event (for self-employed workers/autónomos).

Errors You Should Avoid

Frequently Asked Questions (FAQ)

What happens if I do not reach the 15 years of minimum contributions?

If, upon reaching retirement age, you do not have 15 years of contributions, you will not be entitled to the contributory retirement pension from the Social Security. However, if you are in a situation of economic vulnerability and meet the residence requirements in Spain (having resided for at least 10 years in Spanish territory since the age of 16, of which 2 years must be immediately prior to the application), you can apply for a Non-Contributory Retirement Pension, managed by the competent bodies of each Autonomous Community (such as IMSERSO).

Can I continue working after reaching retirement age?

Yes, Spanish legislation encourages the extension of active working life through several modalities:

How does part-time work affect the calculation of contributed years?

Thanks to Real Decreto-ley 2/2023, since October 1, 2023, part-time work is equated with full-time work for the purposes of calculating contribution periods. This means that a day worked part-time counts as a full day of contributions to prove the minimum qualifying periods required (the 15 years for ordinary retirement, or 33/35 years for early retirement), eliminating the old "part-time coefficient" that severely penalized women and workers in precarious sectors.

Are years contributed abroad taken into account?

Yes, Spain has international Social Security agreements. If you have worked in countries of the European Union, the European Economic Area, or Switzerland, the principle of aggregation of periods under the EU Social Security Regulations applies. Likewise, Spain has signed bilateral agreements with numerous countries (such as Argentina, the United States, Morocco, among others). The periods contributed abroad will be added together to reach the minimum number of years required in Spain, and the Spanish Social Security will pay the corresponding proportional part (a prorrata temporis pension).

In Summary

General legal information, not personalised legal advice. For your specific situation, ask your question for free at AbogadoAI — answers grounded in Spanish law (BOE), in English.

Have a specific legal question?

Ask AbogadoAI and get an answer based on Spanish law (BOE), with sources — in English.

Ask for free

This is general information, not legal advice. Verify on the BOE or consult a lawyer for your specific case.