How to Avoid Double Social Security Payments When Moving to Spain
You’ve just landed in Madrid with a new contract or a remote job, and your first payslip shows Spanish Social Security deductions. Meanwhile your home country is still taking its own contributions. Paying twice into two pension systems for the same work is common and expensive, and it can usually be avoided. This guide explains which country gets your contributions, which certificate proves it, and how to recover money you have already paid twice.
Disclosure: This post may contain affiliate links. We may earn a commission at no extra cost to you if you make a purchase through these links. Read full disclosure.
Why Double Social Security Happens When You Move to Spain
When I moved here, I assumed two governments would sort this out between themselves. They don’t. Spain’s Tesorería General de la Seguridad Social (TGSS) and your home country’s pension agency don’t check with each other by default. Each one applies its own rules, sees that you work, and expects to be paid. Unless you show up with the right document at the right time, both may keep charging you.
The One Rule That Decides Where You Contribute
Spanish Social Security follows one basic principle. You are covered, and must contribute, because you carry out your work in Spain. This applies to employees and the self-employed alike. Your passport, your employer’s location and your salary currency don’t change it. If you sit at a desk in Valencia and do your job, Spain considers that work to be happening in Spain.
This catches out many remote workers. Take Sarah, a graphic designer employed by a company in Dublin. She moves to Seville and keeps working for the same employer. Her Irish payroll keeps deducting Irish contributions. Under the Spanish principle, though, her work now happens in Spain. Without a coverage certificate, she should be registered in the Spanish system. If her employer never sets that up, she ends up paying in Ireland while technically owing contributions in Spain. That is the classic double-exposure trap, even if only one system is collecting at first.
The way out is the exception built into coordination rules and bilateral agreements. In certain cases, usually a temporary posting or specific self-employed situations, you can stay in your home system. A certificate proves it, and Spain then leaves you alone. Everything else in this guide follows from that.
Why the 183-Day Rule Does Not Apply Here
People often say “I won’t owe Spanish Social Security until I’ve been here 183 days.” That is wrong. Spanish Social Security has no 183-day test. Coverage starts when you work in Spain, whether that is your first week or your fifth year.
The 183-day rule is the income-tax residency test under article 9 of the IRPF Law. It decides whether Spain taxes your worldwide income. It has nothing to do with Social Security. Income tax and Social Security are two separate systems with two separate sets of rules. You can be a Spanish tax resident while legitimately staying in your home Social Security system with a coverage certificate. You can also be a Spanish tax non-resident while owing Spanish contributions. For the tax side, see Tax Residency in Spain: 183-Day Rule and Practical Tests.
Keeping the two systems apart in your head is half the battle. Ask two questions. Where am I tax resident? Where am I insured for Social Security? The answers can differ.
Which Agreement Covers You
Your nationality and where your employer is based decide which rulebook applies. Each rulebook has its own document.
EU, EEA and Swiss Movers
If you are moving within the EU, EEA or Switzerland, the EU social security coordination regulations apply. They work on a “single legislation” principle: at any moment you are insured in only one member state. Double contributions should be impossible in theory. In practice they still happen, usually because someone skipped the paperwork.
The key document is the A1 portable document. Your home country’s social security institution issues it. It certifies that you remain insured there while working in Spain. The typical case is a posted worker sent by an employer for a limited period. A1s also exist for people who normally work in two or more member states. The maximum length of a posting and the extension conditions are set by the regulations, so confirm the exact period with your home institution before you plan around it.
Here is an example. Marco works for a Milan engineering firm that sends him to a project in Bilbao for a fixed period. His employer applies for an A1 from the Italian authorities before he goes. He keeps paying Italian contributions, his Bilbao client has nothing to register, and Spain doesn’t ask for Spanish payments. Without the A1, Marco would legally have to join the Spanish system for that work.
If you are moving permanently and taking a local Spanish job, there is no A1. You simply switch systems. Your periods in each country still count together towards your eventual pension.
UK, US and Other Agreement Countries
Outside the EU, Spain has bilateral social security agreements with a number of countries. These include the United States, Canada, Australia, Japan, South Korea and several Latin American countries. Spain is also part of the Ibero-American multilateral social security agreement. For UK nationals after Brexit, the social security coordination protocol in the EU-UK Trade and Cooperation Agreement keeps a similar system going. HMRC issues certificates for workers posted to Spain.
For Americans, the US-Spain totalization agreement is the relevant instrument. The US Social Security Administration issues a Certificate of Coverage. It shows that a temporarily posted worker, or a qualifying self-employed person, stays in the US system. Americans have extra complications on the tax side. Self-employment tax, for example, interacts with the totalization rules on the US return. A US-focused expat tax firm such as Taxes for Expats can help, because a certificate only works if your US filing reflects it. Two detailed guides cover this: The US-Spain Totalization Agreement: Social Security Contributions and Getting a US Certificate of Coverage for Spain: Application Steps and Timing.
Each bilateral agreement has its own posting length, its own rules for the self-employed, and its own list of which benefits are covered. Don’t assume the Canadian rules match the Japanese ones. Read the agreement that applies to your country, or ask your home pension agency.
When No Agreement Exists
If your home country has no social security agreement with Spain, there is no exemption certificate. Spain will still require contributions for work done here. Your home country may also expect contributions under its own law, depending on how it treats citizens working abroad. This is where real double payment happens, and both payments can be legally owed at once.
In this situation, check whether your home contributions are compulsory or voluntary while you live abroad. Many systems let non-resident citizens stop or reduce payments. Others offer voluntary contributions that protect a pension record without being mandatory. Stopping or reducing the home-side payment is often the only legal lever you have.
| Your situation | Which system usually applies | Document to request | Who issues it |
|---|---|---|---|
| EU, EEA or Swiss employee posted temporarily to Spain | Home country | A1 portable document | Home country social security institution |
| EU, EEA or Swiss national taking a local Spanish job | Spain | None, register in Spain | Not applicable |
| UK worker posted temporarily to Spain | UK | Certificate of coverage | HMRC |
| US worker posted temporarily or qualifying self-employed | US | Certificate of Coverage | US Social Security Administration |
| National of another agreement country on a posting | Depends on the specific agreement | Certificate under that agreement | Home country authority named in the agreement |
| National of a country with no agreement | Spain, plus possibly home country | No exemption certificate exists | Not applicable |
| Anyone working in Spain without a valid certificate | Spain | Spanish registration and NUSS | TGSS |
Step-by-Step: Getting and Using a Coverage Certificate
The certificate is what protects you. Apply late, file it in the wrong place, or let it lapse, and you can end up paying twice anyway.
Before You Leave
Order matters. Certificates are much easier to get before you start working in Spain than to fix afterwards.
- Confirm your status. Are you being posted temporarily by an employer in your home country, are you self-employed, or are you starting a local Spanish job? Only the first two normally lead to a home-country certificate.
- Find the agreement or regulation that applies to your nationality and your employer’s country. Then read its conditions on posting length and extensions.
- Ask your employer, or apply yourself if you are self-employed, for the certificate from the competent home authority. Do this well before your first working day in Spain.
- Check that the certificate lists the right Spanish employer or client, the right start and end dates, and your correct personal details.
- Make several copies, both digital and paper. You will need them more often than you expect.
One reader told me she had moved to Málaga on a posting and assumed her HR team had applied for the certificate. They hadn’t. By the time anyone noticed, she had several months of Spanish registration that had to be reversed. A short email before the move would have prevented it.
After You Arrive in Spain
The certificate only helps if the Spanish side knows about it.
- Give a copy to your Spanish employer, host company or client. They need it to justify not registering you, or to deregister you if they already did.
- If you were registered by mistake, contact the TGSS. You can go through your local Social Security office or use the TGSS online portal, Import@ss. Ask for your registration to be corrected based on the certificate.
- Request your Vida Laboral, the official record of your Spanish contribution history. Check that it shows no Spanish contributions for the covered period, or that any mistaken ones have been cancelled. The guide How to Read Your ‘Vida Laboral’ Report in Spain walks you through that document line by line.
- Check your first few payslips. If Spanish Social Security lines appear while your certificate is valid, raise it with payroll straight away. For how to read those lines, see Understanding Spanish Payslips: IRPF and Social Security Lines Explained.
- Diary the certificate’s end date. If your posting is extended, apply for an extension through the home authority before it runs out. If it isn’t extended, arrange Spanish registration so you are never uncovered.
Keep the certificate with your immigration paperwork too. Some residence routes ask how you are insured and how you will contribute, so having it ready can save you a second trip to an office.
Self-Employed and Remote Workers
Freelancers and remote employees face the most uncertainty.
If you are self-employed and do your work in Spain without a certificate from your home system, you normally register in Spain’s self-employed scheme, the RETA, as an autónomo. If you hold a valid certificate showing you remain insured as self-employed at home, you shouldn’t also be charged RETA contributions for the same activity. Autónomo Registration in Spain: RETA, Models, and Deadlines explains the Spanish side.
Remote employees of foreign companies have more to sort out. A foreign employer with no Spanish entity still has obligations if you work from Spain without a certificate. Options include registering as an employer in Spain, using a local payroll provider, or covering you through a valid certificate where an agreement allows it. Remote Work for a Foreign Company While Living in Spain: Basics covers this. Digital nomad visa holders should read the Social Security section of Spain Digital Nomad Visa: Requirements, Documents, and Timeline, since showing how you are insured is part of the application.
Banking matters in a practical way. RETA contributions are normally paid by direct debit. Before you register, make sure your account accepts direct debits from the Spanish authorities. Many newcomers use a digital bank such as N26 for daily spending. Whichever account you use, confirm that Spanish government direct debits go through, because a failed payment can lead to surcharges. If you are paid in another currency and convert to euros each month to cover contributions, a transfer service like Wise can cut the conversion cost compared with a traditional bank. Check the provider’s own pages for current fees.
If any of this feels unclear, a good gestor who handles Social Security registrations can save you a lot of stress. See How to Choose an Accountant Gestor in Spain: Pricing and Red Flags before you hire one.
Fixing It If You Have Already Paid Twice
If you have already been paying into both systems, don’t panic. Much of this can be undone, especially if you act soon.
Claiming a Refund
First, work out which system should have covered you. If you were entitled to a certificate, you can usually still apply for one retroactively, although authorities treat late applications differently. Once you have it, ask the system that shouldn’t have collected to return the contributions.
On the Spanish side, you request a refund of contributions paid in error, a devolución de ingresos indebidos, from the TGSS. You will normally need:
- The certificate showing you were insured in another country for the relevant period.
- Your Vida Laboral showing the Spanish contributions.
- Payslips or RETA payment receipts proving what was paid.
- Identification, including your NIE or TIE and your Spanish Social Security number.
If your employer paid part of the contributions, they may need to submit the claim, or at least work with you on it, because part of the money is theirs. Time limits apply to these claims, so start as soon as you spot the problem. Ask the TGSS which limit applies to you.
If the home country is the one that shouldn’t have collected, the refund process is run by that country’s agency under its own rules. Your contact there is your home institution, not the Spanish one.
Protecting Your Future Pension
The good news is that contributions in one country are rarely wasted, even when it feels that way. Under the EU coordination rules and most bilateral agreements, periods of insurance in different countries are added together to check whether you qualify for a pension. Each country then pays its share for the time you spent in its system. Moving from Lyon to Barcelona halfway through your career doesn’t reset your pension clock.
Where no agreement exists, the risk is greater. Contributions to a system you leave may never reach the minimum needed for a pension there. In that case, compare voluntary contributions in your home country with relying on Spanish contributions, and look at the long-term numbers before deciding. To see how Spanish pensions are built from your contribution record, read Pensions in Spain: How the System Works for Expats.
Keep your Vida Laboral, your home-country contribution statements and every certificate in one folder, filed by date. When you apply for a pension, you will be glad you did.
Common Mistakes to Avoid
These are the errors I see most often, and I made a couple of them myself:
- Confusing tax residency with Social Security coverage. As explained above, the 183-day test is for income tax only.
- Assuming HR has handled it. Ask to see the certificate before your first day.
- Letting a certificate lapse quietly. Diary the end date and act before it.
- Registering as autónomo out of panic. Check first whether a home certificate covers your self-employed work.
- Ignoring the Vida Laboral. It is the only official record of your Spanish contributions, so check it once a year.
- Not noticing mistaken contributions for months. The longer it goes on, the more paperwork it takes to fix, and the more your time limit shrinks.
For a full overview of what Spanish contributions pay for and how they are calculated, see Social Security in Spain: Contributions and Benefits for Workers. Americans juggling payroll on both sides should also read Remote Employees of US Companies Living in Spain: Withholding and Double Filing.
Sorting this out takes some effort up front. One afternoon of emails before you move can save you months of refund claims later. Find your agreement, get the certificate, make sure Spain has a copy, and check your records once a year.
Disclaimer
This article is for general informational purposes only and does not constitute professional advice. Laws, prices and regulations vary by location and change over time. Consult a qualified professional for guidance on your specific situation.