Leaving UK Tax Residence When You Move to Spain: Rules for Britons

By Aurelio Maurici

Co-founder, legal, tax and cross-border financeMaster of Business Law, Aix-Marseille Université

Published Updated Last verified

Hands using a desk calculator and writing in a notebook beside a binder

No single form ends UK tax residence; HMRC rules on your status one tax year at a time under the Statutory Residence Test, while Spain asks its own question about each calendar year, and the two calendars do not line up. If both answers come back yes, as they usually do in the year of the move, the 2013 UK and Spain tax treaty decides which residence prevails for treaty purposes. The HMRC and Agencia Tributaria pages cited here draw no line between Britons covered by the Withdrawal Agreement and everyone else. This article is for informational purposes only and is not legal or tax advice; verify current requirements with the relevant Spanish authority or a licensed professional.

Can you be tax resident in the UK and Spain at the same time?

Yes: the Agencia Tributaria says a person can be considered resident in two states when each applies its own rules, and that the treaty between them, where one exists, then applies. For a Briton, the year of the move is when dual residence ordinarily happens.

Spain’s own rules come from article 9 of the income tax law, which the Agencia Tributaria (AEAT), the Spanish tax agency, explains: you are a resident (residente fiscal) if either of two facts is true:

  • you spend more than 183 days during the calendar year (the año natural) in Spain, with sporadic absences counted as Spanish days unless you prove tax residence in another country;
  • the núcleo principal of your interests, meaning the main base of your economic activities or interests, lies in Spain. The same page adds a presumption that only proof to the contrary displaces: if your spouse, not legally separated, and your dependent minor children live in Spain, you are presumed resident.

A Spanish residence permit settles none of this, since AEAT says a person can hold a residence permit in a state without being its tax resident.

Because a change of residence does not interrupt the tax period, AEAT treats a person as resident or non-resident for the whole calendar year; the UK, which usually splits the tax year in 2 on a move, works on a different principle.

Take a spring departure followed by well over 183 days in Spain: Spain can claim the whole calendar year, including the months from January to spring that the UK also counts as UK resident time, so both treasuries can lay a plausible claim to the same winter.

HMRC’s manual adds that split year treatment does not change whether you count as UK resident for a double taxation agreement. How the treaty’s tie breaker then treats the months before departure is a question the official pages cited here leave open, and it belongs with an adviser.

How does the Statutory Residence Test work?

HMRC’s Statutory Residence Test settles each tax year on its own: 183 UK days or more make you resident outright; otherwise the automatic overseas tests come first, the automatic UK tests second and the sufficient ties test last, only if neither group decides.

Step Test Condition Result
1 Automatic overseas test 1 UK resident in 1 or more of the 3 previous tax years, and fewer than 16 days in the UK this tax year Non-UK resident
2 Automatic overseas test 2 UK resident in none of the 3 previous tax years, and fewer than 46 days in the UK this tax year Non-UK resident
3 Automatic overseas test 3 Full time work overseas over the tax year, fewer than 91 days in the UK, fewer than 31 days with more than 3 hours of UK work, no significant break from the overseas work Non-UK resident
4 Automatic UK test 1 183 days or more in the UK in the tax year UK resident
5 Automatic UK test 2 A UK home for a period of at least 91 consecutive days, at least 30 of them in the tax year, where you were present on at least 30 days; and either no overseas home, or fewer than 30 days spent in it during the tax year UK resident
6 Automatic UK test 3 Full time work in the UK for any period of 365 days falling in the tax year; more than 75% of the days in that period on which you work more than 3 hours are UK days; and at least 1 day in both the period and the tax year on which you work more than 3 hours in the UK UK resident
7 Sufficient ties test None of the tests above settles it: compare your UK days with your UK ties Resident if you have enough ties

How many UK ties make you resident?

HMRC’s RDR3 notes list a family tie, an accommodation tie, a work tie and a 90 day tie, each with conditions that RDR3 leaves to HMRC’s manual; a country tie joins the list only if you were UK resident in 1 or more of the 3 previous tax years. HMRC’s Tables A and B set the number of ties that makes you resident according to your UK days.

