Dmitrii Sheinkman Author Dmitrii Sheinkman Spanish residence permit expert and tax adviser 9 min read Message the author

Form A1 in Spain in 2027: social security when you work for an EU employer

Form A1 is a certificate confirming that you pay social security contributions in another EU country rather than where you work. Living in Spain with an employer elsewhere in the EU, an A1 spares you Spanish contributions on a posting of up to 24 months, in two-country work, or when teleworking from Spain under 50% of the time.

Below: which rules decide the country of contributions, when an A1 is issued and for how long, how to get one, how it relates to tax, and what to do if you do not qualify. If you are applying for a digital nomad permit and your employer is willing to register with Spanish social security, see our guide to a foreign employer registering with Spanish social security.

What Form A1 is

In the EU, EEA and Switzerland you pay contributions in one country — the one whose system applies to you. Usually that is where you physically work. Form A1 (portable document A1) confirms an exception: another country’s system applies, and it states until when and on what conditions (Article 19 of Regulation 987/2009). While it is valid, Spanish social security does not claim contributions.

The A1 is issued by the social security body of the country whose system applies: in Germany the pension insurer or health fund, in France URSSAF, in Spain the General Treasury of Social Security (TGSS). The employer applies — or the self-employed person themselves — and, where possible, in advance.

The rules also cover non-EU nationals who live legally in an EU country and whose situation involves more than one EU country (Regulation 1231/2010). If your links are only with one EU country and a country outside the EU, a bilateral social security agreement is needed instead.

Five situations: where you pay contributions

Situation Whose system A1 duration Rule
Your employer posts you to Spain temporarily the employer’s country up to 24 months; you may not replace another posted worker Art. 12.1, Regulation 883/2004
A self-employed person from another country works in Spain temporarily their own country up to 24 months Art. 12.2
An employee regularly works in two countries and lives in Spain Spain if 25% or more of working time or pay is here; otherwise the employer’s country while that work pattern lasts Art. 13.1; Art. 14.8, Regulation 987/2009
You live in Spain and telework under 50% of the time, the rest in the employer’s country the employer’s country under the framework agreement on telework up to 3 years, renewed on a new request Art. 16.1; 2023 agreement
You work remotely from Spain 50% of the time or more, with no posting Spain no A1; only an individual agreement between countries Arts. 11 and 16.1

A “substantial part” of your work in the country of residence does not have to be the majority. The regulation sets a guide: a share below 25% of working time or pay indicates that no substantial part is carried out there (Article 14.8 of Regulation 987/2009). The overall picture counts, not a single week.

Where you pay contributions while living in SpainEmployees of a company in another EU or EEA country or Switzerland1Temporary posting to Spainup to 24 months — employer's country2Two countries, under 25% in Spainemployer's country (Article 13)3Remote from Spain 25–50% of timetelework agreement: A1 up to 3 years4Remote from Spain 50% or moreSpanish system, or an Article 16 exception5The employer files the requestA1 comes from the system that appliesHow long an A1 lastsPostingup to 24 months, notreplacing a colleagueTeleworkup to 3 years at a time,renewed on requestBackdatedno more than 3 months,if contributions were paid
Which social security system applies to an employee who lives in Spain while the employer is in another EU or EEA country or Switzerland. Based on Articles 12, 13 and 16 of Regulation 883/2004, Article 14 of Regulation 987/2009 and the 2023 framework agreement on telework. The terracotta case is the one the agreement added.

Telework: the 2023 framework agreement

Since 1 July 2023 a framework agreement on cross-border telework has applied, and Spain has signed it (list of signatory countries). It closes a gap: before, an employee who worked from home in their country of residence 25% of the time or more moved into that country’s system under Article 13. Now, on request, they stay in the employer’s country’s system as long as telework in the country of residence is under 50% of total working time (agreement, Article 3).

The conditions:

  • you live in one signatory country and the employer is based in another signatory country;
  • in your country of residence you only telework, with no other work there, and you do not work in third countries;
  • you are an employee: the agreement does not cover the self-employed;
  • the request is made with the consent of both employer and employee;
  • an A1 is issued for at most 3 years, then a new request is needed; it can be backdated by no more than 3 months and only if contributions were paid in the employer’s country throughout.

The agreement runs for 5 years and renews itself for another 5, so it applies in 2027. Example. You live in Valencia and work for a Lisbon company: 2 days a week from home, 3 in the Portuguese office. Telework in Spain is 40% of your time: under Article 13 you would pay contributions in Spain, but under the agreement you can stay in the Portuguese system with an A1.

If you work from Spain fully remotely, the agreement does not help: all your work is in your country of residence. The only route then is an individual agreement under Article 16 between the two social security bodies. The framework agreement states that the lack of an end date for remote work is not in itself a reason to refuse, but each case is decided on its own.

Digital nomad permit with an EU employer

For the digital nomad permit an employee shows they are insured: either the employer registers with Spanish social security or you provide a certificate from the employer’s country. For an EU company that certificate is the A1, but the UGE office that issues the permit accepts it only for a posting of up to 24 months or under an exception agreement under Articles 12 and 16 — see our digital nomad visa guide.

In practice the permit is tied to the A1 period: members of the chats we follow report getting a one-year permit with a one-year A1, and a request for further documents with a three-month A1, plus the need to show a plan for afterwards, such as registering as autónomo. A short A1 is a reason to decide early what comes next: the employer registering with Spanish social security, or switching to self-employment.

