Tax Residency: How Countries Decide Where You Pay Tax

Tax residency is the status that lets a country tax you as one of its own, usually on everything you earn, wherever it comes from. Each country writes its own test, and it rarely depends on your passport or your visa. Most use a day count plus a look at where your home, family and business are.

Quick summary

  • A tax resident is usually taxed on worldwide income, while a non-resident pays only on income from sources in that country.
  • 183 days is the most common day test, but Cyprus can make you resident with 60 days, the UAE with 90 and Switzerland after a 30-day stay while working.
  • A home, your family or your main business can make you resident with no day minimum at all, as in Portugal and Spain.
  • When 2 countries both claim you, a tax treaty decides in a fixed order: permanent home, center of vital interests, habitual abode, then nationality.
  • The US taxes its citizens and green card holders on worldwide income wherever they live; everyone else is resident wherever a country's own day, home or ties test catches them.
  • Spending under 183 days everywhere does not make you tax-free: the country you left usually keeps you as a resident until you cut your ties.

What tax residency means

Tax residency is a country's claim on you as a taxpayer. In most countries a resident pays income tax on income from anywhere in the world, while a non-resident pays only on income that comes from inside the country. The OECD Model Tax Convention, the template most tax treaties follow, defines a resident as a person liable to tax under a country's law because of domicile, residence or a similar test, and it leaves out anyone taxed there only on local income (Article 4(1)).

Every country writes its own test, so you work out your residency country by country. It is often confused with 3 other things:

  • Citizenship. Your passport rarely matters for income tax. The United States is the main exception, covered below.
  • A visa or residence permit. A permit decides how long you may stay; the tax test decides whether you are taxed as a resident.
  • Domicile. Some tax systems also use domicile, the country you treat as your permanent home, a separate idea that can stay with you long after you move.

Why your tax residency sets your tax bill

Once you are resident, the country's tax system decides how much of your income it reaches. Under worldwide taxation a resident is taxed on everything; under a territorial system, only on income from local sources; under a remittance system, on foreign income only when it is brought into the country. For taxes as a digital nomad this comes first: whether your client income is taxed depends on where you are resident, then on where that country says the income comes from.

The 4 tax systems and what residency switches on (Nomad Tax Index data)

SystemWhat a resident is taxed onExamples in the Index
WorldwideIncome from anywhere in the worldPortugal, Spain, United Kingdom, Cyprus, Switzerland
TerritorialIncome from sources inside the countryGeorgia, Panama, Paraguay, Malaysia
RemittanceLocal income, plus foreign income brought into the countryThailand, Mauritius
No personal income taxNo income tax, whatever your residencyUAE, Bahamas, Cayman Islands, Monaco

Thailand shows how much the system matters: you become resident at 180 days in the tax year, and foreign income a resident earns from 2024 onward is taxed only when it is brought into Thailand (Revenue Department, Guide to P.N.D. 90). In a country with no personal income tax, such as the UAE, residency still matters: it gets you a tax residency certificate to claim treaty benefits (Cabinet Decision No. 85 of 2022, article 5), while the country you left decides under its own tests whether you are gone.

How countries decide you are tax resident

Most countries use more than 1 test, and meeting any one of them is enough. The tests fall into 4 families.

Days in the country

The most common test counts the days you spend in the country. The 183-day rule, roughly half a year, is the usual line, but the wording varies. Ireland makes you resident at 183 days or more in a tax year, or at 280 days across the current and previous year together, but never in a year with 30 days or fewer in Ireland (Revenue). Spain needs more than 183 days in the calendar year (LIRPF, article 9).

A home in the country

Some countries look at whether you keep a home there, whatever the day count. Portugal treats you as resident with fewer than 183 days if, on any day of the period, you have a home you appear to intend to keep as your habitual residence (CIRS, article 16). The UK makes you automatically resident if your only home was in the UK for 91 days or more in a row and you used it on at least 30 days of the tax year (GOV.UK).

Your family and your business