Days in the UK in the tax year Ties needed if UK resident in 1 or more of the 3 previous years (Table A) Ties needed if UK resident in none of them (Table B)
16 to 45 At least 4 Not listed (fewer than 46 days is already non-resident under step 2)
46 to 90 At least 3 All 4
91 to 120 At least 2 At least 3
Over 120 At least 1 At least 2

How do you break UK tax residence in the year you leave?

A UK resident year can be split in 2 on departure, a resident part and a non-resident part, only if one of HMRC’s split year cases 1 to 3 applies. Case 3, ceasing to have any UK home, fits movers not working full time abroad.

Case Who it fits Conditions in HMRC’s manual
Case 1 Starting full-time work overseas UK resident in the split year and the previous year; non-UK resident the following year because you meet the third automatic overseas test; the overseas work criteria met for a relevant period
Case 2 A partner who moves overseas to live with someone meeting Case 1 UK resident in the split year and the previous year, non-UK resident the following year; partner within Case 1 that year or the previous one, after living together in the UK; from departure to April 5, no UK home, or mostly living in the overseas home, and UK days within the permitted limit
Case 3 Ceasing to have any UK home UK resident in the split year and the previous year, non-UK resident the following year; once the UK home goes, fewer than 16 UK days and, in one country, tax residence or your only home (or all your homes) within 6 months, or presence at the end of each day for 6 months

The same manual adds that split year treatment is not a choice once every condition of a case is met, that Case 1 takes priority over Cases 2 and 3 and Case 2 over Case 3, that only a UK resident year can be split, and that under Case 3 the overseas part starts on the day your UK home ceases.

Two limits qualify the picture:

The relevant period, overseas work criteria and permitted limit of Cases 1 and 2 are defined on manual pages not read for this guide. Spain has no equivalent, because Spanish residence is decided for the whole calendar year.

Which country wins if the UK and Spain both treat you as resident?

Article 4 of the 2013 UK and Spain treaty, in force since June 12, 2014, settles dual residence in a fixed order: permanent home, then center of vital interests, habitual abode and nationality, with mutual agreement between the two tax authorities as the last step.

The convention has applied in the UK to Income Tax and Capital Gains Tax since April 6, 2015, and the Multilateral Instrument (MLI), a multi-country agreement that amends tax treaties, has modified it with effect in the UK for those two taxes from April 6, 2023. HMRC publishes a synthesised text of the treaty as modified, while the Spanish version appears in the Boletín Oficial del Estado (BOE), Spain’s official gazette.

For an individual resident in both countries, Article 4 stops at the first test that gives an answer:

  1. Permanent home. You are resident only in the state where a permanent home is available to you.
  2. Center of vital interests. If you have a permanent home in both, you are resident where your personal and economic relations are closer.
  3. Habitual abode. If that cannot be determined, or if you have a permanent home in neither, residence follows your habitual abode.
  4. Nationality. If you have a habitual abode in both or in neither, you are resident in the state of which you are a national.
  5. Mutual agreement. If you are a national of both or of neither, HMRC and the Spanish tax authorities settle the question between them.

A Briton who keeps a UK house available while renting in Spain has a permanent home in both countries, so the first test decides nothing and the second takes over. Selling or letting the UK home alters the answer to the first test, which is why the choice of whether to sell or rent out your UK home belongs in the same plan as the move itself.

What can each country tax once you live in Spain?

For a resident of Spain, the synthesised text and the BOE text allocate taxing rights as follows:

  • Other pensions (Article 17): taxable only in the state of residence, subject to the government service rule.
  • Government service pensions (Article 18, paragraph 2): taxable only in the UK, unless you are both resident in Spain and a Spanish national; HMRC’s own guide confirms that most UK government pensions, such as civil service pensions, are only taxed in the UK.
  • Dividends (Article 10): the source country may tax them, although in the general case its share is capped at 10 percent of the gross amount.
  • Gains on real estate (Article 13, paragraph 1): may be taxed where the property is, and HMRC adds that double taxation agreements do not apply to tax on gains from selling UK residential property.
  • Other gains (Article 13, paragraph 6): taxable only in the seller’s state of residence.