Self-employed in two countries

A self-employed person who regularly works in two countries pays contributions in the country of residence if a substantial part of their work is there: 25% or more of turnover, time, number of services or income. Otherwise, in the country where the centre of their activity lies (Article 13.2 of Regulation 883/2004). What counts is where you physically work, not where your clients are: an autónomo living in Spain and working from home for clients in Germany works in Spain.

If you are employed in one country and self-employed in another, the employment country’s system applies (Article 13.3). The same trap applies: if you do your employed work from home in Spain, the employment country is Spain, not the company’s country. An autónomo based in Spain who goes to work in another country temporarily gets an A1 from TGSS for up to 24 months and stays in RETA. How to register as self-employed is covered in our guide to registering as autónomo.

How to get Form A1

  1. Work out which system applies to you using the table above. That decides which country you apply in.
  2. The employer applies to its own country’s social security body; a self-employed person applies personally. Where possible, before the work abroad starts (Article 15 of Regulation 987/2009).
  3. For telework and Article 16 exceptions both countries’ bodies are involved: the employer’s country agrees it with Spain through electronic data exchange.
  4. Get the A1 and check the dates and the legal basis. Keep it: Spanish social security, the UGE and the tax agency (for the Beckham regime) may ask for it.

Processing times vary: some countries issue a posting A1 online within days, while an Article 16 exception can take months. Allow for this before applying for a residence permit.

Tell us your situation — we reply within the hour

or leave your contact and we will write first
We reply within an hour during working hours. We never call without warning.

Form A1 and tax are separate questions

An A1 settles contributions only. Income tax follows tax residence: more than 183 days in Spain, or your centre of interests here, and a salary from abroad is taxed in Spain even if contributions go to Germany. How residence is determined is explained in our guide to Spanish tax residency.

For the Beckham regime the A1 matters for its date: Form 149 is filed within 6 months of the start date shown in your social security document — and if you stayed in another country’s system, that document is the A1. The deadline cannot be extended; details in our guide to digital nomad tax and the Beckham Law. On a high salary the choice of country shows up in money: compare the two countries’ contribution rates and ceilings before the employer files the request.

If you do not qualify for an A1

If no exception fits, you work in Spain — so contributions are paid in Spain. There are two options:

  • The employer registers with Spanish social security without a branch and pays contributions for you — step by step;
  • you register as autónomo if you work under a service contract rather than as an employee.

Paying contributions “as before” in the company’s country without an A1 is not enough: Spanish social security does not recognise them. If an employer is moving several staff to Spain, the company-side rules are in our guide to relocating employees to Spain.

Frequently asked questions

What is Form A1 in Spain?

A certificate from the social security body of an EU or EEA country or Switzerland confirming that its contribution system applies to a worker even though they work in another country. With a valid A1, Spanish social security does not claim contributions. It is issued by the country where you stay insured.

How long is Form A1 valid?

For a posting, up to 24 months. Under the framework agreement on telework, up to 3 years at a time, renewable on a new request. For work in two countries, as long as that work pattern lasts.

Can I work remotely from Spain for an EU company and pay contributions in the company’s country?

Yes, if telework in Spain is under 50% of your time and the rest is in the employer’s country: that is how the framework agreement on telework works. Fully remote from Spain, only on a posting of up to 24 months or under an individual Article 16 agreement.

Where do I pay contributions if I work two days a week from home in Spain and three in an office in another EU country?

Telework in Spain is 40% of your time. Under the general rule that is a substantial part, and contributions would go to Spain. Under the framework agreement, though, the employer can request an A1 and you stay in its country’s system.

Where does an autónomo living in Spain with clients in Germany pay contributions?

In Spain. What matters is where you physically work, not where your clients are. A self-employed person works in two countries only when they actually operate in both; the country is then chosen by a share of 25% or more of turnover, time or income.

Does Form A1 change my tax residence?

No. An A1 settles contributions only. Income tax depends on tax residence: with 183 days in Spain or your centre of interests here, your salary is taxed in Spain even if contributions go to another country.

Does the A1 period affect the length of a digital nomad permit?

In practice, yes: chat members report permits issued for the A1 period, and requests for further documents when the A1 was short. The UGE accepts an EU employer’s A1 only for a posting or under an exception agreement.

Which date goes on the Beckham application if I have an A1?

The start date shown on the A1. Form 149 is filed within 6 months of that date if you stayed in another country’s social security system. The deadline cannot be extended.

Key points about Form A1 in Spain

  • You pay contributions in one country — usually where you physically work. An A1 confirms an exception.
  • A posting to Spain keeps you in the employer’s country’s system for up to 24 months.
  • Telework from Spain under 50% of the time — an A1 under the telework agreement for up to 3 years; fully remote — only by individual exception.
  • A self-employed person in two countries pays in the country of residence if 25% or more of the activity is there.
  • An A1 does not change tax residence, but it sets the date for the Beckham regime.

If you are planning a move with an EU employer and want to know in advance where contributions and tax will fall, book a consultation with a tax adviser.

Sources

Read next

Ask a question

Describe your situation — we will reply within the hour

or leave your contact and we will write first
We reply within an hour during working hours. We never call without warning.

We use cookies to improve your user experience, analyze traffic and personalize content. Learn more in our Privacy Policy.