Cross-border social security rules
You will know which system covers you, whether your foreign years count, and how to avoid paying twice.
Moving to Spain usually means moving between two social security systems. This topic shows which one covers you, whether your years abroad count in Spain, and how to avoid paying into two systems at once or losing years you have already built up.
Pick the article that fits your situation
How EU, EEA and Swiss social security coordination works for you
Explains which country's social security system covers you when you work in Spain and have links to other EU, EEA or Swiss countries, and how insurance periods add up. For anyone moving to Spain from, or working in, those countries.
Do your home country's social security years count in Spain?
Foreign social security years count in Spain only through EU rules, a bilateral agreement or the Ibero-American convention, and only for certain benefits. This page helps newcomers see which route applies to them and what it covers.
Does Spain have a social security agreement with your country?
Find out which type of social security agreement links Spain with your country, and what it usually covers: pensions, work accidents, health care or unemployment. For anyone moving to Spain who wants to know if their contributions abroad count.
Latin American workers and the Ibero-American social security convention
If you have worked in Spain and in Latin American countries, the Ibero-American convention can combine your contribution periods for a pension. This page explains what it covers, which countries it applies to, and how to file a claim from Spain.
British citizens and social security in Spain after Brexit
Shows which UK-Spain social security agreement covers you, depending on whether you were legally resident in Spain by the end of 2020 or arrived later, and what that means for pensions. For British citizens living in or moving to Spain.
Americans and the US-Spain social security agreement
Explains what the US–Spain social security agreement covers, how a certificate of coverage stops you paying into both systems, and how long a posting can last. For Americans working in Spain, or people sent from Spain to the US.
Avoiding double social security payments when no agreement exists
What happens to your social security when you work in Spain from a country with no EU rule or agreement with Spain: where you pay, why you may pay twice, what you lose, and who is exempt. For newcomers who work in Spain.
Sent to Spain by a foreign employer, which contributions apply (A1 certificate)?
If your foreign employer sends you to work in Spain for a limited time, you may stay in your home social security system. This page covers the conditions, how to get the A1 certificate, and what happens without one.
Working remotely for a foreign employer: where you owe social security
Explains whether Spanish or foreign social security applies when you live in Spain and work remotely for an employer abroad. It is for EU and non-EU remote workers, and covers residence, employer location, share of work in Spain and agreements.
What to do with your home social security record before you move
Before you leave, get your contribution records from your home pension institution and decide whether voluntary contributions are worth paying. This page is for anyone moving to Spain with work or contribution years behind them in another country.
What happens to your Spanish contributions if you leave Spain
Explains what happens to the Social Security you paid in Spain when you leave: it is not refunded, it stays on record and can count later, and some benefits can be taken abroad. For anyone planning to leave Spain.
Living in Spain and working in Gibraltar or Andorra
If you live in Spain but work in Gibraltar or Andorra, your social security does not follow the general EU rules. This page shows which arrangement applies in each case and who to ask to confirm your position.
Social security cover through your move: the whole picture
Shows which social security system covers you at each stage of a move to Spain, what proof you need from your home country, who registers you in Spain, and how to avoid gaps or paying into two systems. For anyone moving to work.
About this topic
It is for anyone thinking about, planning or carrying out a move to Spain. That includes employees, people sent by a foreign employer, remote workers and people who live in Spain but work in Gibraltar or Andorra. Rules depend on where you come from: the EU, the UK, the US, Latin America, or a country with no agreement with Spain. Each of these has its own page.
Start with "How EU, EEA and Swiss social security coordination works for you". It explains the basic idea of one country's system applying to you at a time, and how periods add up. For the full sequence of a move, from before you leave to after you arrive, read "Social security cover through your move: the whole picture".
Claiming foreign pensions, remote work visas and pension tax are covered elsewhere.
Key rules
- Spanish registration: Your employer must register you in Spanish social security no later than the day work begins, and at most 60 days before it starts.
- Posting length: A posting from an EU, EEA or Swiss state keeps you in your home system for up to 24 months, with an A1 certificate.
- Telework threshold: If you live in Spain and telework for an employer in another EU state for under 50% of your time, you can stay in the employer's state if the telework framework agreement is applied for with an A1.
- One system: Only one country's social security should cover you at a time, so a stay needs either valid proof from home or a Spanish registration.
- A1 source: Your home country's social security institution issues the A1, never Spain.
Cross-border social security rules: the whole process, step by step
-
Find out which country's system covers you, starting with the overview and the EU, EEA and Swiss coordination article: before you start planning the move
-
Check whether your home country's years count in Spain, or whether an agreement exists with your country: before you move
-
If you are sent by your employer, have the employer ask your home institution for the A1 certificate: before the posting starts; it can take days to several weeks
-
Get your home record and certificates in order: before you leave your home country
-
Have the employer register you in Spanish social security, or register yourself if you are self-employed: at most 60 days before work starts and no later than the day work begins
-
If you work remotely for a foreign employer, apply for the telework agreement A1 if you telework under 50% of your time: before you start remote work from Spain
-
If your posting needs to run past 24 months, ask the sending institution to request an exception: before the 24 months end
-
If you lose your job after working in another EU state, ask for Spanish paro with the U1 certificate of your foreign periods: when you become unemployed
-
If you leave Spain to look for work in the EU, get the U2 document from the Spanish employment office SEPE: before you leave, after at least four weeks registered as a jobseeker; register in the new state within seven days
Documents you may need
Identity and residence
- Your ID and residence details — How EU, EEA and Swiss social security coordination works for you
Income and work
- Proof of insurance periods for pension aggregation — Do your home country's social security years count in Spain?
- Records from any private or employer pension scheme you paid into — Do your home country's social security years count in Spain?, What to do with your home social security record before you move
- Spanish employment contract from your employer of record — Working remotely for a foreign employer: where you owe social security
Other documents
- A1 certificate
- U1 document
- Statement of your contribution history — Do your home country's social security years count in Spain?, What to do with your home social security record before you move
- Proof of your contribution periods — What to do with your home social security record before you move
- Translated copies of these records — What to do with your home social security record before you move
Cross-border social security rules: questions that cross several articles
Do my foreign years count for a Spanish pension?
Yes, if your years are in an EU, EEA or Swiss state, or in a country with an agreement that allows adding periods. Each country then pays its own share. Without either, only Spanish years count. Read the articles on whether your home years count in Spain and on agreements with Spain.
Does an agreement with Spain cover unemployment and sick pay?
Usually no, agreements with Spain mainly cover pensions and work accident benefits, and often leave out unemployment and sick pay. The Ibero-American convention also leaves out health care. Read the articles on checking for an agreement and on the Ibero-American convention.
Can I stay in my home system when sent to Spain?
Yes, if you are posted by your employer and keep a direct job with it, with an A1 certificate for up to 24 months. The home institution issues the A1, usually at the employer's request. Read the article on being sent to Spain by a foreign employer.
Which country do I pay into if I work remotely from Spain for a foreign employer?
You normally pay in Spain, unless you telework under 50% of your time and the telework agreement is applied for with an A1. Working at least 25% in Spain among several states also points to Spain. Read the article on working remotely for a foreign employer.
Will I pay twice if no agreement applies?
Possibly, because Spain requires contributions for any work done there, and your home country may also charge on the same work. This is most likely with an employer-led posting. Read the article on avoiding double payments when no agreement exists.
Explore places
Where you live changes the details. See how Spanish regions and cities compare on rent, jobs, weather, safety and healthcare.
What to read next
More in Social security and benefits
Registration, records and your rights
You will understand who pays what, get your number and record in order, and know your rights and routes of challenge.
Unemployment benefit (paro) in Spain
You will know whether you qualify, how to claim on time, what you will receive and what to do to keep it.
Employee contributions and your payslip
You will read your payslip, know how your contract shape changes your record, and know what to do if contributions are not paid.
Also in Money and taxes
Need certainty before you act?
For important relocation decisions, speak with a qualified human specialist.
Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.