Treaty relief on UK income is claimed with a Spain form that HMRC says you send first to the tax authority where you are resident; that authority confirms your eligibility and then either forwards the form to HMRC or returns it to you.

How do you get a tax residency certificate in Spain?

You request the Agencia Tributaria’s tax residence certificate online or, if you are not obliged to deal with it electronically, in person; it is issued in Spanish and English with a 10 working day resolution time.

Two AEAT pages differ on validity: the certificate FAQ (December 2, 2025) gives tax certificates, unless their own rules differ, 12 months for periodic obligations while the facts stay unchanged and 3 months for others; the page on resident individuals (July 21, 2026) calls residence certificates valid one year.

AEAT issues the certificate only if its own data show Spanish tax residence, and for a country with a treaty, such as the UK, it certifies that you are resident within the meaning of that treaty. Online requests need an electronic certificate, DNI electrónico or Cl@ve Móvil. The steps are set out in how to get a Spanish tax residence certificate, which was written for Americans, so it serves only for the Spanish procedure.

HMRC’s foreign income page mentions a UK certificate of residence only for relief on foreign income, and the HMRC pages read for this guide do not say how a leaver proves UK non-residence.

Do you have to tell HMRC you are leaving the UK?

Yes: HMRC must be told if you leave to live abroad permanently or to work abroad full time for at least one full tax year: form P85 if you do not usually file Self Assessment, the SA109 residence section if you do.

  • No Self Assessment: the document is form P85, accompanied by parts 2 and 3 of your P45 if you have one. The P85 guidance reserves the online claim for people who have already left, so anyone still in the UK must print and post it. On one case HMRC’s pages disagree: the P85 guidance (updated August 23, 2024) says the form is unnecessary if you send a Self Assessment return for the year you leave, whereas the leaving guide asks for a P85 from anyone who will work full time abroad for a UK-based employer for at least one full tax year, together with a Self Assessment return and SA109.
  • Self Assessment: the residence section, form SA109, is completed and the return sent by post, or filed with commercial software that supports SA109 or through a professional; HMRC’s own online services cannot be used to report a departure, and the same guide sets October 31 as the deadline for paper returns.

What does the UK still tax after you leave?

Once you are non-resident, income and gains arising outside the UK are not taxed there, although UK income remains within reach. HMRC lists pension, rental income, savings interest and wages as UK income on which tax is usually still due, and a Self Assessment return is usually required if you rent out UK property, work for yourself in the UK or have taxable UK savings interest. The same page says that non-residents do not usually pay UK tax on the State Pension or on interest from gilts, a point developed in how UK pensions are taxed for Spanish residents.

Three further points come from HMRC’s pages:

From the moment you are resident in Spain, UK pensions, rent and savings belong on the Spanish return, which is covered in filing a Spanish tax return with UK income and assets and in the Beckham Law special regime for new arrivals.

What happens if you return to the UK within five years?

HMRC’s temporary non-residence rule can tax, in your year of return, certain income and gains received or remitted while away, if you had sole UK residence in 4 or more of the 7 tax years before departure and stayed away 5 years or less.

A split year that included a period of sole UK residence also counts toward the 4 years. Escaping the rule requires a period of non-residence longer than 5 years, which RDR3 defines as 5 years plus one day. The non-resident guide makes the same point for Capital Gains Tax, which a former resident who returns to the UK within 5 years of leaving can owe.

Your first move: count your UK days before you book the flight

The first step before leaving the UK is a day count: write down the planned departure date, the UK days you expect this tax year and next, the homes you will keep and the family staying behind, and set that list against HMRC’s tests.

