Tax Residency Planning: Rules, Tie-Breakers and How to Move

Tax residency planning in 2026: how countries decide you are resident, why 183 days is a myth, treaty tie-breakers, and how to leave and arrive cleanly.
Tax Residency Planning: Rules, Tie-Breakers and How to Move

Quick answer

Tax residency planning means choosing the country that will tax you as a resident, meeting its test on purpose, and cutting your old residence so cleanly that no other country can still claim you. Each country uses its own test: days, a home, family or a centre of economic interests. There is no universal 183-day rule. When two countries both claim you, the tax treaty between them decides, in this order: permanent home, centre of vital interests, habitual abode, nationality. Document every step.

Last reviewed: November 2026 · Reviewed by Stéphane Gombauld, tax expert, technologist and digital nomad

Heavnn

Optimize your tax position and get up to 100% tax savings

Discover legal tax optimization opportunities for location-independent workers and online businesses.*

* Potential savings depend on your tax residency, income structure, and eligibility under applicable tax laws.

Get my FREE digital interview 📝

What is tax residency planning?

Your tax residence decides which country can tax your worldwide income. Most countries tax residents on everything they earn, wherever it comes from, and tax non-residents only on income sourced locally. For a mobile professional, that makes residence the single most valuable tax decision you will take, and the one most often left to chance.

Tax residency planning is the deliberate version of that decision. It has three parts: leaving your current country of residence in a way it accepts, becoming resident in a new country in a way you can prove, and keeping evidence so that both positions hold if anyone asks, whether a tax inspector, a bank compliance team or a treaty partner. Done well, it removes the risk of two countries taxing the same income. Done badly, it leaves you resident in a country you thought you had left.

This pillar covers the rules and the method. For the wider picture, including company structures, exit taxes and anti-avoidance rules, read our complete guide to international tax planning.

Is this guide for you?

  • Yes if you are a digital nomad, remote freelancer or online founder who has left, or is about to leave, a country where you were tax resident.
  • Yes if you split your year between two or three countries and are not sure which one can tax you.
  • Yes if a bank or platform has asked you to certify your tax residence and you did not know what to answer.
  • No if you are looking for a way to be tax resident nowhere. That position rarely survives a bank review or a claim from your former country.

How do countries decide that you are tax resident?

There is no international definition of tax residence. Each country writes its own test in domestic law, and most combine several of the criteria below. Meeting any one of them can be enough.

  • Physical presence. A day count over a calendar year, a tax year or a rolling period.
  • A home. A dwelling you keep available and are likely to use, whether you own or rent it.
  • Family. Where your spouse or partner and minor children live.
  • Economic interests. Where your main business, clients, assets or source of income are.
  • Habitual abode. Where you live regularly, normally or customarily.
  • Citizenship. The United States taxes its citizens wherever they live.

How do the main residence tests compare?

The four tests below show how differently countries approach the same question. They are also the ones mobile professionals run into most often when leaving Europe or North America.

Country You are resident if Days that matter Legal basis
United Kingdom You meet an automatic UK test, or you fail the automatic overseas tests and have enough UK ties for your day count 183 days or more: always resident. Fewer than 16 days (if resident in one of the 3 previous tax years) or fewer than 46 days (if not): non-resident. In between: ties decide Finance Act 2013, Schedule 45; HMRC RDR3
United States You are a citizen or green card holder, or you meet the substantial presence test At least 31 days in the year and 183 weighted days over three years (current year in full, one third of last year, one sixth of the year before) Internal Revenue Code; IRS substantial presence test
Spain You spend more than 183 days in Spain in the calendar year, or your main base of activities or economic interests is in Spain More than 183 days, with sporadic absences counted as days in Spain unless you prove residence elsewhere. Presumed resident if your spouse and minor children live in Spain Ley 35/2006 (IRPF), Article 9
Germany You have a dwelling you keep and are likely to use (Wohnsitz), or your habitual abode is in Germany A continuous stay of more than six months creates a habitual abode, short interruptions ignored. Owning or renting a home can be enough on its own Abgabenordnung, §§ 8 and 9

Why is the 183-day rule a myth?

The table shows why "stay under 183 days and you are not resident" is wrong in three out of four cases. In Germany, a flat you keep available can make you resident with far fewer days. In Spain, your economic interests or your family can make you resident even if you spent most of the year abroad. In the UK, if you were resident in any of the previous three tax years, as few as 16 days can be enough when you keep four ties. Our glossary entry on the 183-day rule explains where the number actually comes from: it appears in many tax treaties for employment income and in some domestic day counts, but it is not a universal residence test.

How does the UK statutory residence test work?

