How to Change Your Tax Residency Legally

By Heavnn Editorial TeamReviewed by Stéphane Gombauld, co-founderLast reviewed 26 November 2026

Quick answer

You change tax residency in two moves that have to happen together: you stop meeting your old country's residence tests, and you start meeting your new country's. If both countries still claim you, the tax treaty between them decides, using your permanent home, your centre of vital interests, where you habitually live and, last, your nationality. What makes the change stick is not a declaration but a file of evidence that shows your life really moved.

Who this is for

This page covers the legal mechanics of the switch. For the practical to-do list of leaving (deregistration, banking, social security), see the leaving your home country guide. If you plan to have no fixed base at all, read perpetual traveler tax first: that is a different, riskier setup.

What does "changing tax residency" actually mean?

Tax residency is decided by each country under its own law. There is no global register and no form that moves you from one country to another. Each country runs its own tests, and you can be resident in two countries at once, or, for a short period, in none.

So a legal change of residency has three parts:

  1. Break the old residency, so you no longer meet your home country's tests.
  2. Build the new residency, so you clearly meet your new country's tests and can get it in writing.
  3. Prove both, with records that would convince a tax inspector three years from now.

How do you break your old tax residency?

Most countries combine a day count with tests about your home, your family and your economic interests. Leaving physically is necessary, but on its own it is rarely enough. Here is what the rules look like in four common departure countries, taken from the official texts.

CountryMain residence testsWhat catches leavers
United KingdomAutomatic UK tests (183 or more days in the tax year, or your only home in the UK for 91 days or more in a row with at least 30 days there), automatic overseas tests, then the sufficient ties test. Tax year runs 6 April to 5 April.Sufficient ties: if you were UK resident in one or more of the 3 previous tax years, as few as 16 to 45 days in the UK can make you resident with 4 ties. Temporary non-residence rules apply if you come back within 5 years or less.
SpainMore than 183 days in Spain in the calendar year, or Spain is the main base of your activities or economic interests. Spouse and minor children living in Spain create a presumption of residence.Sporadic absences count as days in Spain unless you prove tax residence in another country. Moving to a tax haven keeps you a Spanish taxpayer for the year of the move and the next four tax periods.
GermanyA residence (Wohnsitz) or a habitual abode (gewöhnlicher Aufenthalt) in Germany. A continuous stay of more than six months always counts as habitual abode.Keeping a home in Germany available to you can be enough, regardless of days spent there.
United StatesCitizens are taxed on worldwide income wherever they live.You cannot break US tax residency by moving. You can only reduce the tax with exclusions and credits.

Two takeaways from the table:

For US citizens the logic is different: the goal is reducing double tax, not breaking residency. See US expat tax services.

How do you build residency in the new country?

The new country also has to want you. That means meeting its own test, which usually combines legal registration with real presence:

A new residency that only exists on paper (an address, a permit, no life there) is the classic weak point. If the new country would not treat you as resident, the old one usually keeps you by default.

Not sure which country would claim you today? Run your days and ties through the free tax residency simulator, then count your stays precisely with the 183-day calculator.

What happens if two countries claim you?

If both countries treat you as resident under their own law, the double tax treaty between them applies a tie-breaker. HMRC's dual residents helpsheet (HS302) describes the tests in order, and you stop at the first one that gives an answer:

  1. Permanent home: accommodation that is always available for your personal use. If you have one in only one country, that country wins.
  2. Centre of vital interests: where your personal and economic links are stronger: family, social life, work, assets. See the centre of vital interests glossary entry.
  3. Habitual abode: where you live regularly, normally or customarily, which in practice means comparing time spent in each country.
  4. Nationality: generally, the country you are a national of.

If none of these decides it, treaties based on the OECD Model leave it to the two tax authorities to agree. The full sequence is explained in our tie-breaker rule guide.

The practical consequence: keeping a home available in your old country is the single most expensive mistake, because it pushes the decision to the centre of vital interests test, which is subjective and where your old country has years of evidence on its side.

Worked example: leaving the UK for Spain