HMRC’s online checker on its residence page gives an indication of your status for the current tax year or any of the previous 6. From the first full tax year after the move, a reader with no UK home, no UK work and fewer than 16 days in the UK meets HMRC’s first automatic overseas test, whereas the year of departure itself turns on the split year cases. If you keep a home or savings in both countries, wills and inheritance tax in Spain covers which law and which tax apply.

An adviser who works with both HMRC and the Agencia Tributaria is worth the fee if you keep a UK home, plan to work in both countries, hold a UK government pension, expect a large gain or pension payment in the first years, or arrive in Spain early enough in the calendar year to pass 183 days there. Outside those cases, HMRC itself points to the RDR3 notes, its checker and, for anyone still unsure, professional tax help.

Every step of a move to Spain, from the visa to settling in, is set out in order in the Spain Navigator.

FAQ

Does moving to Spain end my UK tax residence on the day I leave?

Not automatically, because HMRC settles residence tax year by tax year under the Statutory Residence Test. If you are UK resident for the year of departure, split year treatment can make you non-resident from the day after you leave, provided that one of HMRC's split year cases applies; a stay abroad shorter than a full tax year before returning gets no split year at all.

Do I have to tell HMRC that I am moving to Spain?

Yes, if you are leaving to live abroad permanently or to work abroad full time for at least one full tax year. Outside Self Assessment, the document is form P85, printed and posted when the departure has not yet happened; inside it, the residence section, SA109, goes with a return sent by post, through commercial software or through a professional, since HMRC's online services will not take it.

Can I keep visiting family in the UK after the move?

Yes, although the days need counting. HMRC says someone working full time abroad can usually spend up to 90 days in the UK, working on no more than 30 of them. Without such work, the first two automatic overseas tests require fewer than 16 UK days (46 if you were not UK resident in the 3 previous tax years); beyond that, every UK tie kept shortens the allowance.

Will the UK still tax my UK pension and rent once I live in Spain?

UK rent remains taxable in the UK and usually brings a Self Assessment return with it. Under the 2013 treaty, most pensions other than government service ones are taxed only where you reside, whereas most UK government service pensions stay taxable only in the UK unless you are both resident in Spain and a Spanish national. HMRC adds that non-residents do not usually pay UK tax on the State Pension.

What happens if I return to the UK after three years in Spain?

HMRC's temporary non-residence rules apply if you had sole UK residence in 4 or more of the 7 tax years before departure and your non-residence lasted 5 years or less. In that case, certain gains, pension payments and other income received while you were away can be taxed in the UK in the year of return. Five years plus one day is the first period that falls outside the rule.

Does a Spanish residence permit make me tax resident in Spain?

Not by itself. The Agencia Tributaria says a person can hold a residence permit in a state without being its tax resident. Spanish tax residence turns instead on more than 183 days in Spain during the calendar year, or on the main base of your economic activities or interests being there, and your spouse, not legally separated, and dependent minor children living in Spain raise a presumption.

Sources