Spain also makes you resident if the main base of your activities or economic interests is in Spain, and it presumes you are resident if your spouse and dependent minor children live there, unless you prove otherwise (LIRPF, article 9). Tax treaties use a similar idea, the center of vital interests: the country where your personal and economic ties are closest.

Fewer than 183 days: Cyprus, the UAE, Switzerland and Paraguay

A few countries pair a short stay with a home, a permit or a business. Cyprus makes you resident with 60 days if you also keep an owned or rented home there, and run a business in Cyprus, work in Cyprus or hold a directorship in a Cyprus tax-resident company without ending that tie during the year, and spend no more than 183 days in any other single country. Since January 1, 2026 it no longer asks whether you are resident elsewhere (PwC, Cyprus residence).

The UAE makes a residence permit holder resident with 90 days in any 12 consecutive months, with a permanent home, a job or a business there (Cabinet Decision No. 85 of 2022, article 4). Switzerland taxes you as resident with a stay of at least 30 days while working, or at least 90 days without working (DBG, article 3). Paraguay's tax law presumes you live there habitually after more than 120 days (Law 125/1991, article 152).

Days in the country that can make you tax residentMain day-count test in each law, per tax year or 12-month window. Highlighted: the routes under half a year, most of which add a home, a permit or local work.
  1. Switzerland (while working)30 days
  2. Cyprus (60-day rule)60 days
  3. UAE (residence permit holders)90 days
  4. Paraguay120 days
  5. Thailand180 days
  6. Malaysia182 days
  7. Georgia183 days
  8. Portugal183 days
  9. Spain183 days
  10. United Kingdom183 days
  11. Panama183 days
  12. Argentina (temporary permit holders)365 days

Source: Nomad Tax Index data: each country's statute or tax authority, linked on its country page Portugal, Spain and Panama say more than 183 days and Paraguay more than 120, so days 184 and 121 are the ones that count. Argentina makes temporary permit holders resident from their 13th month. The UK's sufficient ties test can make you resident from 16 days (46 if you were not UK resident in the previous 3 tax years), and Malaysia counts 90 days for someone resident, or present 90 days or more, in 3 of the 4 previous years.

Show the numbers
Days
Switzerland (while working)30 days
Cyprus (60-day rule)60 days
UAE (residence permit holders)90 days
Paraguay120 days
Thailand180 days
Malaysia182 days
Georgia183 days
Portugal183 days
Spain183 days
United Kingdom183 days
Panama183 days
Argentina (temporary permit holders)365 days

How the days are counted

The same number can be counted in different ways, and counting days for tax residency correctly turns on 3 questions:

  • Which period. Spain counts the calendar year. Portugal counts any 12-month period that starts or ends in the year, and the UAE any 12 consecutive months. The UK counts its own tax year, April 6 to April 5.
  • What counts as a day. Ireland counts any part of a day spent in the country (Revenue), and the US counts a day if you were there at any time during it (IRS). Cyprus counts the day you arrive but not the day you leave (PwC).
  • Which days are left out. Some days never count, such as US transit stops of under 24 hours between 2 places outside the country (IRS, substantial presence test).

Under 183 days is not a safe harbor

A day count is only 1 of the tests, and you are non-resident only when you fail all of them. You can spend 150 days in Portugal and still be resident because you kept an apartment there as your home, or 100 days in Spain and be resident because your spouse and children live in Madrid. The UK goes lower for people who leave: if you were resident there in any of the previous 3 tax years and keep 4 UK ties, 16 days in the tax year can make you resident (Finance Act 2013, Schedule 45, paragraph 18).

Tax resident in 2 countries: how treaties break the tie

Because each country applies its own law, you can be tax resident in 2 countries for the same year: Portugal through your home, Spain through your days. Without a treaty between them, both can tax you as a resident.

Where a treaty exists, it settles the question with treaty tie-breaker rules applied in a fixed order, and you move to the next test only when the one before gives no answer (OECD Model, Article 4(2)):

  1. Permanent home. You are resident only where you have a permanent home available to you.
  2. Center of vital interests. With a home in both, you are resident where your personal and economic relations are closer.
  3. Habitual abode. If that cannot be decided, or you have a home in neither, you are resident where you habitually live.
  4. Nationality. If you live habitually in both or in neither, you are resident in the country of your nationality.
  5. Mutual agreement. If you are a national of both or of neither, the 2 tax authorities decide between them.

