Jacob Salama Tax Lawyer
Jacob SalamaInternational Tax Lawyer · Spain
Social Security · Spain

Social Security and PAYE in Spain: Maintaining Home-Country Contributions and Understanding Your Options

📅 May 2026 ✍️ Jacob Salama 🕐 11 min read

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 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:

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:

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 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:

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:

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:

Self-Employed US Citizens in Spain

The position for US self-employed individuals is more complex:

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:

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:

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:

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:

7. The Process: Step-by-Step for Maintaining Home-Country Social Security

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.

Frequently Asked Questions

Yes, in two main scenarios. First, if your UK employer posts you to Spain and obtains a UK certificate of continuing liability (iCA60 process via HMRC), both you and your employer continue paying NICs as if you were working in the UK. The certificate can cover up to 24 months under the EU-UK TCA framework. Second, UK self-employed individuals can apply for a certificate of continuing liability for self-employment contributions (CA3838) through HMRC — NIC Class 2 and Class 4 obligations continue during the certificate period. Outside these scenarios — for example, a UK national who relocates to Spain independently and works remotely for a UK employer without any formal posting arrangement — UK NIC obligations generally cease and Spanish cotizaciones apply instead. Getting a formal assessment of your position before relocating is strongly recommended.
This creates a compliance gap with potentially serious consequences. Without a valid A1, the Spanish TGSS can treat you as subject to Spanish social security from the date the A1 expired. This means the employer (or the worker if self-employed) becomes liable for Spanish cotizaciones retroactively for the uncovered period — at a combined rate of approximately 36.25% of salary up to the contribution ceiling. TGSS enforcement is increasingly active. In practice, it can be very difficult to reclaim dual contributions already paid to the home country for the same period, since the home-country system will not typically refund contributions for a period where the worker was physically working in Spain. If your A1 is approaching expiry, take action immediately: apply for renewal if the overall maximum duration has not been reached, apply for an Article 16 exceptional extension through bilateral authority agreement, or arrange registration with the Spanish TGSS. Allow at least 8 weeks lead time for any of these processes.
This depends critically on your employment structure. If you are employed by a US employer and your employer has obtained an SSA Certificate of Coverage under the 1990 US-Spain Totalization Agreement, you remain in the US Social Security system for up to 5 years and do not owe Spanish cotizaciones. Both employer and employee FICA contributions (Social Security 6.2% each, Medicare 1.45% each) continue to be payable to the IRS during the certificate period. If you are self-employed in Spain with no formal US employer, the analysis is more complex: if your activity is wholly US-sourced and you hold an SSA coverage certificate for self-employment, US SE tax applies. If you are operating as a Spanish autónomo — registered with TGSS, providing services in Spain — Spanish RETA cotizaciones apply. If you are a remote worker with no formal posting relationship and no SSA certificate in place, Spanish cotizaciones apply from the point you become a Spanish tax resident. Remember also that US citizens pay tax on worldwide income regardless: social security coverage is a separate question from your US income tax obligations under the IRC.
Under EU Regulation 883/2004, if you habitually work exclusively in Spain — even for a German employer — the lex loci laboris rule means Spanish social security applies, not German. However, if your German employer can demonstrate a genuine posting relationship (the employer has substantive activities in Germany, the arrangement is temporary, and you were genuinely "posted" rather than simply permitted to work from wherever you choose), they can obtain an A1 certificate from the Deutsche Rentenversicherung. This would exempt you from Spanish cotizaciones for up to 24 months. For a purely remote arrangement established from the outset — where you chose to live in Spain and the employer agreed to let you work from there — it is difficult to characterise this as a "posting" under Article 12. The TGSS and EU social security authorities take an increasingly strict view on this. The employer's country of registration does not in itself determine social security liability: physical work location does. If Spanish social security applies, the employer should register as a foreign employer with the TGSS, which entails registering for Spanish social security as a foreign entity and operating contributions accordingly.
No. The Beckham Law (Art. 93 LIRPF) is an IRPF income tax regime. It has absolutely no effect on social security obligations. The two systems operate entirely independently: the IRPF regime is administered by the AEAT; social security is administered by the TGSS. A Beckham Law employee who works for a Spanish employer is still subject to Spanish social security in exactly the same way as any general-regime employee — employer cotizaciones of approximately 29.9% and employee cotizaciones of approximately 6.35% apply on salary up to the contribution base ceiling. The only instrument that can exempt a worker from Spanish social security is a valid posted-worker certificate from the applicable home-country authority (A1, UK certificate of continuing liability, SSA Certificate of Coverage). This is entirely separate from, and unaffected by, the IRPF regime elected. Confusing the two systems is one of the most common misconceptions we encounter.
Ask a question