Official pages this article was checked against, with the date we last read them.

  1. RDR3: Statutory Residence Test (SRT) notes HMRC (GOV.UK), English, retrieved
  2. Tax if you leave the UK to live abroad HMRC (GOV.UK), English, retrieved
  3. Get your Income Tax right if you're leaving the UK (P85) HMRC (GOV.UK), English, retrieved
  4. Tax on your UK income if you live abroad HMRC (GOV.UK), English, retrieved
  5. Tax on your UK income if you live abroad: If you're taxed twice GOV.UK (HMRC), English, retrieved
  6. Tax on your UK income if you live abroad: Personal Allowance GOV.UK (HMRC), English, retrieved
  7. Tax on your UK income if you live abroad: Selling or inheriting assets GOV.UK (HMRC), English, retrieved
  8. Tax on foreign income HMRC (GOV.UK), English, retrieved
  9. Tax on foreign income: UK residence and tax HMRC (GOV.UK), English, retrieved
  10. RFIG21010. Statutory Residence Test (SRT): Split year treatment: What a split year is HMRC (GOV.UK), English, retrieved
  11. RFIG21020. Statutory Residence Test (SRT): Split year treatment: When a tax year is split HMRC (GOV.UK), English, retrieved
  12. RFIG21030. Statutory Residence Test (SRT): Split year treatment: When split year treatment will apply HMRC (GOV.UK), English, retrieved
  13. RFIG21040. Statutory Residence Test (SRT): Split year treatment: Case 1. Starting full-time work overseas HMRC (GOV.UK), English, retrieved
  14. RFIG21090. Statutory Residence Test (SRT): Split year treatment: Case 2. The partner of someone starting full-time work overseas HMRC (GOV.UK), English, retrieved
  15. RFIG21130. Statutory Residence Test (SRT): Split year treatment: Case 3. Ceasing to have a home in the UK HMRC (GOV.UK), English, retrieved
  16. RFIG21140. Statutory Residence Test (SRT): Split year treatment: Case 3. The UK and overseas parts of the tax year HMRC (GOV.UK), English, retrieved
  17. Report and pay your Capital Gains Tax GOV.UK (HMRC), English, retrieved
  18. Tell HMRC about Capital Gains Tax on UK property or land if you're not a UK resident GOV.UK (HMRC), English, retrieved
  19. Spain: tax treaties HMRC (GOV.UK), English, retrieved
  20. Synthesised text of the MLI and the 2013 UK-Spain Double Taxation Convention, in force HMRC (GOV.UK), English, retrieved
  21. Convenio entre el Reino de España y el Reino Unido para evitar la doble imposición (Londres, 14 de marzo de 2013), arts. 4, 10, 13, 17 y 18 BOE (Ministerio de Justicia), Spanish, retrieved
  22. Ley 35/2006, del Impuesto sobre la Renta de las Personas Físicas, texto consolidado Boletín Oficial del Estado, Spanish, retrieved
  23. Persona física residente en España Agencia Tributaria, Spanish, retrieved
  24. Residencia en dos Estados Agencia Tributaria, Spanish, retrieved
  25. ¿Qué certifica? Agencia Tributaria, Spanish, retrieved
  26. ¿Dónde se obtiene? Agencia Tributaria, Spanish, retrieved
  27. Certificados tributarios. Expedición de certificados tributarios. Residencia fiscal (ficha del procedimiento) Agencia Tributaria, Spanish, retrieved
  28. Preguntas frecuentes (certificados tributarios, residencia fiscal) Agencia Tributaria, Spanish, retrieved

About the author

See author page

Aurelio Maurici is the co-founder of EasyFranceNow and EasySpainNow and the author behind the tax guidance for U.S. and UK nationals in Europe.

He holds a Master's degree in Business Law from Aix-Marseille Université, where his work centered on legal structures, institutional systems and administrative frameworks. Based in Aix-en-Provence, he has spent years working inside the European legal and administrative system on behalf of international clients, handling real files every week: bank account openings and the FATCA-driven restrictions Americans run into, public healthcare onboarding, tax residency and cross-border reporting questions, and the documentary standards institutions apply in practice rather than in theory.

That hands-on work is the foundation of the Spanish guides on this site. He focuses on the points where Spanish administrative logic diverges from what Americans expect: the weight of sequencing, documentary consistency, and how banks, the Agencia Tributaria and the Seguridad Social interpret rules operationally. His guidance is built from primary sources (BOE, agenciatributaria.es, seg-social.es, exteriores.gob.es and the IRS) and updated when procedures change. He writes the tax guides on this site and reviews the money and tax passages of the other writers' guides.

His work is procedural and operational, not a substitute for regulated advice. When a situation calls for a licensed tax or legal professional, he says so plainly and helps coordinate the right one.

Related articles

Guides for Britons

More articles by Aurelio Maurici

View all

Sourced guides for Americans and Britons planning their move to Spain.

Maxime and Aurelio, EasySpainNow's co-founders

Where are you in the move?