Working out where you are tax resident this year

  • List every country where you spent days this year, kept a home, or have a spouse, children, a job or a business, and put the country you left first.
  • For each country, note its day threshold, the period it counts (calendar year, tax year or any 12 months) and whether part days count.
  • Check each country's home, family and business tests, which can apply with any day count.
  • If 2 countries both claim you, find the treaty between them and run the tie-breaker in order, starting with a permanent home.
  • If no new country claims you, assume the country you left still does until you fail its tests.
  • Ask the country that wins for a tax residence certificate, and keep the day log, leases and registrations that back it.

US citizens: tax residency by passport

The United States taxes its citizens and resident aliens on worldwide income wherever they live (IRS), so for Americans abroad moving changes where else they owe tax, not whether the US taxes them.

Non-citizens become US tax residents through a green card or the substantial presence test: at least 31 days in the current year and 183 days over 3 years, counting every day this year, 1/3 of last year's days and 1/6 of the days from the year before. Visiting for about 122 days every year is enough to pass it.

Visas, permits and tax residency

A visa decides whether you may stay; tax residency decides who taxes you, and the 2 are written by different authorities. Thailand's test is a count of days in the tax year, with no reference to the visa you hold. The Schengen short-stay limit is an immigration count across the Schengen area, while tax residency is counted country by country.

Some permits are part of the tax test itself, as in the UAE, where the 90-day route only works for a residence permit holder (or a UAE or GCC national). Others carry their own tax rule: Croatia exempts what its digital nomads earn from employers not registered in Croatia (Narodne novine 138/2020), so a digital nomad visa can change your tax as well as your right to stay.

How to stop being tax resident in a country

Leaving a country does not end your residency there; failing its tests does. Becoming non-resident for tax means giving up the home, the days and the ties that the old country's law looks at, and being able to show that you did.

In the UK, you are automatically non-resident in a tax year with fewer than 16 days there if you were resident in any of the previous 3 years, or fewer than 46 days if you were not (GOV.UK). You are also automatically non-resident if you work full time abroad, averaging at least 35 hours a week, and spend fewer than 91 days in the UK, working there on no more than 30 of them (GOV.UK). Otherwise, between those lines and 183 days, your ties to the UK decide, unless your only home is in the UK or you work full time there.

Proving your tax residency

The usual proof is a tax residence certificate from the tax authority of the country where you are resident. It is what a foreign tax office or payer asks for before applying a treaty.

Banks ask too. Under the Common Reporting Standard, a bank must collect your self-certified country of tax residence when you open an account (HMRC, IEIM403140), and the account is reported according to that answer.

Tax resident nowhere: the perpetual traveler question

Some nomads plan to stay under every country's threshold and be resident nowhere, the perpetual traveler approach. The day counts can work, as in the year below, but the country you left keeps applying its own tests until you fail them, and with no new residence you have no certificate to give a bank or to claim a treaty with.

A sample year: 365 days across 4 places, no home kept
Portugal, short-term rentalsUnder 183 days and no home kept: non-resident150 days
Thailand, on a long-stay visaUnder 180 days: non-resident120 days
GeorgiaUnder 183 days in any 12 months: non-resident60 days
Flights and short stays elsewhereToo short for the day tests in the countries visited35 days
ResultResident in none of the 4; the country you left decides whether you ever stopped being resident there

Day tests from the Index data. The result assumes no home, family or business in any of the 4 places.

How to choose a low-tax residency

Because residency decides which system applies to you, it is the main lever for paying less tax legally: moving it to a territorial country, a country with no income tax, or a country with a regime for new residents, and then living by that country's rules. Georgia and Paraguay both tax mainly local income, but Georgia's day test is 183 days in any 12 months and Paraguay's more than 120, so working out which of the 2 costs you less turns on where you can spend the days as much as on the rates.

