Social Security in Two Countries (2026): Which System You Pay Into From Spain, and the Certificate That Proves It

🧭 One less thing at the back of your mind

Somewhere on your list is a Spanish form, phone call or appointment that keeps getting pushed to next week.

You don’t have to keep carrying it. Tell the Navigator service what’s stuck. Our bilingual Navigators make the Spanish calls and keep at it until there’s an answer, and you get on with your week.

Hand it to the Navigator service →

🧭 You stay in charge. We do the Spanish legwork.

Somewhere on your list is a Spanish form, phone call or appointment that keeps getting pushed to next week.

You decide what needs doing. The Navigator service makes the calls, books the appointments, comes with you when it has to be in person and reports back in plain English.

Bring in the Navigator service →

🧭 "It is closer to having someone on your team who already knows your file."

Somewhere on your list is a Spanish form, phone call or appointment that keeps getting pushed to next week.

Helen, an early retiree in Estepona, sends a photo of whatever lands in the post, and by the afternoon she knows whether it’s urgent and who is handling it. The Navigator service works the same way for this.

Tell us what’s stuck →

Social security is the part of double taxation that works differently from income tax. Income tax can be charged in two countries and credited back; contributions are meant to go to one country only, and there is no credit if you end up paying both. Which country that is depends on rules outside the tax treaties: the EU coordination regulation, a protocol to the EU-UK trade agreement, and bilateral agreements with 26 other countries, the US among them. Where none of those applies, both systems can charge you.

This guide is for the person who works on the Costa while an employer, a business or a contribution record stays at home. It covers which system takes your contributions, the certificate that proves it, health cover, and how the years in each country add up to a pension. Where the texts are silent and I am giving a reading, it says so.

Last verified: 27 October 2026.

One system at a time, and why the tax credit does not help

Every instrument Spain has signed starts from the same rule: you are subject to the social security legislation of a single country, by default the one where you work, whoever employs you and wherever you live. Article 11 of Regulation 883/2004 says so for the EU, and article SSC.10 of the EU-UK protocol repeats it: a person is subject to the legislation of a single State only, the State where the work is done.

That is why the income tax credit is no use here. Article 80 of the income tax law credits foreign tax paid under a tax similar to Spanish income tax; contributions are not that. If you have been paying into two systems, the fix is the right certificate and a refund claim against the wrong country. Our double taxation guide covers the income tax side.

Inside the EU: posted, or working in two countries

Regulation 883/2004 has three answers for people who work across a border; Regulation 987/2009 fills in the arithmetic.

  • Posted for up to 24 months. An employee sent by a home employer that normally operates there, to work on its behalf in another member state, stays on the home system if the work is expected to last no more than 24 months and the person is not replacing another posted worker (article 12.1). A self-employed person who goes to pursue a similar activity in another member state gets the same 24 months (article 12.2).
  • Working in two or more member states. An employee is covered by the country of residence if a substantial part of the work is done there, and otherwise by the country where the employer has its registered office (article 13.1); the self-employed follow the same residence test, then the centre of interest of the activity (article 13.2). Article 14.8 of the implementing regulation defines “substantial”: a quantitatively substantial part, not necessarily the major part, judged on working time and pay for an employee and on turnover, time, services and income for the self-employed, and a share under 25% is an indicator that it is not substantial.
  • Exceptions by agreement. Article 16 lets two countries agree a different answer for a particular person. The Spanish administration’s page on posted workers describes the practice: where a posting runs past 24 months, the A1 or its extension is granted if both administrations agree, up to a maximum of five years.

The proof is the A1, the portable document naming the legislation that applies, issued by the institution of the country whose system you stay on. The employer asks for it, in advance where possible (article 15.1 of the implementing regulation); a person working in two or more countries tells the institution of the country of residence, which decides (article 16.1).

What Spain’s side looks like

