Skip to content
Legal Article

Remote Work in Spain for a Foreign Employer: Where Is Social Security Due?

Topic: remote work Spain foreign employer social security

If you relocate to Spain and work remotely for a foreign employer, EU Regulation 883/2004 places your social security contributions in Spain — not in your employer's country. We explain the two legal mechanisms for compliance and how this interacts with the Beckham regime.

10 min read

When a professional relocates to Spain and continues working remotely for their overseas employer, a question arises that both companies and individuals frequently underestimate: which country's Social Security system receives the contributions? The answer has material financial consequences and determines the starting point for accessing the Beckham Law regime. Within the European Union, the legal framework is clear — though its practical implementation requires careful planning.

The foundational rule: contributions follow the work

EU Regulation 883/2004 on the coordination of social security systems lays down a straightforward rule in Article 11(3)(a): an employee is subject to the legislation of the Member State in which they physically perform their employment activity.

This means that if a person establishes their residence in Spain and works from here for a company based in Germany, the Netherlands, France or any other Member State, their Social Security contributions are due in Spain — not in the employer’s country. The determining criterion is the location where the work is actually carried out, not the worker’s nationality, nor the country in which the employer is incorporated.

This rule reflects a principle of territorial coherence: the worker uses the infrastructure of the State where they live — healthcare, social services, unemployment protection — and accordingly contributes to funding it. EU law does not permit Social Security arbitrage: the system with more favourable contribution rates cannot simply be chosen.

Why the frontier worker rule does not apply

A common misconception in these cases is treating the teleworker who relocates to Spain as equivalent to a frontier worker. Article 1(f) of Regulation 883/2004 defines a frontier worker as someone who works in one Member State but resides in another and returns home daily or at least weekly — for example, a resident of the French Cerdagne who crosses the border every day to work at a company in Puigcerdà. Under certain conditions, frontier workers can maintain contributions in their country of residence.

The international teleworker who moves to Spain to live there permanently or habitually is an entirely different profile: they live and work in Spain. They do not physically commute to the employer’s country on a daily or weekly basis. They cannot invoke the frontier worker rules to avoid contributing in Spain.

The same reasoning applies to Form A1 (the certificate of applicable legislation), which allows a worker who is temporarily posted to another Member State — generally for up to 24 months — to remain subject to home country Social Security. This mechanism presupposes a defined, temporary assignment, not a permanent relocation of the individual. A worker who moves to Spain to live there indefinitely cannot use an A1 to sidestep Spanish Social Security.

A further nuance worth noting: since July 2023, the EU Framework Agreement on cross-border telework (operating under Article 16 of Regulation 883/2004) creates a limited exception for habitual cross-border teleworkers who perform less than 50% of their working time from their country of residence. Such workers may request, on a voluntary bilateral basis, to remain covered by the social-security system of the employer’s home country. This exception is designed for genuinely cross-border situations — where the worker splits their time across countries and the share performed in their residence country falls below the 50% threshold. For someone who has relocated to Spain and works wholly or predominantly (more than 50% of their time) from here — the standard relocation scenario — this exception does not apply. The competent State is Spain, and that is not a matter of choice.

The two compliance routes

Once it is established that the worker must contribute in Spain, the practical question is who manages that obligation and how. Two mechanisms are available under EU law.

Route 1: The employer registers with the TGSS as a non-established employer

The Tesorería General de la Seguridad Social (TGSS) allows foreign companies with no establishment in Spain to register directly and assume contribution obligations in respect of their employees working in Spain. The foreign company acts, for Social Security purposes, as if it were a Spanish employer: it pays monthly contributions, covering both the employer’s share and the employee’s share (withheld from the payroll), and manages the employee’s Social Security enrolment and de-registration.

This is the cleanest solution from a legal standpoint. The original employment relationship remains intact — the worker continues to be employed by the foreign company — and the employer directly fulfils its Spanish Social Security obligations without needing to set up a Spanish entity.

It is important to emphasise that registration with the TGSS does not, by itself, create a permanent establishment for corporate income tax purposes. PE status depends on distinct criteria — a fixed place of business, habituality, whether the employee has authority to conclude contracts binding on the company — which must be analysed separately. The two assessments are independent and do not condition each other.

Route 2: The employee assumes the contribution obligation (Art. 21, Reg. 987/2009)

Article 21 of Regulation 987/2009 — the implementing regulation for 883/2004 — provides an alternative mechanism for cases where the employer is not established in the Member State where the employee works: the employee may assume the obligations that would normally fall on the employer with respect to Social Security contributions.

