Tax Residency Rules by Country: Days, Home and Special Tests

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

Quick answer

There is no global 183-day rule. Each country runs its own residency test: some count days, some look at your home or the centre of your life, and several use both, so you can be resident with far fewer than 183 days or nowhere near resident with more. Compare the tests of every country you spend time in, then check which one wins under the tax treaty.

This page puts the domestic residency rules of ten common nomad destinations and home countries side by side, with the day thresholds, the non-day tests and the special rules that catch people out. It ends with a checklist you can run before each new year on the road.

Who this is for

If you want the bigger picture of who can tax a nomad (residence, source, citizenship), start with our guide to digital nomad taxes. This page is the reference table behind it.

How do countries decide who is tax resident?

Almost every country uses some mix of three tests:

Meeting any one test is usually enough. That is the part most people miss: staying under the day threshold does not help if the home or family test still points to that country. Our 183-day rule explainer covers why the number is a myth as a universal rule.

Tax residency rules by country: comparison table

Domestic rules only. Where two countries both claim you, the treaty tie-breaker decides (see the next section).

CountryDay thresholdNon-day testsSpecial rules to watch
United Kingdom183 days or more in the tax year = automatically residentHome test; full-time UK work test; sufficient ties testCan be resident with as few as 16 days if you have enough UK ties
SpainMore than 183 days in the calendar yearMain base of activities or economic interests in SpainSporadic absences count as Spanish days unless you prove residence elsewhere; presumed resident if your spouse and minor children live in Spain
PortugalMore than 183 days in any 12-month period starting or ending in the tax yearA home held in conditions suggesting you intend to keep it as your habitual residenceAny day that includes an overnight stay counts
GermanyContinuous stay of more than six monthsA dwelling you keep and use (Wohnsitz)Short breaks do not reset the six months; a pure holiday stay of up to one year is excluded
FranceNo fixed day countHome or main place of stay; main professional activity; centre of economic interestsAny one of the three criteria is enough
ItalyMore than 183 days in the tax yearResidence (habitual home) or domicile (main centre of personal and family ties)Registry presumption; citizens moving to tax havens are presumed resident unless they prove otherwise
Cyprus183-day rule, or 60-day ruleFor the 60-day rule: a business, job or directorship with a Cyprus company and a home in Cyprus60-day rule fails if you spend more than 183 days in any other single state; since 1 January 2026, being tax resident elsewhere no longer blocks it
United Arab Emirates183 days in any consecutive 12 months, or 90 days with conditionsUsual place of residence and centre of financial and personal interests90-day test needs a UAE or GCC nationality or UAE residence permit, plus a permanent home or work in the UAE
Thailand180 days or more in the calendar yearNone in the domestic definitionDays from separate stays add up; the count restarts each calendar year
United StatesSubstantial presence: 31 days this year and 183 weighted days over three yearsGreen card testCitizens are taxed wherever they live

Not in the table yet: Georgia, Greece, Croatia, Mexico, Malta and other popular bases. Their tests follow the same pattern (a day count plus a home or interests test), but check the current rule for your exact dates. Our tax residency simulator handles any combination of up to four countries.

What are the special tests in each country?

United Kingdom: the Statutory Residence Test

HMRC's guidance sets three layers. First, the automatic overseas tests: you are non-resident if you were UK resident in one of the three previous tax years and spend fewer than 16 days in the UK, or fewer than 46 days if you were not resident in any of them. A third overseas test covers full-time work abroad with fewer than 91 days in the UK and fewer than 31 days on which you work more than three hours there. Second, the automatic UK tests: 183 days or more, a UK home test, or full-time UK work. Third, if nothing above decides it, the sufficient ties test.

The ties are family, accommodation, work, 90-day and, for people resident in one of the previous three years, country. A leaver who spends 16 to 45 days in the UK becomes resident with four ties; with more than 120 days, one tie is enough. UK contractors should also read our page on working abroad as a UK contractor.

Spain: days, economic interests and family

Article 9 of the Spanish income tax law (LIRPF) gives two alternative tests: more than 183 days in Spain in the calendar year, or your main base of activities or economic interests in Spain. Sporadic absences count towards the 183 days unless you prove tax residence elsewhere, and for tax havens the tax agency can ask you to prove 183 days there. Residence is also presumed if your non-separated spouse and dependent minor children live in Spain.

Portugal: rolling 12 months and the home test

Article 16 of the Portuguese personal income tax code (CIRS) uses more than 183 days in any 12-month period that starts or ends in the tax year. A partial day with an overnight stay counts. With fewer days, you can still be resident if you hold a home in conditions that suggest you intend to keep it as your habitual residence. A long lease signed "just in case" can be that home.

Germany: Wohnsitz and six months