The Spanish administration’s page on posted workers sets out three positions. EU, EEA and Swiss citizens who come to work temporarily in Spain with an A1 issued at home do not register with the Spanish system. Someone leaving Spain on the Spanish system gets the A1 from the Tesorería General de la Seguridad Social (TGSS): the employer applies through the RED system’s Trabajadores Desplazados service or, failing that, the electronic office service Trabajadores Desplazados, TA 300, which the employee can also file; the certificate runs up to 24 months on an open-ended contract or until a fixed-term contract ends. And the TGSS decides the applicable legislation for a Spanish resident who normally works in two or more EU, EEA or Swiss states or the UK.

The UK after Brexit

Since 1 January 2021 the rules between the UK and Spain sit in the Protocol on Social Security Coordination attached to the EU-UK Trade and Cooperation Agreement, and they track the EU regulation.

  • Detached workers. Article SSC.11 keeps an employee on the home system when sent by a home employer to the other State, provided the work does not exceed 24 months and the person is not replacing another detached worker; a self-employed person doing a similar activity gets the same 24 months. Spain’s administration says postings with the UK are accepted up to 24 months and no longer.
  • Working in both. Article SSC.12 copies the substantial part test: residence if a substantial part of the work is done there, otherwise the employer’s registered office, or the centre of interest for the self-employed.
  • The certificate. HMRC says a UK worker only keeps paying National Insurance in the EU if HMRC has issued a certificate of coverage, also referred to as a PDA1, and that it is for an employee of a UK employer going to an EU country temporarily for up to two years, a UK self-employed person doing a similar activity temporarily for up to two years, or anyone working in the UK and one or more EU countries at the same time.

Voluntary contributions to the UK from Spain: what changed on 6 April 2026

A UK national on the Spanish system can still protect a State Pension record by paying voluntary contributions, and the rules changed this tax year. HMRC’s guidance for people abroad, NI38, says that from the 2026 to 2027 tax year you can only pay voluntary Class 3 contributions for periods abroad; Class 2, the cheaper class for people employed or self-employed abroad, is available only for earlier years. HMRC’s payment page puts it in one line: you cannot pay Class 2 contributions for time abroad from 6 April 2026 onwards, a change it dates to Autumn Budget 2025.

The Class 3 conditions tightened too. For tax years after 6 April 2026 you qualify if you paid Class 1 contributions for the first 52 weeks of your employment abroad, or lived in the UK for a continuous 10-year period, or paid 10 years of contributions before going abroad; for earlier periods the old test applies, with three years in place of ten. The 2026 to 2027 rates are 3.65 pounds a week for Class 2 and 18.40 pounds a week for Class 3, so a full year of Class 3 costs 956.80 pounds. You apply online on form CF83 and can pay for the current tax year and the previous six, by 5 April each year. Voluntary contributions never give you health cover abroad.

The protocol allows this: article SSC.13.3 lets a person compulsorily insured in one State join the voluntary scheme of another for old-age benefits, provided they were once subject to that State’s legislation through work. Our UK State Pension guide covers what the record buys.

The 26 bilateral agreements, and the US in detail

Seguridad Social lists bilateral agreements with Andorra, Argentina, Australia, Brazil, Canada, Cape Verde, Chile, China, Colombia, the Dominican Republic, Ecuador, Japan, Korea, Mexico, Moldova, Morocco, Paraguay, Peru, the Philippines, Russia, Senegal, Tunisia, Ukraine, Uruguay, the US and Venezuela. Each has its own posting period and certificate, and they are not the EU ones.

The US agreement has been in force since 1 April 1988. According to the US Social Security Administration (SSA):

  • Employees sent here. The SSA’s operations manual defines a detached worker as an employee sent by the employer in one country to work temporarily in the other, who stays under the laws of the sending country provided the host-country employment is expected to last no longer than five years. The employer may ask, before the five years run out, for the rule to continue, and neither country grants an extension unless the other concurs. A 2014 exchange of notes (BOE-A-2014-11491) widened that extension from one year to a maximum of two.
  • Self-employed. A self-employed person who resides in Spain is assigned Spanish coverage, except that someone who transfers a business to the other country for five years or fewer stays on the original system.
  • The certificates. If coverage stays with the US, employers and self-employed people request the US certificate of coverage online from the SSA. If coverage stays with Spain, the employer requests form E/USA 1 from the provincial office of the TGSS where it is located; a self-employed person writes to the provincial office where the business is run.