In practice, the worker registers with the Spanish Social Security system, manages their own contributions — including the employer’s share — and typically agrees with the foreign employer that the employer will reimburse the employer’s contribution as part of the payroll arrangement.

This route is common when the foreign company is small, when TGSS registration procedures cause delays, or when the company does not have advisers in Spain to manage recurring compliance obligations. It is legally sound, but it requires the worker to actively manage their own contributions and be diligent about monthly deadlines.

Integration with the Beckham Law

For professionals relocating to Spain under Article 93 LIRPF — the Beckham Law — Social Security is a prior, independent obligation. The Beckham Law governs the rate at which employment income is taxed in Spain; it does not alter Social Security rules in any way.

What the Beckham Law does establish is that the formal application — Form 149 (Modelo 149) — must be filed with the AEAT within six months of the Social Security registration date. This makes Social Security registration the starting point of the Beckham Law calendar. Delay the registration, and you shorten the window to apply. Fail to register altogether, and you may forfeit access to the regime entirely.

The correct sequence for a Beckham-based relocation is therefore:

  1. The foreign employer registers with the TGSS (or the employee and employer agree to use the Art. 21 Reg. 987/2009 route).
  2. The worker is registered with Spanish Social Security (General Regime).
  3. Within the following six months, Form 149 is filed with the AEAT requesting the Beckham special regime.
  4. Annual tax returns are then filed using Form 151 (Modelo 151) for the duration of the regime.

The employer’s cost: Spain can be competitive

A fact that many foreign employers are unaware of is that Spain’s employer Social Security contributions are subject to a maximum contribution base. In 2025, this stood at approximately €4,909 per month, which limits standard employer charges to roughly €1,700–€1,800 per month. It is important to note, however, that since 1 January 2025 a solidarity contribution (cuota de solidaridad) applies to the portion of the salary that exceeds the maximum base — a small incremental employer rate that rises gradually over the coming years. For high earners, the employer’s Spanish Social Security cost is therefore no longer subject to a hard ceiling; the solidarity contribution adds a modest incremental charge on the excess above the cap.

In Germany, the Netherlands, Belgium or Sweden, employer contributions are applied proportionally to considerably higher bases or without a ceiling altogether. Even accounting for the solidarity contribution, for a director or specialist earning a high salary the employer’s Social Security cost in Spain is often materially lower than what they would pay in many other European countries.

This means that relocating a high-earning professional to Spain can, for the employer, be cost-neutral or even economically advantageous compared with retaining them in their home country — but the advantage must be quantified on the actual salary figures rather than assumed from a simple ceiling comparison. It is a point worth working through carefully in the internal business case for a relocation.

Situations requiring specific analysis

The framework above applies clearly to most standard scenarios, but several situations call for additional analysis.

Third-country nationals (outside the EU). Regulation 883/2004 applies between EU Member States and, with some nuances, to the European Economic Area and Switzerland. For workers from countries without a Social Security agreement with Spain — certain Latin American or Asian countries, for instance — bilateral treaties may apply, or in their absence, Spanish domestic law, which may have different rules.

Using an Employer of Record (EOR). When a Spanish EOR platform is used, the EOR entity formally takes on the role of employer for Social Security and labour law purposes. The EOR registers with the TGSS and manages contributions directly, simplifying compliance for the foreign company. The contractual structure between the EOR, the worker and the foreign client company needs to be clearly defined — both for legal clarity and to ensure the Beckham Law conditions (including the employment relationship requirement) are properly met.

Permanent establishment risk. If the teleworker’s role extends beyond performing their own job — for example, concluding contracts in the company’s name, making decisions that legally bind the foreign company, or managing a business operation in Spain — PE risk may arise for corporate tax purposes. This analysis is entirely separate from the Social Security question and requires a tax adviser specialising in international tax and the applicable double taxation treaty.

How BMC can help

The critical sequencing point this article describes — the six-month Modelo 149 window starts running from the date of TGSS registration, not from the date of physical arrival — means that Social Security registration and the Beckham Law application must be planned together, not treated as separate processes. A delay in formalising the employer’s TGSS registration directly shortens, and can eliminate, the window to elect the regime.

BMC advises both employer and employee on the full sequence: determining which compliance route is appropriate (direct TGSS registration or EOR), managing the registration process, assessing permanent establishment exposure for the foreign company, filing Form 149 within the correct window, and preparing annual returns on Form 151 throughout the regime. For our full advisory on international remote work situations, see our remote work and employment law service. For Beckham-specific questions, see our Beckham Law service page.

Want to learn more?

Let us discuss how to apply these ideas to your business.

Email
Contact