Tom is a UK freelance developer who has been UK resident for the last 10 years. He moves to Valencia in April 2026, signs a 12-month rental contract and registers with the Spanish authorities. The figures below use the UK tax year 6 April 2026 to 5 April 2027 and the Spanish calendar year rules. Tom works part-time hours, so he does not meet the full-time work abroad test (an average of at least 35 hours a week), and his 50 UK days are above the 16-day automatic overseas threshold. The sufficient ties test therefore decides his UK status.

Scenario A: keeps his London flatScenario B: lets his London flat
Days in the UK (tax year 2026/27)5050
Days in Spain (calendar year 2026)200200
UK ties (assumed under HMRC's definitions)3 (accommodation, 90-day, family)2 (90-day, family)
Ties needed at 46 to 90 days (resident in a previous 3 years)At least 3At least 3
UK resultUK residentNot UK resident
Spain result (more than 183 days)Spanish residentSpanish resident
OutcomeDual resident: tie-breaker needed. He has a permanent home in both countries, so it goes to centre of vital interests, which is uncertain.Spanish resident only. No tie-breaker needed.

One decision, letting the London flat on a proper tenancy instead of keeping it empty, moves Tom from an arguable dual-residence case to a clean single residence. The 50 days back in the UK are the same in both scenarios. Note that the year of departure itself can be split into a UK part and an overseas part under the split year rules; whether Tom qualifies depends on which of HMRC's split year cases he meets.

Tom's ties are assumptions for illustration: each UK tie has its own conditions in HMRC's guidance.

What goes in your proof file?

Tax authorities decide on documents. HMRC's residence manual has a full section on record keeping for the residence test, covering your home, your working hours and locations, and your ties. A good proof file covers both sides of the move:

EvidenceShows you leftShows you arrived
HomeSale deed, end of lease, or a tenancy agreement letting your old home to a third partyRental contract or deed in your name, utility bills
DaysTravel log with boarding passes and passport stamps for every trip backDay count per calendar or tax year, kept monthly
RegistrationDeregistration from the local register where one exists, notice to the tax officeResidence permit or local registration, tax number
Tax positionFinal return in the old country showing the departure dateFirst return filed in the new country, certificate of tax residence
Economic lifeClosed or non-resident bank accounts, gym and club memberships cancelledLocal bank account, health insurance, local contracts and clients where relevant
Family and socialWhere your partner and children liveSchool enrolment, local doctor, community or club memberships

Keep everything for at least as long as your old country can reopen a tax year, and longer if you have a large disposal or a business sale in the years after you leave.

What triggers a residency audit?

There is no public checklist, but the same patterns come up again and again because they contradict the claim that you left:

Common mistakes

Frequently asked questions

Can I change tax residency just by spending less than 183 days in my home country?

Usually not. Most countries also look at your home, family and economic interests. In the UK, someone resident in recent years can stay resident with as few as 16 to 45 days if they keep 4 UK ties.

Do I need a certificate of tax residence from my new country?

It is the strongest single document you can have. You often need it to claim treaty relief: HMRC, for example, asks for a certificate showing the other country treats you as resident for the period, sent with your claim.

What is the tie-breaker rule?

It is the treaty test used when two countries both treat you as resident. It checks, in order, permanent home, centre of vital interests, habitual abode and nationality, then leaves it to the two tax authorities if still unresolved.

Can I be tax resident nowhere?

For a short time, it can happen. As a long-term plan it is fragile: without a new residency, your old country can argue you never left, and treaties only protect you if you are resident somewhere. See perpetual traveler tax.

I am a US citizen. Can I change my tax residency?

You can become resident in another country, but the US taxes its citizens on worldwide income wherever they live. Moving changes how much US tax you pay, through exclusions and credits, not whether you file.

Get your move right the first time

Sources

Last verified 23 November 2026. General information, not tax or legal advice. Residence rules depend on your full facts and on the treaty between the countries involved.

Last verified: 2026-11-26. This page is general information about international tax and is not tax or legal advice. Rules change and depend on your facts; confirm your situation with a qualified advisor before acting.