Section 8 of the German Fiscal Code (AO) makes you resident where you have a dwelling you keep and use. Section 9 adds habitual abode: a continuous stay of more than six months, with short interruptions ignored. A flat kept in Berlin while you travel can keep you resident even with very few days there.

France, Italy, Cyprus, the UAE, Thailand and the US

France has no day count: home or main place of stay, main professional activity, or centre of economic interests, any one is enough. Italy, after Legislative Decree 209/2023, looks at physical presence, residence and domicile (now the centre of personal and family ties) for more than 183 days of the year, and keeps a registry presumption. Cyprus offers the 60-day rule for people who build real ties there: at least 60 days, a Cyprus business, job or directorship, and a home kept for the whole year. The UAE, under Cabinet Decision No. 85 of 2022, adds a 90-day route for permit holders. Thailand uses 180 days in the calendar year. The US applies the substantial presence test to non-citizens and taxes its citizens anywhere; see our US expat tax services page.

What happens when two countries both claim you?

If two countries treat you as resident under their own rules and they have a tax treaty based on the OECD Model, the tie-breaker applies in order: permanent home, then centre of vital interests, then habitual abode, then nationality, and finally agreement between the tax authorities. Our tie-breaker rule guide walks through each step.

The tie-breaker only settles cases where both countries claim you. It cannot create residency where no country claims you, and many nomad destinations have no treaty with your home country. Not being resident anywhere is a fragile position, explained in our page on perpetual traveler tax.

Worked example: 365 days across four countries

Maya is a British freelance designer. She was UK resident until March 2026 and plans her next 12 months, January to December 2027:

CountryDaysOther factsResult under domestic rules
Portugal15012-month lease on a flat in LisbonLikely resident through the home test, despite fewer than 183 days
Spain120No clients or assets in SpainNot resident: fewer than 183 days, no economic centre
Thailand60Short stayNot resident: fewer than 180 days
United Kingdom35Stays with her parents; a UK clientDepends on ties: with 16 to 45 days, she needs four ties to be resident

The UK is the real risk. With 35 days she does not meet the 16-day automatic overseas test, so the ties test decides, and as a recent leaver she needs four ties. Her parents' house can give her an accommodation tie if it is available to her for at least 91 days in a row and she spends 16 or more nights there. She likely has a 90-day tie, because she spent more than 90 days in the UK in the 2025-26 tax year. She has no family tie (parents do not count, only a partner or minor children), no work tie (that needs at least 40 days with more than three hours of UK work) and no country tie (she spends more days in Portugal). Two ties: not UK resident. But if her UK stays grow to 46 days or more, three ties are enough, and a few more client days in London could add the work tie. Run the test for each UK tax year (6 April to 5 April), not the calendar year. In Portugal, the lease points to residence; if both countries ever claim her, the treaty tie-breaker starts with the permanent home, which favours Portugal.

Count your own days with the days-in-country calculator, then run the result through the simulator.

Tax residency planning checklist

  1. List every country where you will spend time in the next 12 months, with planned days.
  2. For each, note the counting period: calendar year, local tax year or rolling 12 months.
  3. Check how days are counted (overnight stays, partial days, sporadic absences).
  4. List every home you keep available, including leases and family homes you use.
  5. Note where your spouse, partner and children live.
  6. Note where your clients, company and main assets are.
  7. For your former home country, check the leaver rules (UK ties, Italian registry, German dwelling).
  8. Pick the country you want to be resident in and make sure at least one of its tests is clearly met.
  9. Check the treaty between your target country and every other country that could claim you.
  10. Keep proof: travel records, lease, residence certificate, tax return filed in your new country.

Common mistakes

Frequently asked questions

Is 183 days the rule everywhere?

No. Many countries use a threshold around 183 days, but Thailand uses 180, Germany looks at more than six months, the UAE has a 90-day route, and France has no day count at all. Home, family and economic tests apply on top.

Can I be tax resident in two countries at once?

Yes, under domestic law. If both countries have a treaty, the tie-breaker decides which one gets primary taxing rights, starting with where you have a permanent home.

Can I avoid tax residency by never staying 183 days anywhere?

Not reliably. Your former country may keep you resident through a home, family or ties, and having no residence makes banking and treaty access harder. Pick a base and meet its test clearly.

Does a digital nomad visa make me tax resident?

Not automatically. Tax residency follows the tax tests in the table, not the visa type, although the days you spend on the visa count. See our digital nomad visa glossary entry.

Which country decides if I am non-resident?

Each country decides only for itself. Being non-resident in the UK says nothing about Portugal or Spain, so check every country on your list separately.

Sources

General information, not tax or legal advice. Rules checked against the sources above on 23 November 2026.

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.