The short answer
Tax residency is decided by each country's own domestic law, and the 183-day count is the most visible test, not the deciding one. You can spend under 183 days in a country and still be tax resident there, because most systems also test where your home, your family and your economic life sit. That is how digital nomad tax residency works in practice: days are checked first, ties are checked second, and ties are what catch people.
The 183-day figure gets repeated because it is easy to count, and it is the part of the test you have least trouble passing. Our treatment of filing, treaties and exit planning lives in our guide to where nomads actually owe tax; this piece is only about how the status is decided.
What tax residency actually is
Tax residency is the status that decides which country taxes your worldwide income rather than only the income arising inside its borders. It is a question of tax law, decided by a tax authority, and distinct from citizenship, immigration status, and where you bank or incorporate.
The consequence is scope. A resident is typically taxed on income from everywhere; a non-resident, only on income with a local source. The Portuguese tax authority states it plainly: residents "typically pay tax on all their income, whether from Portugal or abroad", while non-residents pay only on Portuguese-source income. Rates vary enormously, and we keep country-by-country tax rates separately.
The day count: 183 is a convention, not a rule
Roughly half a year is the common threshold. Almost nothing else about the counting is common.
According to Spain's Agencia Tributaria, you are resident when you remain in Spanish territory for more than 183 days during the calendar year, and the agency is explicit that "temporary absences will not be discounted when determining the period of stay." A fortnight in Morocco resets nothing.
Portugal uses a different window. The Portuguese tax authority's guidance says you are tax resident if you stayed more than 183 days, "consecutive or interrupted, in any 12-month period, beginning or ending in the tax year in question" — rolling, not calendar. Two stays of 100 days either side of New Year can cross that line even though neither calendar year did.
Australia measures a third period again. The ATO applies its 183-day test to the income year, 1 July to 30 June, and notes that "for administrative ease, presence in Australia for part of a day counts as a whole day." The UK counts in the opposite direction: HMRC's guidance states that an individual "is considered to have spent a day in the UK if they are here at the end of the day (midnight)." A dawn arrival and an evening departure is zero days in the UK and a whole day in Australia. HMRC also operates a deeming rule under which certain days count even when you were not present at midnight.
Six systems compared, as of October 2026.
| Country | Day threshold | Counting basis | Overrides | Source |
|---|---|---|---|---|
| UK | 183 days | Tax year from 6 April; midnight presence | Overseas tests; sufficient ties; home test | HMRC |
| US | 31 days, plus 183 weighted over three years | Calendar year; part days count | Citizenship; closer connection | IRS |
| Spain | Over 183 days | Calendar year; absences not deducted | Economic interests; family | Agencia Tributaria |
| Portugal | Over 183 days | Any rolling 12 months | Home kept as habitual residence | Portuguese tax authority |
| Canada | 183 days (deemed) | Calendar year | Home, spouse, dependants | CRA |
| Australia | 183 days | Income year from 1 July; part days count | Resides test; domicile test | ATO |
The tests that override the day count
Most systems have a second route to residency that runs on ties rather than time.
Canada is the cleanest illustration. The CRA states that the most important consideration is whether you maintain significant residential ties with Canada, and lists them as a home in Canada, a spouse or common-law partner in Canada, and dependants in Canada. The 183-day rule is the fallback, used to make someone a deemed resident when they have not established significant ties.
Spain adds a test with no day count in it at all. The Agencia Tributaria treats you as resident if the main core or base of your activities or economic interests is in Spain, directly or indirectly, even where you spend under 183 days there. It also applies a rebuttable presumption: where a non-separated spouse and dependent minor children habitually reside in Spain, you are presumed to have your habitual residence there too.
Portugal's second limb is property: its tax authority says a shorter stay still makes you resident if you keep a home there showing an intention to occupy it as your habitual residence. Australia's resides test, which the ATO calls its "primary test", is not a count either.
The pattern: a permanent home available to you, your family's location, and where your economic life is centred will beat a clean calendar.
The UK test, worked through
The UK Statutory Residence Test is the most explicit tie-based system any major tax authority publishes, a useful model even with no UK connection.
According to HMRC's RDR3 guidance it runs in three stages. First, the automatic overseas tests, any one of which makes you non-resident: fewer than 16 days in the UK if you were UK resident in any of the previous three tax years; fewer than 46 days if you were not; or full-time overseas work with fewer than 91 UK days and fewer than 31 days working more than three hours in the UK.
Second, the automatic UK tests. HMRC's first is the familiar one — UK resident at 183 days or more. The second is a home test with no half-year in it: a UK home held for at least 91 consecutive days, at least 30 of which fall in the tax year, where HMRC also requires that you are present in that home on at least 30 days in the tax year and that you have no overseas home you are present in on 30 days or more.
Third, the sufficient ties test. HMRC's own framing is the line worth memorising: "the more UK ties you have, the fewer days you can spend here before you become UK resident." The ties are family, accommodation, work and the 90-day tie, plus a country tie for people previously UK resident. HMRC's table then requires a previous UK resident to have four ties at 16 to 45 days, three at 46 to 90, two at 91 to 120, and one above 120.
So a previously UK resident person with a single UK tie becomes UK resident at 121 days — 62 days short of 183.
The US: substantial presence, and the citizenship override
The American system has two layers, and nomads learn the wrong one first.
The layer for non-citizens is the substantial presence test. Per the IRS, you are treated as a US resident for tax purposes if you are physically present in the United States at least 31 days during the current year and 183 days across a three-year period, counting all days in the current year, one third of the days in the first preceding year, and one sixth in the second preceding year. The IRS works its own example: 120 days in each of 2023, 2024 and 2025 gives 120 plus 40 plus 20, or 180 days, which does not meet the test for 2025. On that weighting, a repeated annual pattern crosses the threshold at roughly 122 days a year rather than 183.
The second layer overrides all of it. The IRS states that if you are a US citizen or resident alien living outside the United States, your worldwide income is subject to US income tax regardless of where you live. Reliefs such as the foreign earned income exclusion and the foreign tax credit exist, the IRS notes, but can only be claimed by filing a US return.
Domicile: the stickier idea underneath residency
Residency describes where you are. Domicile describes where you belong, and it is harder to shed.
Ireland runs the two side by side. Revenue sets Irish residence at 183 days in a tax year or 280 days across the current and preceding year combined, with a floor: 30 days or fewer in a year and you are not resident for that year. Above that sits ordinary residence, which Revenue says is established after three consecutive resident years and ceases only after three consecutive non-resident years. Domicile sits above both — Revenue describes it as a general-law concept referring to the country of your permanent home, acquired at birth and replaceable only on strong evidence of intent to settle elsewhere permanently.
The UK has just gone the other way, and most writing on this topic has not caught up. According to HM Revenue and Customs, from 6 April 2025 the remittance basis was abolished and domicile was removed as a relevant connecting factor in the UK tax system, replaced by a system based on tax residence. HMRC's technical note states that from that date all UK residents are taxed on the arising basis on their worldwide income and gains, with a four-year foreign income and gains regime for people who become UK resident after ten tax years of non-UK residence. If something tells you to manage your UK position through domicile, check its date.
Domicile still drives US state tax residency. New York's tax department states that a New York domicile "does not change until you can demonstrate that you have abandoned" it and established one elsewhere — separate from its statutory test of a permanent place of abode plus 184 days, and separate again from leaving the country.
Why two countries can claim you in the same year
Each country writes its own test, so two can both return yes. This is ordinary, not an error: seven months in Spain while keeping a family home in Ireland can satisfy the Spanish calendar-year count and the Irish 280-day count in the same period.
The resolution mechanism is the tie-breaker article in a bilateral tax treaty. The OECD Model Tax Convention, on which most bilateral treaties are modelled, sets a strict sequence in Article 4(2): the state where you have a permanent home available to you; if you have one in both, the state with which your personal and economic relations are closer, known as the centre of vital interests; then habitual abode, which is also where the test goes if you have a permanent home in neither; then nationality; and finally agreement between the two tax authorities. Treaty tie-breaker rules deserve their own treatment and we will cover them separately.
Note the order. Days do not appear until the third step, and even then as "habitual abode" rather than a number.
Under 183 days everywhere does not make you resident nowhere
The common plan — keep every country under six months, be resident nowhere — fails for the reason this article has been building towards. Four countries at 70 days each can still leave you Spanish resident on economic interests, or Canadian resident on a home and a spouse you never gave up.
Worse, your former country of residence may never have accepted that you left; most systems require you to break ties, not merely to be absent. The CRA offers Form NR73 for a formal opinion on your status on leaving Canada, which tells you how often the answer is not obvious. We looked at the ambitious version of this plan in can you have no tax residency at all.
The records to keep now that borders count for themselves
Day counts used to be reconstructed from passport stamps. That era has ended in Europe. According to the European Commission, the EU Entry/Exit System became fully operational on 10 April 2026, replacing passport stamping with a digital record of every entry, exit and refusal of entry for non-EU nationals on short stays, plus facial image and fingerprints. In its announcement of 30 March 2026 the Commission reported more than 45 million border crossings registered since the system started operating.
The immigration side of that sits in our piece on the Schengen 90/180 rule, and the distinction matters: these are two clocks that happen to both be measured in days. Schengen's 90-days-in-any-180 caps how long you may be present. The 183-day tax count is a different threshold over a different period, run by a different ministry. You can be perfectly legal on immigration while having walked into tax residency.
What the digital border changes is the evidence. The authorities now hold a precise record, so yours needs to be as good: a day log with the date, country and direction of every crossing, plus boarding passes and accommodation receipts, kept for as long as the relevant country can reopen a return.
Questions to be able to answer about your own position
If you cannot answer these, you do not know where you are tax resident.
- Which country did you last file as a resident in, and did you notify it that you left? Absence is not departure in most systems.
- Is there a home available to you anywhere you could occupy tomorrow? The first OECD tie-breaker, and a standalone test in Portugal and the UK.
- Where do your spouse and dependent children habitually live? In Spain this creates a presumption against you.
- What is your day count per country for the last three years, against each country's own tax year? The US formula needs three years; the UK and Australia do not use the calendar.
- Where are your bank accounts, company, pension, property and main clients? The centre of vital interests question in evidential form — and the reason where you hold accounts matters beyond convenience, as our guide to choosing bank accounts as a nomad sets out.
- Does a treaty exist between the countries that could both claim you? If not, relief depends on domestic credits rather than a tie-breaker.
One caveat, made once and meant: these are published rules, but applying them to a travel history is a judgement call with money attached, and a cross-border accountant who handles your country pair is worth the fee.
Frequently Asked Questions
Does the 183-day rule apply everywhere
No. It is a widely used threshold, not a universal rule, and the countries using it measure it differently — Spain over the calendar year, Portugal over any rolling 12 months, Australia over an income year starting 1 July, per each authority's guidance. The United States does not use a plain 183-day count for non-citizens; the IRS uses a weighted three-year formula.
What if I spend under 183 days in every country
You can still be tax resident somewhere, often in the country you thought you had left. Under the CRA's framework a home, spouse or dependants in Canada can make you resident with no day threshold met; the Agencia Tributaria can treat you as resident on economic interests alone; and HMRC's ties test can catch a previously UK resident person at 121 days with one tie.
Is tax residency the same as having a digital nomad visa
No. A nomad visa is immigration permission to be present; tax residency is decided by the tax code. The Portuguese tax authority's criteria turn on days and on whether you keep a home as a habitual residence, not on which permit you hold — so a visa can hand you tax residency as a side effect of the stay it authorises. Some programmes do carve out a tax treatment: a 2022 analysis on Wolters Kluwer's international tax law blog notes that Article 9(1)(26) of Croatia's Personal Income Tax Act means employment and self-employment income paid by non-residents is not taxed in Croatia even for nomads deemed Croatian tax resident. That is a statutory exemption, not a general principle. We compare the programmes in our guide to digital nomad visas and residency pathways.
Do I pay tax where my clients are
Usually not on your general income. Residency determines who taxes your worldwide income, and that is about you, not your customers. Client location can still matter: some countries tax income sourced within them, some require withholding on payments to non-residents, and VAT or GST rules follow their own logic. The mechanics of collecting payments from overseas clients sit in a separate guide. The consequences differ by country, which is why we keep a country-by-country breakdown rather than one answer.
The bottom line
The 183-day rule is a useful first filter and a poor conclusion. The tests that decide real cases are about a permanent home, a family and an economic centre — and those are passed or failed by what you keep, not by where you sleep.
Count days against each country's own tax year rather than the calendar, because the UK, Australia and Portugal all use something else. Treat ties as the live risk and days as the easy part. Keep a log, now that border systems have a better record of your movements than you do.
For the wider picture — filing obligations, treaty relief, exit planning and the country detail behind it — see our complete guide to nomad tax residency.