The UK statutory residence test runs in three stages. First, the automatic overseas tests: you are non-resident if you spend fewer than 16 days in the UK and were resident in one of the previous three tax years, fewer than 46 days if you were not, or if you work full-time abroad and spend fewer than 91 days in the UK with fewer than 31 days of more than three hours of UK work. Second, the automatic UK tests: 183 days or more, or a UK home without a sufficiently used home abroad, make you resident. Third, if neither applies, the sufficient ties test counts your UK ties against your days.

Days in the UK in the tax year Ties needed if UK resident in 1 of the 3 previous years Ties needed if not UK resident in any of the 3 previous years
Fewer than 16 Always non-resident Always non-resident
16 to 45 4 Always non-resident
46 to 90 3 4
91 to 120 2 3
More than 120 1 2

The ties are family, accommodation, work and the 90-day tie, plus a country tie for people who were resident in the previous three years. Leavers therefore face a stricter table than arrivers, which is exactly the trap for nomads who keep returning to the UK between trips.

How does the US substantial presence test work?

A non-citizen becomes US tax resident under the substantial presence test after at least 31 days in the year and a weighted total of 183 days across three years: every day of the current year, one third of the days of the previous year and one sixth of the days of the year before. Spending 120 days a year in the US every year gives 120 + 40 + 20 = 180 weighted days, just below the line. US citizens are a separate case: they remain taxable on worldwide income wherever they live, under citizenship-based taxation.

What happens when two countries both claim you?

Because each country applies its own test, you can be resident in two countries at once. A Spanish home and 200 days in Germany is enough. When that happens, the double tax treaty between the two countries, if there is one, decides where you are resident for treaty purposes. HMRC summarises the usual tie-breaker order, which follows the OECD model. You stop at the first test that gives an answer:

  1. Permanent home. Accommodation always available for your personal use. If you have one in only one country, that country wins.
  2. Centre of vital interests. If you have a permanent home in both, or in neither, the country with your stronger personal and economic links wins.
  3. Habitual abode. Where you live regularly, normally or customarily.
  4. Nationality. Generally, the country of which you are a national.

Treaties differ, so always read the article in the specific treaty. The tie-breaker only works if a treaty exists: if your two countries have none, you can be taxed as a full resident in both, with only unilateral relief, if any. Once you know which country wins, you claim treaty relief in the other, usually with a certificate of tax residence from the winning country. A person in this position is often called a dual resident.

How do you break your old tax residence cleanly?

Leaving is where most residence plans fail. Your former country does not need to prove that you live there: it only needs one of its own tests to remain met. Before you leave, work through this list.

  • Remove the home. Sell, let on a long lease or give up the rental. A home kept available is the strongest single tie in most countries and the first tie-breaker test.
  • Move the centre of your life. Family, main bank, health insurance, car, club memberships. In Spain, a spouse and minor children who stay behind create a presumption that you are still resident.
  • Deregister where registration exists. In Germany or Spain, keeping your local registration does not decide residence on its own, but it is the first thing a tax office checks.
  • Check trailing rules. Spain keeps its nationals who move to a listed tax haven as taxpayers for the year of the move and the next four years. The UK can tax certain income and gains on your return if you were resident for four of the seven years before leaving and come back within five years.
  • Check exit taxes. Germany taxes unrealised gains on shareholdings of at least 1% when a person resident for at least seven of the last twelve years leaves. Our exit tax explainer lists the main triggers.
  • File the departure year correctly. Some countries split the year of departure into a resident part and a non-resident part. The UK calls this split-year treatment and applies it only in defined cases.

For a country-by-country view of which countries keep a claim on you after you go, read why leaving does not always end your tax residency.

How do you establish a new residence that holds?

Becoming resident somewhere is the other half of the plan. A residence that exists only on paper does not protect you from your former country, and it will not satisfy a bank.

  1. Meet the domestic test on purpose. Know exactly which test you rely on, whether days, a home or registration, and plan your calendar around it.
  2. Hold the right visa or permit. A digital nomad visa lets you live and work remotely in a country, but it does not always make you tax resident. Check both questions separately.
  3. Register with the tax authority. Get a tax identification number and file a return for your first year, even if little or no tax is due.
  4. Request a certificate of tax residence as soon as you are eligible. It is the document banks, clients and foreign tax offices ask for.
  5. Update your banks and platforms. Self-certify your new residence for the Common Reporting Standard, so your accounts are reported to the right country.

Example – Sophie, 31, British freelance UX designer on the road

Sophie was UK resident until she left London in April 2025. Since then she has worked for European clients from Lisbon, Tbilisi and Bali, never staying anywhere long enough to become resident. Her parents live in Manchester and she stays with them between trips.

For the 2026-27 UK tax year she plans 40 days in the UK. Because she was UK resident in one of the previous three tax years, the first automatic overseas test needs fewer than 16 days, so it does not apply. She has no UK home of her own and does not work full-time abroad under the test's definition, so she moves to the sufficient ties test.