A new Spain-US convention was signed in Madrid on 8 April 2024: the Spanish ministry says it extends postings to five years, extendable by two in exceptional circumstances, and adds a second, more favourable pension calculation, and the Spanish Congress authorised it on 14 November 2024. When this guide was verified the SSA’s list of agreements in force still showed only the 1986 agreement and we found no BOE publication of the new text, so the figures above are the 1986 rules.

No agreement: both can charge

If you come from a country outside the EU and the UK that is not on that list, nothing stops both systems charging contributions on the same work. Spain applies its own law: an employee working here goes into the general scheme, and a freelancer registers in the Régimen Especial de Trabajadores Autónomos — special scheme for the self-employed before starting; whether the home country keeps charging is a question for its law. Our social security guide has the Spanish rates and our autónomo guide the registration.

If you are on the digital nomad visa

The visa unit fixes your position before the tax office sees you. An employee is registered in the Spanish general scheme by the foreign employer, which signs up with Spanish Social Security as a company with no Spanish workplace, unless you hold a home-institution certificate that states expressly that it covers remote work from Spain; a self-employed visa holder registers in the Spanish self-employed scheme. Our digital nomad visa tax guide covers both tracks and the six-month Modelo 149 clock that runs from the date on that registration or certificate.

Health cover follows the certificate

The same decision settles who pays for your doctor. Under article 17 of Regulation 883/2004 an insured person living in a member state other than the one whose system they belong to receives health care in the country of residence, provided by the local institution on behalf of the home one; article SSC.15 of the EU-UK protocol says the same for UK-insured people, and HMRC names the S1 form, registered at the local INSS office or online, as a UK posted worker’s route. A person who moves onto the Spanish system gets public health care through that registration instead.

Three people on the Costa

  • A Dutch employee posted to Málaga for 18 months. Her employer normally operates in the Netherlands and is sending her for an expected 18 months, under 24, and she is not replacing anyone, so article 12.1 keeps her on the Dutch system. The Dutch institution issues the A1, she does not register with Spanish Social Security, and the Spanish system treats her on the Dutch fund’s account under article 17. Whether Spain taxes her salary is a separate question for the income tax law and the treaty.
  • A UK freelancer moving to Marbella for good. He is not going temporarily, so the 24-month rule in article SSC.11 does not fit and HMRC’s certificate is not for him. Article SSC.10 puts him on the system of the State where he works: he registers in the Spanish self-employed scheme before invoicing. His UK record stops growing unless he pays Class 3 at 18.40 pounds a week, which from 6 April 2026 needs ten years of UK residence or contributions behind him.
  • A US remote employee of a US company. The SSA’s detached worker rule covers an employee the employer sends to work temporarily in Spain. My read is that an employee who moved here on his own account, working online for a US company that did not send him, is outside that rule, and that the place of work puts him in the Spanish general scheme, with the US employer registering as a company with no Spanish workplace, the route the visa unit describes. If the employer did send him for up to five years, it requests the US certificate of coverage online and Spanish contributions are not due.

Pensions later: adding the years together

Paying into one system at a time leaves a career split across countries, and each instrument puts it back together the same way. Under article 6 of Regulation 883/2004 a country whose law requires a minimum period of insurance counts periods completed in other member states as if they were its own. Article 52 then has each country work out an independent benefit, if you qualify on its own periods alone, and a pro rata benefit: the pension you would get if every period had been completed there, scaled by the ratio of its own periods to the total. You get the higher of the two from each country, and each pays its own pension. The EU-UK protocol copies this in articles SSC.7 and SSC.47.

