1. Introduction — Why Social Security Coordination Matters
When moving to Spain, most expats focus on income tax. Social security is equally important: it determines pension entitlements, healthcare access, disability cover and survivor benefits. Spain's regime — the Régimen General de la Seguridad Social, managed by the Tesorería General de la Seguridad Social (TGSS) — is mandatory for employees and autónomos.
The good news is that international agreements allow certain expats to remain in their home-country social security system temporarily, avoiding the complexity and cost of dual contributions. Getting this right from the outset is critical: the TGSS is increasingly active in enforcement, and retroactive regularisation of uncovered periods is expensive and difficult.
This guide covers the EU/EEA framework, the post-Brexit UK position, the US totalization agreement, how Spain's own payroll withholding works, and a step-by-step process for maintaining home-country coverage. It is current as of May 2026.
2. The EU/EEA Framework: Regulation (EC) 883/2004
For EU, EEA and Swiss nationals, social security coordination is governed by Regulation (EC) 883/2004 and its implementing Regulation (EC) 987/2009. The core principles are straightforward; the application to specific situations can be anything but.
The Basic Rule: Lex Loci Laboris
Article 11 of Regulation 883/2004 establishes the fundamental principle: you contribute to the social security system of the country where you work. If you work in Spain, Spanish social security applies — regardless of your nationality, your employer's nationality, or where your employer is registered. This is the default position for EU nationals working in Spain.
Posted Workers Exception (Article 12)
Article 12 is the most commonly used exception. An employer that is genuinely established in one EU member state can post a worker to Spain for up to 24 months while maintaining home-country social security coverage. Two conditions must be satisfied:
- The employer must be genuinely established in the home state — meaning it carries on substantive activities there, not merely administrative functions. A letterbox company does not qualify.
- The posting must be temporary — the worker is not posted to replace another posted worker in the same position, and must return to the home state after the posting ends.
The 24-month limit is absolute under Article 12. Extensions beyond 24 months require a bilateral agreement between the competent authorities of both states under Article 16 — a process that is discretionary and not guaranteed.
Multi-State Workers (Article 13)
Article 13 applies where a worker habitually works in two or more EU member states. The applicable system is determined by:
- If a substantial part (20% or more by time or pay) of work is carried out in the state of residence, that state's social security applies.
- If no substantial part is performed in the state of residence, the employer's registered state applies (for employees) or the state of residence applies (for self-employed).
For an expat living in Spain who occasionally travels to the employer's home state, careful analysis of the 20% threshold is required. Many remote workers unwittingly trigger Spanish social security by spending more than 20% of their working time in Spain.
The A1 Certificate
The A1 certificate (formerly E101) is issued by the home-country social security authority. It is the only recognised proof that a worker is exempt from the social security legislation of the host state during a posting. Spanish employers and the TGSS must accept it.
A1 certificates are issued by different authorities depending on the home state:
- Germany: Deutsche Rentenversicherung — application via Antrag auf Entsendebescheinigung
- Netherlands: SVB (Sociale Verzekeringsbank) — online portal application
- France: URSSAF — online application for employer-posted workers
- Ireland: Department of Social Protection
Processing times vary from 4 to 12 weeks depending on the issuing authority. The A1 must be in place before the posting begins. Retroactive A1 certificates covering a period already started are technically possible but create complications and may not be accepted by Spanish authorities for the period prior to the application date.
Critical point: An A1 certificate must be physically or digitally available for inspection. In Spain, the TGSS and Labour Inspectorate carry out spot checks on work sites. Workers and employers who cannot produce a valid A1 are immediately treated as subject to Spanish social security, and enforcement proceedings can follow rapidly.
3. Post-Brexit: UK Workers in Spain
After 31 December 2020, UK nationals are no longer covered by EU Regulation 883/2004 for postings that began after that date. The position is now governed by a combination of the EU-UK Trade and Cooperation Agreement and the pre-existing bilateral treaty.
The EU-UK Trade and Cooperation Agreement (TCA)
The TCA, in force from 1 January 2021, contains social security coordination provisions in Part Two, Title III. The provisions broadly replicate the posted-worker framework of Regulation 883/2004 for new postings. Key points:
- UK employers can post workers to Spain for up to 24 months while maintaining UK social security coverage.
- The genuinely-established-employer and temporary-nature conditions apply in the same way as under EU Regulation 883/2004.
- The TCA does not replicate the multi-state worker rules of Article 13 — the position for workers habitually working in both the UK and Spain requires reference to the 1974 bilateral agreement.
UK Certificate of Continuing Liability (iCA60 Process)
The UK equivalent of the A1 certificate is obtained by the employer through HMRC's International Caseworker team. The process:
- Employee postings (CA3822/CA3837): completed by the employee and counter-signed by the employer, submitted to HMRC National Insurance Contributions and Employers Office.
- Self-employed postings (CA3838): completed by the self-employed individual.
- HMRC issues a certificate specifying the period covered — typically up to 24 months.
- Processing time: 6 to 12 weeks currently. Apply well before the posting starts.
When the UK certificate of continuing liability is in force, the worker is exempt from Spanish cotizaciones. Both employer and employee NICs continue to be due to HMRC as if the employee were working in the UK.
UK PAYE and the Spain-UK Double Tax Treaty Interaction
Social security and income tax are independent systems. Holding a UK certificate of continuing liability does not affect IRPF obligations in Spain. A UK employer posting someone to Spain must consider two separate questions:
- PAYE on UK-taxable income: if the posted worker's income remains taxable in the UK (as it may be for the first 183 days or in certain circumstances under Spain-UK DTT Article 15), the UK employer must continue operating PAYE.
- Spanish IRPF withholding: once Spain has taxing rights under the treaty, the Spanish employer (or the non-Spanish employer if registered with the AEAT) must withhold retención a cuenta del IRPF.
It is possible to have a transitional overlap period where both UK PAYE and Spanish withholding apply. Double taxation relief under the treaty (credit method) resolves the ultimate tax liability, but cash flow planning during the transition period is important.
4. US Citizens and the US-Spain Social Security Totalization Agreement
The 1990 Agreement on Social Security between the United States of America and the Kingdom of Spain — the Totalization Agreement — eliminates dual social security coverage for US nationals and their employers, and coordinates pension entitlement between the two systems.
Posted Workers: Certificate of Coverage
US employees posted to Spain by a US employer can remain in the US Social Security system for up to 5 years — significantly longer than the 24-month EU/UK rule. The process:
- The US employer applies to the Social Security Administration's Office of International Programs (located in Baltimore, Maryland).
- The SSA issues a Certificate of Coverage confirming the worker is covered by US Social Security and exempt from Spanish cotizaciones.
- Processing time: typically 4 to 8 weeks.
- Both employer and employee FICA contributions (Social Security and Medicare) continue to be payable to the IRS during the posting.
Self-Employed US Citizens in Spain
The position for US self-employed individuals is more complex:
- If self-employment activity is exclusively US-sourced, US self-employment tax (SE tax under IRC §1401) may continue to apply, and the individual may apply for a certificate of coverage for self-employment.
- If operating as a Spanish autónomo — registered in Spain, providing services to Spanish clients — Spanish RETA cotizaciones will apply unless a valid certificate of coverage is in place.
- Many US self-employed individuals in Spain inadvertently become liable for both US SE tax and Spanish RETA contributions. Professional advice before beginning Spanish self-employment activity is essential.
Pension Totalization
One of the most valuable features of the agreement is pension credit totalization. If a US national has worked in Spain and built up Spanish pension credits (años cotizados), those credits can be combined with US Social Security credits to satisfy the 40-credit threshold for US retirement benefits — and vice versa. A US national who worked 30 years in the US and 5 years in Spain could qualify for both a US Social Security pension and a Spanish retirement pension, each calculated on the contributions made to that system.
5. Spanish Social Security Regimes — Overview
For expats who do contribute to the Spanish system — either because no certificate of coverage applies, or by choice — the two main regimes are:
Régimen General (Employees)
The Régimen General de la Seguridad Social covers employed workers. Contribution rates in 2026:
- Employer: approximately 29.9% of the contribution base (comprising contingencias comunes 23.6%, desempleo 5.5%, FOGASA 0.2%, formación profesional 0.6%)
- Employee: approximately 6.35% (contingencias comunes 4.7%, desempleo 1.55%, formación profesional 0.1%)
- Combined rate: approximately 36.25%
The contribution base is capped at €4,909.50 per month in 2026 (with a minimum base that varies by professional category). Contributions above this ceiling are not due. For high earners, this cap makes the effective rate on total compensation substantially lower than 36.25%.
Régimen Especial de Trabajadores Autónomos (RETA)
Since the January 2023 reform, self-employed individuals (autónomos) pay contributions based on their net real income rather than a freely-chosen contribution base. The system uses income tranches:
- Minimum monthly quota (lowest income tranche, net income below €670/year): approximately €230/month
- Mid-range (e.g. net income €1,700–€1,850/month): approximately €350–€420/month
- Maximum monthly quota (net income above €6,000/month): approximately €590/month
The 2023 reform significantly increased contributions for higher-earning autónomos who had previously chosen the minimum base. Autónomos must notify the TGSS of their estimated income at the start of each year and regularise at year end.
Note for new autónomos: Newly registered self-employed individuals may benefit from a reduced tarifa plana (flat-rate quota) of approximately €80/month for the first 12 months of activity, subject to conditions. This incentive is not available to individuals who have been registered as autónomo in the preceding 2 years.
6. PAYE in Spain — Retención a Cuenta del IRPF
Spain does not have a PAYE system in the UK sense — there is no annual tax code issued to each employee by the tax authority. Instead, Spain operates a withholding-at-source system (retención a cuenta del IRPF) that achieves a similar result.
How Spanish Withholding Works
Employers withhold IRPF from monthly salary payments and remit it to the AEAT quarterly (Modelo 111). The withholding rate is calculated by the employer using information provided by the employee on Modelo 145 — a declaration of personal and family circumstances (marital status, number of children, disability status, mortgage payments, etc.).
Unlike the UK system, there is no single authoritative rate issued externally. The employer performs the calculation using AEAT-prescribed tables and the employee's Modelo 145 data. Key features:
- The withholding rate is recalculated at the start of each tax year (or when personal circumstances change mid-year and the employee submits an updated Modelo 145).
- Beckham Law employees have a fixed flat withholding rate of 24%, regardless of personal circumstances.
- At year end, the employee files their annual IRPF return (Modelo 100, or Modelo 151 for Beckham Law), and the total retenciones are credited against the final tax liability. A refund is due if withholding exceeded the liability; additional tax is due if under-withheld.
Non-Spanish Employers and Quarterly Advance Payments
A common compliance problem arises for expats who are employees of a non-Spanish employer and become Spanish tax residents. If the foreign employer does not register with the AEAT as a foreign employer operating in Spain, no Spanish withholding will be made. The employee is not exempt from IRPF — they are simply under-collected, and must make their own quarterly advance payments:
- Employed individuals with no withholding: technically, the obligation falls on the employer. In practice, the AEAT focuses enforcement on the employer rather than the employee, but the employee's final liability remains.
- Self-employed (autónomos): must make quarterly advance payments via Modelo 130 (for general income) or Modelo 131 (for module-based income), due in April, July, October and January.
7. The Process: Step-by-Step for Maintaining Home-Country Social Security
-
1Determine which agreement applies. Identify whether EU Regulation 883/2004, the EU-UK TCA, the US-Spain Totalization Agreement (1990), another bilateral treaty, or no applicable agreement governs your situation. The answer depends on your nationality, your employer's country of establishment, and whether a genuine posting relationship exists.
-
2Verify the posting conditions. Check that the employer is genuinely established in the home state (substantive activities, not a letterbox), that the posting is temporary, and that the duration does not exceed the applicable maximum (24 months for EU/UK; 5 years for US). If the posting exceeds the permitted period, an Article 16 bilateral extension must be negotiated before the period expires.
-
3Apply for the certificate BEFORE the posting starts. EU workers: apply to the home-country social security authority for an A1 certificate. UK workers: employer applies to HMRC (CA3822/CA3837 for employees, CA3838 for self-employed). US workers: employer applies to SSA International Programs Baltimore. Allow 4–12 weeks for processing. Do not begin the posting without the certificate in hand or confirmed.
-
4Register with Spanish administrative authorities as required. Obtain a NIE (Número de Identificación de Extranjero) and register on the padrón municipal. These are administrative requirements independent of social security. When dealing with the TGSS, present the A1 or equivalent certificate to demonstrate the exemption from Spanish cotizaciones.
-
5Ensure the home-country employer continues to operate home-country payroll correctly. UK: PAYE and NIC deductions must continue. Germany: Lohnsteuer (if German tax still applies) and SV contributions continue. US: FICA (Social Security and Medicare) continues to be withheld and matched by the employer.
-
6Coordinate Spanish IRPF withholding. The certificate of coverage exempts the posting from Spanish social security — it does not affect IRPF obligations. If Spanish tax residency applies (183-day rule or centre of vital interests), IRPF must be accounted for. If the employer is not registered with the AEAT, arrange for quarterly advance IRPF payments through a Spanish tax representative.
-
7Monitor the duration and diarise renewal. A1 certificates and UK/US coverage certificates are issued for a specific period. Set reminders at least 3 months before expiry. If the posting will be extended beyond the initial certificate period but within the maximum duration, apply for a renewal certificate before the existing one expires. Never allow a gap between certificates.
-
8At the end of the posting: notify and transition. Inform both social security authorities that the posting has ended. If the worker will remain in Spain, arrange registration with the TGSS under the Régimen General (or RETA if self-employed). Update all payroll arrangements to reflect the switch to Spanish social security contributions.
8. Special Cases
Autónomos and EU Self-Employed
Article 12 of Regulation 883/2004 applies equally to self-employed individuals who are posted to Spain. An EU self-employed person who temporarily establishes activity in Spain while remaining substantively self-employed in their home state can obtain an A1 for self-employment. UK self-employed individuals use the CA3838 process with HMRC. In each case, Spanish RETA cotizaciones are not required during the certificate period.
Remote Workers and Digital Nomads
This is the single biggest compliance gap in the expat community. A remote worker who relocates to Spain, becomes a Spanish tax resident, and continues working for a non-Spanish employer under no formal posting arrangement is — absent a valid certificate of coverage — subject to Spanish social security from day one of Spanish tax residency.
The fact that the employer is in another country, that the salary is paid in another currency, that the employment contract is governed by another jurisdiction's law: none of these facts displace the lex loci laboris rule. Physical work location determines social security liability. Many remote workers discover this only when they encounter problems with Spanish healthcare access, Spanish pension entitlement calculations, or TGSS enforcement letters.
Spain's visado para trabajo a distancia de carácter internacional (digital nomad visa) does not resolve the social security question — it is an immigration instrument, not a social security exemption.
Directors of Spanish Companies
Executive directors (administradores con relación laboral especial) of Spanish companies occupy a special category. In general, they cannot benefit from posted-worker exemptions and must be registered with Spanish social security. The specific regime depends on whether the directorship constitutes a relación laboral especial de alta dirección or falls under the Régimen General as a standard employment relationship.
Article 16 Bilateral Extensions
Where a posting genuinely needs to exceed the 24-month (or 5-year US) maximum, both competent authorities must agree to an Article 16 extension under Regulation 883/2004 (or equivalent provision under other agreements). This is a discretionary process — neither authority is obliged to agree. The application must be made and agreed before the standard maximum expires. Extensions are typically granted for genuine operational necessity and are not automatic.
9. Key Risks and Common Mistakes
Starting the Posting Without a Certificate
The most common and most costly mistake. Without a valid A1 or equivalent certificate in place from day one, Spanish social security applies for the uncovered period. Retroactive collection of both employer and employee contributions for that period is the normal TGSS response. Reclaiming overpaid home-country contributions for the same period is technically possible but administratively burdensome.
Allowing the Certificate to Expire
Many employers and HR departments track the start of a posting but not the certificate expiry date. If an A1 expires mid-posting and is not renewed, the worker becomes subject to Spanish social security from the expiry date. The TGSS does not provide a grace period — the transition is immediate in principle.
Assuming Remote Work Means No Spanish Social Security
As discussed above: physical presence in Spain while working = Spanish social security in the absence of a valid certificate. This assumption is incorrect and is the source of the majority of social security compliance failures we encounter.
Confusing Social Security and Tax Treaty Benefits
Having an A1 certificate has no effect on IRPF obligations. A worker can simultaneously hold an A1 (exempting them from Spanish social security) and be a Spanish tax resident fully subject to IRPF on their worldwide income. The two systems operate entirely independently.
UK Employers Failing to Register with the AEAT
UK employers that post employees to Spain and where Spanish taxing rights arise under the Spain-UK DTT should register with the AEAT as a foreign employer operating in Spain. Failure to do so means no Spanish withholding is operated — which is a technical violation of Spanish tax law, even if the employee self-reports and pays on time. AEAT is increasingly scrutinising this area.
Concerned About Your Social Security Position in Spain?
Jacob Salama advises posted workers, remote employees and autónomos on social security coordination, A1 certificates and IRPF withholding obligations in Spain. Book a consultation to get a clear picture of your exposure and the steps required.
Book Your Consultation →10. Comparison Table: Social Security Frameworks at a Glance
| Situation | Agreement | Max Duration | Certificate | Issuing Authority |
|---|---|---|---|---|
| EU employee posted to Spain | EC 883/2004 Art. 12 | 24 months | A1 Certificate | Home-country SS authority (e.g. DRV, SVB, URSSAF) |
| UK employee posted to Spain | TCA Part Two, Title III | 24 months | UK Certificate of Continuing Liability (iCA60) | HMRC (NIC International Caseworkers) |
| US employee posted to Spain | US-Spain Totalization Agreement (1990) | 5 years | SSA Certificate of Coverage | SSA Office of International Programs, Baltimore |
| Self-employed EU national in Spain | EC 883/2004 Art. 12 | 24 months | A1 Certificate (self-employed) | Home-country SS authority |
| UK self-employed in Spain | TCA Part Two, Title III | 24 months | CA3838 certificate | HMRC |
| Remote worker (Spanish resident, no posting) | None | N/A — Spain applies from day 1 | N/A — TGSS registration required | TGSS (mandatory) |
Duration limits apply to the initial certificate period. Article 16 extensions (EU) or bilateral authority agreement (US) may be available on a discretionary basis for longer assignments.
Ask Jacob a Question
Specific questions about your social security position, A1 certificate, or IRPF withholding? Submit your enquiry below.
Disclaimer: This article is for general informational purposes only and does not constitute legal or tax advice. Spanish tax law changes frequently and its application depends on individual circumstances. Always consult a qualified tax lawyer before making decisions. SALAMA LEGAL SLP — Colegiado nº 11.294 ICAMálaga.