An offshore company leaves your own residency where it was, so you are still taxed where you live on what you take out of it. Under the OECD Model, a company resident in 2 countries has its treaty residence settled by the 2 tax authorities by mutual agreement, looking at its place of effective management, where it was incorporated and other factors, and without agreement it gets no treaty relief (OECD Model, Article 4(3)). Many older treaties still use the place of effective management alone, and that can be the country where you sit and run it.

David's note

I would pick your residency by how it taxes the income you actually earn, not by its headline rate. A territorial country usually still taxes work you do while living there, so for a freelancer it often means a low rate rather than no tax, and a no-tax country can cost more in rent and permits than it saves on a modest income. Choose the country you will live in, meet its test with a margin of days and ties, and form any company after that.

Sources

  1. OECD: Model Tax Convention on Income and on Capital, condensed version 2017 (Article 4)oecd.org, checked
  2. IRS: U.S. citizens and resident aliens abroadirs.gov, checked
  3. IRS: Substantial presence testirs.gov, checked
  4. IRS: Alien residency, green card testirs.gov, checked
  5. GOV.UK: Tax on foreign income, residencegov.uk, checked
  6. HMRC: Guidance note for the Statutory Residence Test (RDR3)gov.uk, checked
  7. legislation.gov.uk: Finance Act 2013, Schedule 45, paragraph 18 (UK sufficient ties)legislation.gov.uk, checked
  8. Revenue (Ireland): Resident for tax purposesrevenue.ie, checked
  9. BOE: Ley 35/2006 del IRPF, article 9 (Spain)boe.es, checked
  10. Portal das Finanças: Código do IRS, article 16 (Portugal)info.portaldasfinancas.gov.pt, checked
  11. PwC Worldwide Tax Summaries: Cyprus, individual residencetaxsummaries.pwc.com, checked
  12. UAE Federal Tax Authority: Cabinet Decision No. 85 of 2022 (unofficial translation)tax.gov.ae, checked
  13. Fedlex: Bundesgesetz über die direkte Bundessteuer (DBG), article 3 (Switzerland)fedlex.admin.ch, checked
  14. DNIT: Ley 125/1991, article 152 (Paraguay)dnit.gov.py, checked
  15. Thailand Revenue Department: Guide to P.N.D. 90rd.go.th, checked
  16. HASiL (Inland Revenue Board of Malaysia): Residence status, Income Tax Act 1967 section 7hasil.gov.my, checked
  17. HMRC: IEIM403140, new individual accounts, self-certificationsgov.uk, checked
  18. Narodne novine 138/2020: Act amending the Income Tax Act, article 9(1) point 26 (Croatia)narodne-novine.nn.hr, checked

Frequently asked questions

What does it mean to be a tax resident?

A country treats you as one of its taxpayers under its own law, usually because of your days, home or ties there. A resident usually pays tax on worldwide income, a non-resident only on income from sources in that country.

How do I know which country I am tax resident in?

Test each country where you spent time or keep a home, starting with the one you left, against its own day, home and ties rules. If 2 countries both claim you, the tie-breaker in the treaty between them decides.

Does a residence permit or digital nomad visa make you tax resident?

Not by itself. Tax residency follows the tax test, usually days, a home or ties, not the permit. Some countries build the permit into the test, such as the UAE's 90-day route, which applies to residence permit holders (and UAE or GCC nationals) with a home, job or business there.

How many days do you need to be tax resident?

Usually 183 days, or more than 183, in the tax year or a 12-month window. With an extra tie some countries need fewer: 60 days in Cyprus, 90 in the UAE and a 30-day stay in Switzerland while working.

Is tax residency based on citizenship?

Rarely. The United States is the main exception: it taxes its citizens on worldwide income wherever they live. Everywhere else, residency comes from each country's own tests, usually days, a home or family and business ties, so a passport alone neither makes you resident nor ends your residency.

David Sisvadze

CEO at Nomad Tax Map

David brings 13+ years of experience, including 6 years with the Revenue Service of Georgia and 7 years managing private-sector import operations. He has a strong background in customs, imports, exports, and cross-border logistics.