The US agreement has its own thresholds: the SSA counts Spanish credits towards a US benefit only if you have at least six US credits, generally a year and a half of work, and Spain counts US periods only if you have at least one year of Spanish coverage. Each country pays its own benefit, and one application can be treated as a claim in both. Our guides to the UK State Pension, US pensions and EU pensions cover how each is then taxed in Spain.

The five-minute version

  • Contributions go to one system at a time, normally the country where you work. The income tax credit in article 80 does not touch them.
  • EU: a posting of up to 24 months keeps you on the home system (article 12 of Regulation 883/2004); working in two countries follows residence if a substantial part, read as 25% or more, is done there (article 13, and article 14.8 of Regulation 987/2009). The A1 is the proof.
  • UK: the protocol keeps the 24-month rule (article SSC.11) and the two-country test (SSC.12); HMRC’s certificate of coverage is the PDA1.
  • From 6 April 2026 only Class 3 voluntary National Insurance can be paid for time abroad, at 18.40 pounds a week, and new applicants need ten years of UK residence or contributions.
  • US: postings of up to five years, extendable by two; a self-employed person moving the business for five years or fewer stays on the US system; the US certificate is requested online, the Spanish one is form E/USA 1 from the TGSS.
  • Pensions: each country adds the other’s periods to see if you qualify, works out a pro rata share and pays its own; the US needs six US credits and Spain one Spanish year first.

Related guides

General information, not legal advice, current as of 27 October 2026. Primary sources: Regulation (EC) 883/2004, consolidated text of 31 July 2019, articles 6, 11, 12, 13, 16, 17 and 52; Regulation (EC) 987/2009, articles 14.8, 15.1 and 16.1; EU-UK Trade and Cooperation Agreement, Protocol on Social Security Coordination, articles SSC.7, SSC.10, SSC.11, SSC.12, SSC.13, SSC.15 and SSC.47; Ley 35/2006 del IRPF (BOE-A-2006-20764), article 80; HMRC, National Insurance for workers from the UK working in the EU, Iceland, Liechtenstein, Norway or Switzerland (updated 17 January 2024), Social Security abroad: NI38 (updated 7 July 2026), Apply to pay voluntary National Insurance contributions when abroad (CF83) (updated 7 April 2026), Pay voluntary Class 2 National Insurance contributions: if you work or live abroad, Voluntary National Insurance: rates, and Healthcare in Spain (updated 27 July 2022); Punto de Acceso General, Trabajadores desplazados: Seguridad Social (updated 26 March 2026); Seguridad Social, list of bilateral social security agreements; US Social Security Administration, Totalization Agreement with Spain, Status of Totalization Agreements, Online Certificate of Coverage Service, and POMS RS 02001.470; Canje de Notas of 11 July and 26 August 2014 (BOE-A-2014-11491); Ministerio de Inclusión, Seguridad Social y Migraciones and Embajada de España en Washington, notes of 8 April and 3 July 2024 on the new Spain-US convention; Boletín Oficial de las Cortes Generales, Serie C, núm. 42-3, of 30 January 2025; Unidad de Grandes Empresas y Colectivos Estratégicos, applicant document for international teleworker authorisations.

🌊 Spain keeps changing the rules for expats. We explain them.

A new step in your TIE renewal, a Hacienda deadline, a change to how you book a doctor. Three free briefings a week explain what changed on the Costa, what it means for you and what to do, if anything.

Or sign up on the WaypointSur site →

Andrew Lawrence

About the Author

Andrew Lawrence

Andrew Lawrence is the founder of WaypointSur. He spent his career starting and building advertising agencies, then worked with startups and local businesses after selling his agency. He moved to the Costa del Sol in 2017, lives in Benalmádena, and built WaypointSur as the guide he wished existed when he arrived.

Add WaypointSur as a preferred source in Google Search:

Privacy Policy · Terms & Conditions · Cookie Policy