eurogarant

Q&A · Documents · updated 13.07.2026

Can a foreigner buy contribution years in Spain?

Updated: 13 July 2026 · Verified against official sources

It depends on what “buying” means here. A foreigner with a valid residence permit and NIE (foreigner identification number) can pay voluntary contributions into Seguridad Social (the Spanish social security system) — this builds up a pension contribution record. However, Spanish law does not provide for “buying back” past years when you were outside the Spanish system: only periods with actual contributions count.

What voluntary contributions are (convenio especial)

A convenio especial is an agreement with Seguridad Social under which a person pays contributions on their own, without being employed. It is relevant for:

The contribution amount is calculated at the official Seguridad Social rate (check the TGSS website — it depends on the base elegida, your chosen contribution base).

Who qualifies and key conditions

ConditionRequirement
Status in SpainA valid residence permit of any type + NIE
Minimum accumulated record for the convenioUsually at least 1 000 days of actual contributions in the Spanish system (check with the TGSS)
Can you “buy” past yearsNo — the Spanish system does not allow buying back retroactive periods
Crediting foreign work historyUnder a bilateral agreement; with Russia, the 1994 Social Security Agreement applies (in force since 1996) — credited via the INSS
DocumentApplication to the TGSS + valid residence permit + NIE

Step by step: how to start building your record voluntarily

  1. Get a residence permit and the TIE card (foreigner identity card). Without legal status and a NIE you cannot file an application with Seguridad Social. If you do not have status yet, see our step-by-step guide to Spanish residence permits 2026.
  2. Check your accumulated record. Request an informe de vida laboral (employment history report) from Seguridad Social online (via sede.seg-social.gob.es) or at a TGSS office. For the minimum threshold for the convenio especial, check the current rules with the TGSS.
  3. Apply for the convenio especial. Form TA-0040 + residence permit documents + NIE. Approval takes from a few weeks to a month.
  4. Pay contributions monthly. The amount depends on your chosen contribution base (base de cotización). The higher the base, the higher your future pension.
  5. Track your record. Request an updated vida laboral every year to make sure your periods are recorded correctly.

What does not work: common misconceptions

Check your documents before applying

Use the checklist generator to make sure your residence permit, NIE and other papers are ready for dealing with Seguridad Social.

Generate a document checklist →

This is a preliminary assessment based on official sources, not individual legal advice. Your case may differ — get a free case review.

Similar situation? We'll review your case

Describe it briefly — we'll tell you honestly which residence permit route suits you and whether your income qualifies.

What is the best way to reach you?

Official sources: BOE — Spanish legislation · Ministry of Inclusion and Migration · Spanish Ministry of Foreign Affairs