A UK IT contractor who moves to Spain usually becomes Spanish resident once they spend more than 183 days there in a calendar year or base their main economic interests there, and they can stop being UK resident if they meet one of the automatic overseas tests. Where both countries treat them as resident, the 2013 UK and Spain double taxation convention decides, and a UK limited company run from Spain can raise its own Spanish residence and permanent establishment questions.
Tax investigation insurance from £117.62 a year (£9.80 a month).Pays up to £100,000 of your accountant's fees if HMRC opens an enquiry. No excess. Buy online in a few minutes.
Running a consultancy, freelance or limited company business? Professional indemnity, public and employers' liability and D&O in one policy. See your price and buy online, or read professional indemnity insurance for freelancers.
When do you stop being UK resident?
UK residence is decided each tax year by the statutory residence test. HMRC says you are usually non resident if you spend fewer than 16 days in the UK, or 46 days if you were not UK resident in the 3 previous tax years. You are also usually non resident if you work full time abroad, averaging at least 35 hours a week, and spend fewer than 91 days in the UK, with fewer than 31 days on which you work more than 3 hours in the UK.
Otherwise you can still be UK resident under the 183 day test, the home test or the sufficient ties test, and UK residents pay UK tax on worldwide income. If you leave part way through a year, read about split year treatment. Tell HMRC you are leaving on form P85, or on the SA109 residence pages if you file Self Assessment.
When do you become resident in Spain?
The Agencia Tributaria says an individual is resident in Spain if any one of these applies:
- they stay in Spain for more than 183 days in the calendar year, and sporadic absences count unless they prove tax residence in another country
- the main base of their economic activities or interests is in Spain, directly or indirectly
- their spouse, not legally separated, and dependent minor children habitually live in Spain, which creates a presumption of residence that can be rebutted
Spain treats a person as resident or non resident for the whole calendar year, which does not line up with the UK tax year starting on 6 April.
Worried about an HMRC check? Tax investigation insurance pays your accountant’s fees if HMRC opens an enquiry or compliance check. Solar Protect cover pays up to £100,000 with no excess. It never pays tax, interest or penalties.
From £117.62 a year (£9.80 a month) for individuals, £127.33 for sole traders and £226.25 for companies and partnerships, including IPT and the £20 admin fee.
See my price in 2 questions or call 01795 841 310.
★★★★★ Rated 4.9 out of 5 on Trustpilot from over 160 reviews
What happens if both countries say you are resident?
The 2013 UK and Spain convention is on gov.uk under “Spain: tax treaties”, together with a synthesised text showing changes made by the Multilateral Instrument. It entered into force on 12 June 2014 and has effect in the UK for Income Tax and Capital Gains Tax from 6 April 2015. Article 4(2) settles dual residence for individuals in this order:
- the country where you have a permanent home available to you
- if you have a home in both, the country with which your personal and economic relations are closer
- if that cannot be decided, the country where you have a habitual abode
- then nationality, and finally agreement between the two tax authorities
For salary from your own company, Article 14 keeps a short stay out of Spanish tax only if you are in Spain for no more than 183 days in any 12 month period starting or ending in the fiscal year, the employer is not Spanish resident and no Spanish permanent establishment bears the pay. Article 15 lets the UK tax directors’ fees paid by a UK company, and Article 22 sets out double tax relief. See how double tax treaties work.
Tax investigation insurance from £117.62 a year (£9.80 a month).Pays up to £100,000 of your accountant's fees if HMRC opens an enquiry. No excess. Buy online in a few minutes.
What happens to your UK company and IR35?
HMRC says a company incorporated in the UK is UK resident for tax purposes, and it can also be resident where its central management and control sits. Spain treats an entity as resident if its place of effective management, meaning the direction and control of all its activities, is in Spain. If a one person company is run from a Spanish flat, both may claim it. The convention’s Article 4(3) gives residence to the country where the place of effective management is situated, and HMRC says a company that a treaty makes resident elsewhere is not resident for UK tax purposes. See company residence and permanent establishment risk, as Article 5 defines a permanent establishment as a fixed place of business through which the business is wholly or partly carried on.
On IR35, HMRC’s manual says a worker who is not UK resident and works outside the UK is unlikely to be within the charge to UK tax or National Insurance, so the off payroll rules will not apply to that work. Where the client has no UK residence or UK permanent establishment, Chapter 10 does not apply and your company must consider Chapter 8 instead. More detail is in IR35 when the client is overseas and non UK resident directors.
Do you pay National Insurance or Spanish social security?
gov.uk says you usually pay social security in the country you work in. You keep paying only UK National Insurance if HMRC issues a certificate of coverage, also called a PDA1, when you are employed by a UK employer or self employed in the UK and go to work temporarily in an EU country for up to 2 years. Employers apply on form CA3822 after confirming eligibility on CA3821, and self employed people use CA3837. Applications cannot be made more than 12 months in advance. If you move to Spain for good there is no certificate, and Spanish social security will normally apply. See A1 certificates and social security abroad.
Is there a special regime for people moving to Spain?
Article 93 of the Spanish income tax law, often called the special regime for workers posted to Spain, lets qualifying new residents opt to be taxed under non resident income tax rules while still counting as IRPF taxpayers. The Agencia Tributaria’s Renta 2025 manual, updated on 17 March 2026, says that since 1 January 2023 it covers remote workers, entrepreneurs and highly qualified professionals. Key conditions include:
- not having been resident in Spain in the five tax periods before the move
- moving because of an employment contract, including remote work carried out exclusively by computer, telematic and telecommunications means, or to become an administrator of an entity, or to carry on an activity classed as entrepreneurial
- not earning income through a Spanish permanent establishment, with exceptions for qualifying entrepreneurial and highly qualified activity
It runs for the year of the move and the five following tax periods. The Renta 2024 manual gives rates of 24% on the general base up to €600,000 and 47% above. You opt on form 149 within six months of the start date in Spanish social security registration, or in the document keeping home country social security. Whether a contractor using their own UK company qualifies is a question for a Spanish adviser.
| Point | Position |
|---|---|
| Spanish residence | More than 183 days in the calendar year, or main economic interests in Spain |
| UK non residence (working abroad) | Full time work abroad, fewer than 91 UK days, fewer than 31 UK work days |
| Treaty | 2013 convention, in force 12 June 2014, Article 4 residence |
| Company tie breaker | Place of effective management, Article 4(3) |
| Social security | UK certificate for temporary work up to 2 years, otherwise usually Spain |
| Article 93 regime | Year of move plus five, opt on form 149 within six months |
How might this work in practice?
Illustration only. Sam is the sole director of a UK IT consultancy. He moves to Valencia at the end of March 2026 on a two year lease and works full time for UK and German clients. In 2026 to 2027 he spends 25 days in the UK, working on 6, so he meets the full time work abroad test and is not UK resident. He spends well over 183 days in Spain in 2026, so Spain treats him as resident for all of 2026, overlapping his UK resident months of January to March, which the treaty tie breaker resolves. His company is now managed from Spain, so he takes Spanish advice on company residence and Article 93.
What should you check before you go?
- Count UK days and UK work days for each tax year, and Spanish days for each calendar year
- File P85 or the SA109 residence pages
- Apply for a certificate of coverage, or plan for Spanish social security
- Decide where the company is managed and recheck IR35 for each contract
- Diary the six month deadline for form 149 if you plan to use Article 93
- Keep evidence of where you live and work, as HMRC can open a check into a return after a move abroad, and an accountant’s fees for dealing with it can be insured through tax investigation insurance
Spanish figures above come from the Agencia Tributaria manuals for Renta 2024 and Renta 2025. Rules change often, so confirm the position with an adviser in Spain before relying on it.
Frequently asked questions
Can I stay UK resident while living in Spain for a few months?
Yes, if you meet a UK test and none of the overseas tests. If Spain also treats you as resident, Article 4(2) decides.
Does my UK company have to close when I move to Spain?
No. It stays UK resident by incorporation, but if it is effectively managed from Spain, Spain may also claim it and Article 4(3) applies.
Do I need an A1 to keep paying UK National Insurance?
You need a certificate of coverage from HMRC. It is available for temporary work in an EU country for up to 2 years.
Is the Article 93 regime automatic?
No. You must meet the conditions and opt in on form 149 within six months of the relevant start date.
If HMRC opens a check into your return, tax investigation insurance pays your accountant’s fees. Solar Protect cover pays up to £100,000 with no excess; it never pays tax, interest or penalties. Read how our cover works or get a quote.
Sources
- GOV.UK: Residence
- GOV.UK: manual page RFIG20140
- GOV.UK: Tax right retire abroad return to uk
- sede.agenciatributaria.gob.es: Persona fisica residente espana
- GOV.UK: Spain tax treaties
- GOV.UK: Synthesised text of the multilateral instrument and the 2013 uk spain
- assets.publishing.service.gov.uk: Spain dtc in force
- GOV.UK: manual page INTM120030
- sede.agenciatributaria.gob.es: Persona juridica residente espana
- GOV.UK: manual page ESM10025
Reviewed by Christine Anderson, Broker, Solar Protect. Last reviewed 6 November 2026. Part of Accountapedia, the Solar Protect guide to UK tax and accounting. This page is general information, not personalised advice.