At 40 days she falls in the 16 to 45 band: she is UK resident only with 4 ties. She has no family tie and no work tie, but she may have an accommodation tie through her parents' home, a 90-day tie from the previous years, and a country tie, because with no other residence the UK can be the country where she spends the most days. That is up to 3 ties: non-resident.

If she stretches her visits to 50 days, she moves into the 46 to 90 band, where 3 ties are enough. The same life, ten more days, and the UK taxes her worldwide freelance income for the year.

Her fix: become resident in Portugal, which removes the country-tie risk, keep a day log, and cap UK visits at 45 days until her ties fall away.

Sophie was ten days away from UK residence. Where do you stand?

Get your days, ties and new residence checked before the tax year closes.

Check my tax residency →

Can you be tax resident nowhere?

In theory, yes: if you never meet any country's test, no country taxes you as a resident. In practice, three things go wrong. Your former country may still treat you as resident because one of its tests remains met. Banks and payment platforms must collect a tax residence under the Common Reporting Standard and treat "none" as a red flag. And without a residence you cannot get a certificate of tax residence, so you lose treaty relief. Our analysis of the perpetual traveller model covers the risks in detail.

What evidence should your residence file contain?

Tax authorities decide residence on facts, and the person with the better file usually wins. Keep these records for every tax year, for as long as your old country can reopen it.

Evidence Proves Where to get it
Day log with flights, boarding passes and card payments Physical presence in each country Airline accounts, bank statements, a travel log app
Lease or property deed in the new country A permanent home Landlord or notary
Termination of lease or sale of the old home No permanent home left behind Former landlord, notary, buyer
Local registration and residence permit Legal residence in the new country Municipality, immigration office
Certificate of tax residence Residence recognised by the new tax authority Tax authority of the new country
Tax returns filed in the new country Active tax relationship Tax authority portal
Deregistration and final return in the old country Departure date accepted by the old country Old municipality and tax authority

How do the other Heavnn guides fit into your residency plan?

Common mistakes (and what they cost)

  • Counting only days → a home, a spouse or a business left behind keeps you resident, and your old country taxes your worldwide income for the year, with interest and penalties.
  • Keeping the old flat "just in case" → you hand your former country the first tie-breaker test, permanent home, even if you spend most of the year elsewhere.
  • Leaving without arriving → with no new residence, no treaty protects you, banks restrict your accounts and your former country has no competitor for the claim.
  • Confusing a visa with tax residence → a nomad visa lets you stay, but it does not always make you resident, and a certificate of residence may be refused.
  • Ignoring trailing rules → a Spanish national moving to a listed tax haven can remain taxable in Spain for five tax periods, and a UK leaver returning within five years can be taxed on certain income received abroad.
  • Keeping no records → in a dispute, you cannot prove your days or your departure date, and the tax office's version stands.

Frequently asked questions

What is tax residency planning?

Tax residency planning is choosing the country that will tax you as a resident, meeting its test deliberately, breaking your previous residence in a way that country accepts, and keeping evidence that both positions are true.

Is it true that you are not tax resident if you spend fewer than 183 days in a country?

No. Many countries also look at your home, family or economic interests. Germany can treat you as resident because of a dwelling you keep, Spain because your economic interests or family are there, and the UK can make you resident with as few as 16 days if you keep enough ties.

Can I be tax resident in two countries at the same time?

Yes. Each country applies its own domestic test. If a tax treaty exists between them, its tie-breaker decides where you are resident for treaty purposes: permanent home, then centre of vital interests, then habitual abode, then nationality.

How many days can I spend in the UK without becoming tax resident?

Fewer than 16 days is always safe if you were UK resident in one of the previous three tax years, and fewer than 46 days if you were not. Between those limits and 183 days, the number of UK ties you have decides.

Does a digital nomad visa make me tax resident?

Not automatically. A visa gives you the right to stay and work remotely, while tax residence depends on the country's tax test. Check both separately and ask the tax authority for a certificate of tax residence once you qualify.

What documents prove my tax residence?

A certificate of tax residence from the tax authority is the main document. Support it with a lease or deed, local registration, tax returns filed in that country, and a day log backed by travel and payment records.

Sources

Leaving one country, arriving in another?

Get your residence plan checked so your old country lets go and your new one recognises you.

Start with Heavnn →
About the author
Heavnn

Heavnn

Heavnn is a borderless tax technology solution supporting the future of work. We assist international remote workers with the design and implementation of their global tax setups.

Welcome to Heavnn University!

Access all of our learning resources, blogs, and articles for digital nomads, remote workers, and distributed teams right here on Heavnn University. For more tailored advice, take our digital interview below!

Design Your Global Remote Setup
Heavnn University

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Heavnn University.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.