Disclaimer: This article provides general guidance on tax, social security, and employment law for UK employees working remotely from Spain. It is not individual tax or legal advice. Cross-border tax situations are complex and individual circumstances vary significantly. Always consult qualified professionals in both the UK and Spain before making decisions based on this information.
Spain is the dream. Sun, sea, a lower cost of living – and a laptop that connects you to your London office just as easily as your kitchen table in Croydon did. Thousands of British workers have made the move, or are seriously considering it. But the legal and tax reality of working from Spain for a UK employer is more complex than many people realise – and getting it wrong can be expensive.
We are not talking about minor paperwork irritations. We are talking about unexpected five-figure tax bills, double social security contributions, and the possibility that your employer ends up liable for Spanish corporate tax because you decided to work from your terrace in Malaga. Post-Brexit, the rules are different – and in some cases, harder – than they were when the UK was part of the EU.
This guide walks through what you actually need to know before you go.
Important: Tax and social security rules are complex and individual circumstances vary. This article provides general guidance based on current rules as of early 2026. Always seek professional advice before making decisions about where you live and work – the cost of getting it wrong far exceeds the cost of a good adviser.
When does Spain consider you a tax resident?
This is the question that underpins everything else. If Spain considers you a tax resident, you owe Spanish income tax on your worldwide income – not just work done in Spain.
Spain uses three independent tests. Meeting any one of them makes you a tax resident:
1. The 183-day rule
If you spend more than 183 days in Spain during a calendar year (1 January to 31 December), you are a Spanish tax resident. The days do not need to be consecutive. A partial day – arriving or departing – counts as a full day. And here is the part that catches people out: temporary absences still count toward the total unless you can prove tax residence in another country.
So if you spend January to July in Spain, pop back to the UK for three weeks in August, then return to Spain until November – those three weeks in the UK do not reduce your Spanish day count.
If you cross the 183-day threshold, Spain considers you resident for the entire calendar year, not just from the date you hit the number.
2. Centre of economic interests
If the principal base of your professional activities or economic interests is in Spain, you can be considered tax resident even with fewer than 183 days of physical presence. Working full-time from a Spanish home office for a UK employer could trigger this test – especially if that is where you are performing your day-to-day work.
3. The family presumption
If your spouse (not legally separated) or dependent minor children live in Spain, there is a rebuttable presumption that you are also tax resident. This matters if one partner moves to Spain first while the other keeps working from the UK – the Spanish authorities may argue you are both resident.
What this means in practice
A UK worker who relocates to Spain in March and works remotely for the rest of the year will almost certainly become Spanish tax resident for that entire year. Even someone splitting time more evenly needs to count carefully – and be prepared to prove UK tax residence if challenged.
UK side: You should notify HMRC of your departure from the UK using a P85 form and apply the Statutory Residence Test (SRT) to establish whether you remain UK tax resident. If you qualify as a tax resident of both countries simultaneously, the UK-Spain double taxation treaty has tie-breaker rules – but this is specialist territory.
Spanish income tax: what will you actually pay?
Once you are a Spanish tax resident, your worldwide income is subject to Spain’s progressive IRPF (Impuesto sobre la Renta de las Personas Físicas). The 2026 rates, combining national and regional brackets, are approximately:
| Taxable income | Marginal rate |
|---|---|
| Up to €12,450 | 19% |
| €12,450 – €20,200 | 24% |
| €20,200 – €35,200 | 30% |
| €35,200 – €60,000 | 37% |
| €60,000 – €300,000 | 45% |
| Over €300,000 | 47% |
These are national rates. Your actual tax will vary depending on your autonomous community – the Comunidad Autónoma where you are registered adds its own regional component.
A worked example
Sarah earns £55,000 (approximately €64,000) from her UK employer and moves to Valencia in February. She becomes Spanish tax resident for the full year.
Under standard IRPF rates, her approximate Spanish income tax would be:
- First €12,450 at 19% = €2,365
- Next €7,750 at 24% = €1,860
- Next €15,000 at 30% = €4,500
- Next €24,800 at 37% = €9,176
- Remaining €4,000 at 45% = €1,800
Total: approximately €19,700 – before any allowances or deductions, and subject to regional variation.
The UK-Spain double taxation treaty prevents her from being taxed twice on the same income. Tax paid in one country can generally be credited against the liability in the other. But the process requires proper filings in both jurisdictions, and the mechanics are not always straightforward.
Social security: where do you pay, post-Brexit?
This is where Brexit has made things genuinely more complicated.
The UK-EU Trade and Cooperation Agreement (TCA)
Social security coordination between the UK and EU member states – including Spain – is now governed by the Protocol on Social Security Coordination within the TCA. This replaced the EU regulations (883/2004 and 987/2009) that previously applied.
The core principle remains similar: you should only pay social security in one country at a time. But the mechanisms for achieving this have changed.
Temporary postings (up to 24 months)
If your UK employer temporarily posts you to Spain – and certain conditions are met – you can continue paying UK National Insurance contributions instead of Spanish social security. Your employer applies to HMRC for a certificate of continuing liability (the post-Brexit equivalent of the A1 certificate).
Key conditions:
- The posting must be temporary – genuinely intended to last no more than 24 months
- You must have been subject to UK social security legislation immediately before the posting
- Your employer must have a substantial presence in the UK (not just a registered office)
The 24-month hard limit
Under EU regulations, posted worker arrangements could be extended beyond the initial period through mutual agreement between member states. The TCA protocol does not include this provision. After 24 months, there is no mechanism to extend the posting arrangement. You will need to switch to the Spanish social security system.
This is a significant change from the pre-Brexit position and catches many people off guard.
Permanent relocation
If you move to Spain with no end date – or your posting exceeds 24 months – you must register with the Spanish social security system. How this works depends on your employment structure:
- If your UK employer registers in Spain (or uses an Employer of Record), you go on a Spanish payroll. Your employer pays Spanish social security contributions on your behalf, just as any Spanish employer would.
- If your UK employer does not register in Spain, you may need to register as autónomo (self-employed) and handle your own social security contributions and tax filings. The minimum autónomo social security contribution in 2026 is approximately €290 per month, rising with income. For more on this, see our guide to becoming autónomo in Spain.
Multi-state working
If you genuinely split your working time between Spain and the UK – spending meaningful time working in both countries – the social security position depends on where you perform a “substantial part” of your activity (generally 25% or more). Under the TCA protocol, you would typically pay social security in your country of residence if you work 25% or more there. An A1 certificate (or its post-Brexit equivalent) confirms which country’s system applies.
For more on how A1 certificates work across Europe, see our detailed guide to A1 certificates.
Your UK employer’s obligations – and permanent establishment risk
This is the bit your employer’s finance team needs to read.
What is permanent establishment (PE)?
When a UK company has an employee working from Spain, the Spanish tax authorities may argue that the company has a “permanent establishment” in Spain – effectively a taxable presence. If a PE is established, the company becomes liable for Spanish corporate tax on profits attributable to that Spanish activity.
When does a remote worker create PE risk?
The 2025 OECD Commentary on Article 5 (Permanent Establishment) reflects the post-pandemic reality that remote work is now structural, not exceptional. The key factors include:
- The 50% threshold: If the employee works from Spain less than 50% of their total working time over a 12-month period, the risk of a fixed-place PE is generally low. Beyond 50%, the analysis gets serious.
- Nature of the role: An employee who has authority to negotiate or conclude contracts on behalf of the company in Spain creates significantly higher PE risk than someone performing purely operational or technical functions.
- Company direction vs personal choice: The OECD specifically notes that if remote work from Spain is allowed “solely to obtain or retain the services of that individual” – meaning it is the employee’s personal lifestyle choice, not a business decision – this should not create a PE. But this protection requires clear documentation.
Practical implications for UK employers
A UK company with one employee working from Spain as a personal arrangement, performing technical work with no authority to bind the company, and with proper documentation in place, faces relatively low PE risk. A company with a sales director in Spain who regularly signs deals with Spanish clients faces much higher risk. For a broader look at how PE risk works across all European countries, see our permanent establishment risk guide.
UK employers should:
- Document that the Spanish arrangement is the employee’s personal choice, not a business requirement
- Ensure no contracts are concluded in Spain on behalf of the company
- Limit the employee’s authority to represent the company in Spain
- Keep detailed records of where work is performed
- Consider obtaining specialist advice on their specific situation
For UK-side employment law questions around remote working arrangements, K&K Legal can advise on the employer’s obligations under UK law.
The Beckham Law: a potential tax advantage
Spain’s Special Tax Regime for Inbound Workers – colloquially known as the “Beckham Law” after its most famous early beneficiary – offers a significant tax advantage for qualifying newcomers.
How it works
Instead of paying progressive IRPF rates on your worldwide income (which can reach 47%), qualifying individuals pay a flat 24% rate on Spanish-sourced income up to €600,000. Income above €600,000 is taxed at 47%. Crucially, foreign-sourced income (dividends, capital gains, rental income from outside Spain) is generally exempt from Spanish tax under this regime.
Who qualifies?
To be eligible, you must:
- Not have been a Spanish tax resident in the previous five years (reduced from ten years under earlier rules)
- Move to Spain as the result of an employment contract, a qualifying director role, or – since the 2023 Startups Law reforms – as an entrepreneur, professional, or remote worker for a foreign employer
- Apply within six months of starting your activity in Spain
- Become a Spanish tax resident
Duration
Once approved, the Beckham Law applies for six tax years – the year of arrival plus five subsequent years.
A worked example
Using Sarah’s example again – €64,000 from her UK employer:
- Under standard IRPF: approximately €19,700 (before deductions)
- Under Beckham Law: €64,000 × 24% = €15,360
That is a saving of over €4,000 per year – and the benefit scales dramatically with higher income. At €100,000, the gap widens further.
Important caveats
The Beckham Law means you are taxed as a non-resident for income tax purposes, which affects your ability to claim certain deductions and personal allowances. It also has implications for wealth tax. The six-month application deadline is strict – miss it and the option is gone.
You will need a tax adviser experienced with the regime to assess whether it suits your specific situation.
The digital nomad visa option
Post-Brexit, UK nationals cannot simply move to Spain and start working. You need the right to reside. The main options include:
Spain’s digital nomad visa
Designed specifically for people working remotely for a non-Spanish employer or as a self-employed professional with non-Spanish clients. Key requirements:
- Proof of income at least 200% of Spain’s minimum wage (approximately €2,850+ per month in 2026)
- A degree from a recognised institution, or at least three years of professional experience
- A clean criminal record
- Health insurance covering Spain
The visa is initially issued for one year (when applied for from abroad) and can be converted to a residence permit for up to three years. Holders may be eligible for the Beckham Law flat tax rate.
The 90-day work waiver
Spain now allows British nationals to work in Spain for up to 90 days without a visa – a welcome post-Brexit development. This covers temporary work trips and short-term remote working but is not a path to residency.
Non-lucrative visa
If you are not working (or are living off savings and investments), the non-lucrative visa is an option – but it does not permit any work activity from Spain.
For a full breakdown of the digital nomad visa, see our Spain Digital Nomad Visa guide.
Common scenarios
Scenario 1: Short-term working trip (under 90 days)
James works for a London tech company and spends six weeks in Barcelona over the summer, working remotely.
- Tax: Under 183 days – James remains UK tax resident. No Spanish income tax obligation (employment income taxed only in the UK under the double taxation treaty, provided he does not exceed 183 days in Spain in the relevant period).
- Social security: Remains in the UK system. His employer should obtain a certificate of continuing liability from HMRC for the period.
- Visa: Covered by the 90-day work waiver for UK nationals.
- PE risk: Low – short-term, personal choice, no business-facing activity in Spain.
Scenario 2: Permanent relocation
Priya moves to Madrid in January with her family. She keeps her UK job, working remotely full-time.
- Tax: Spanish tax resident from day one (full calendar year in Spain). Worldwide income taxed in Spain under IRPF – or potentially under the Beckham Law if she qualifies and applies within six months.
- Social security: Initially, her employer could apply for a posting certificate to keep her in the UK system for up to 24 months. After that, she must join the Spanish system – either through her employer registering in Spain, using an EOR, or registering as autónomo.
- Visa: Needs a digital nomad visa, work visa through her employer, or other residence permit.
- PE risk: Moderate to high – depends on her role and whether she has authority to act on behalf of the company in Spain. Her employer needs professional advice.
Scenario 3: Split time between UK and Spain
Mark spends roughly half the year in each country, working for a UK employer throughout.
- Tax: If he keeps his Spanish days to 182 or fewer, he avoids Spanish tax residency on the 183-day test – but he must also watch the centre-of-economic-interests test. He should carefully document his days in each country.
- Social security: As he works substantially in both countries, the determination depends on where he performs 25%+ of his activity. If he is resident in Spain (by any measure), Spanish social security would likely apply.
- Visa: The 90-day Schengen limit for non-EU nationals is separate from the 183-day tax rule. Mark cannot spend 182 days in Spain without a residence permit – the 90-day visa-free limit applies.
This scenario highlights a crucial point many people miss: the Schengen 90/180-day rule and the 183-day tax residency rule are completely separate frameworks. You can breach immigration rules long before you hit the tax threshold.
Structuring options: how does the money actually flow?
If you are working from Spain long-term, your UK employer has several options:
1. Keep you on the UK payroll
Possible short-term with a posting certificate. Long-term, this creates compliance risks in both countries.
2. Register in Spain
Your employer sets up a Spanish entity or registers as a foreign employer in Spain, putting you on a local payroll with Spanish social security and tax withholding. This is the cleanest solution but requires your employer to take on Spanish obligations.
3. Employer of Record (EOR)
A third-party EOR becomes your legal employer in Spain, handling payroll, tax, and social security. Your UK company pays the EOR, and the EOR pays you. Typical costs range from €350 to €600 per month, or 8–15% of gross salary. This is increasingly popular for companies with one or two employees in Spain who do not want to set up a local entity.
4. Switch to contractor/autónomo
You leave your UK employment and invoice your former employer as a self-employed autónomo in Spain. This changes the nature of the relationship fundamentally and has implications for employment rights, benefits, and how the work must be structured. Services like Xolo can simplify the autónomo administration significantly.
Each option has different cost, compliance, and risk profiles. The right choice depends on your specific situation.
What to do before you move: a checklist
- Count your days – Map out exactly how many days you will spend in Spain in the calendar year. Remember: partial days count.
- Tell HMRC – Submit form P85 when you leave the UK. Apply the Statutory Residence Test to understand your UK tax position.
- Sort your visa – Do not assume you can just go. UK nationals need a visa or residence permit for stays beyond 90 days.
- Get a NIE – Your Número de Identificación de Extranjero is essential for any financial or tax activity in Spain.
- Talk to your employer – They need to understand the PE risk and social security implications. Give them time to take advice.
- Apply for a posting certificate – If the arrangement is temporary (under 24 months), your employer should apply to HMRC before you go.
- Consider the Beckham Law – If you qualify, you have six months from starting activity in Spain to apply. Do not miss this deadline.
- Register with Spanish tax authorities – Once you are resident, register for a tax number and understand your filing obligations.
- Get professional advice – In both countries. A UK tax adviser and a Spanish fiscal adviser (asesor fiscal or gestor) who understands cross-border situations.
- Keep records – Document your days in each country, where work is performed, and the nature of your role. You may need this evidence years later.
When you need professional help
To be direct: almost everyone in this situation needs professional help.
If your stay is a few weeks and you are clearly UK-resident, the position is relatively straightforward. But the moment you are considering a longer stay – six months, a year, permanently – the interaction between UK and Spanish tax law, social security coordination, immigration requirements, and your employer’s corporate tax position creates a web of obligations that generic online guidance (including this article) cannot fully address.
Specifically, seek professional advice if:
- You are approaching the 183-day threshold
- Your employer has concerns about permanent establishment
- You need to decide between the Beckham Law and standard IRPF
- You are splitting time between the UK and Spain
- You have income from multiple sources or countries
- Your family situation is complex (spouse in a different country, dependents)
A good cross-border tax adviser will save you considerably more than they cost.
Key sources and further reading
- HMRC: Tax if you leave the UK to live abroad – guidance on your UK tax obligations when you move
- Agencia Tributaria: Tax residence for individuals – the Spanish tax authority’s own guidance
- UK-Spain Double Taxation Convention – HMRC’s treaty summary
- Becoming autónomo in Spain – RWE’s comprehensive guide
- Spain Digital Nomad Visa 2026 – full visa breakdown
- A1 certificates: social security for remote workers in Europe – understanding social security coordination
This article was last reviewed in March 2026. Tax and social security rules change frequently – always verify current thresholds and deadlines with a qualified professional before making decisions.