The bottom line
Tax residency is determined by the rules of each country you spend time in, not by where your passport is from or where you say you live. Most countries trigger residency at 183+ days physically present in the country during the tax year, but several test more aggressively (UK statutory residence, Australia's domicile test, Spain's economic-interest test). For US citizens, the picture is unique: you owe US federal income tax on worldwide income regardless of where you live, with limited relief through the Foreign Earned Income Exclusion and tax treaties. Most digital-nomad “tax optimization” strategies end badly because the planner ignored a rule of one of the countries the nomad visits.
What “tax residency” means
Tax residency is the legal hook a country uses to claim taxing rights over your income. Two countries can claim residency simultaneously; treaty tie-breakers exist for exactly this reason. The consequences of being a tax resident:
- The country can tax your worldwide income (most common rule).
- You become subject to local social security / payroll levies on relevant income.
- You owe annual reporting (returns, asset disclosures, foreign-account forms).
- You may lose access to non-resident-only tax incentives.
Non-residents are typically taxed only on locally-sourced income (rent from a property there, employment income earned while physically present), often at higher flat rates than residents face on the same source.
The 183-day rule and its exceptions
The most-cited rule is “spend more than 183 days in a country and you become a tax resident.” True for many countries — but with exceptions:
- United States — substantial presence test. A weighted formula: all days in the current year + 1/3 of days in the prior year + 1/6 of days two years prior. If the total is ≥ 183, you're a US tax resident even with fewer than 183 days in the current year alone. There are exceptions (closer-connection exception, treaty tie-breaker) but the formula is the trigger.
- United Kingdom — Statutory Residence Test (SRT). A combination of automatic-resident tests, automatic-non-resident tests, and a sufficient-ties test that depends on your prior-year residence + connections (family, work, accommodation, > 90 days). You can be UK-resident with as few as 16 days in the year if you have enough ties.
- Australia. Days alone don't determine residency; the “ordinarily resides” test, plus three statutory tests (domicile, 183 days, Commonwealth super), can make you resident even with limited time in country.
- Singapore. 183 days makes you a tax resident; 60 days or less generally exempts foreign-employment income (with conditions).
- Spain, Portugal, France, Germany. Variants of 183-day plus economic / family / habitual-residence tests.
A digital nomad who spends 100 days in each of three countries thinking she's “not resident anywhere” can find herself resident in all three under their respective rules.
US citizens: the citizenship-based hook
For US citizens (and green card holders), the situation is structurally different: the US taxes worldwide income regardless of where you live. Even moving abroad permanently does not, by itself, end US filing obligations. Relief mechanisms:
- Foreign Earned Income Exclusion (FEIE) — exclude up to roughly $132,900 (2026 placeholder) of earned income while abroad, subject to physical presence (330 days outside the US in 12 months) or bona fide residence test.
- Foreign Tax Credit — credit foreign income tax paid against US tax owed.
- Tax treaties — limited relief on specific income types (pensions, dividends).
Capital gains, dividends, interest, and rental income are NOT covered by the FEIE — they remain US-taxable in full unless a tax treaty reduces it. This is why “US citizen retired in Portugal” sounds simpler than it is.
Worked example: the “perpetual traveler” risk
Anna is a US citizen, designs websites, and travels: 100 days in Mexico, 90 days in Portugal, 120 days in Thailand, 55 days back in the US. Total 365.
US: 55 days current year. Substantial presence weighted: 55 + 1/3(120 prior) + 1/6(120 two-years-prior) = 55 + 40 + 20 = 115. Below 183. NOT US-resident under SPT — but she remains a US citizen, so worldwide US tax obligation continues regardless.
Mexico: 100 days. Below the 183-day rule. Likely non-resident, but tax-resident if she establishes a center of vital interests there.
Portugal: 90 days. Below 183. Non-resident, BUT Portugal's habitual-residence test can capture you with as few as ~90 days IF you maintain a Portuguese home. She rented an Airbnb — probably safe. If she signed a 6-month lease, less safe.
Thailand: 120 days. Below the 180-day Thai rule. Non-resident.
Net: Anna is non-resident in each individual country (probably) but remains a US-tax resident by citizenship. She owes US tax on all her income. The FEIE may exclude up to ~$132,900 of earned income IF she meets the physical presence test (330+ days outside the US in any 12-month period — she has 310, so she fails the 12-month rolling window unless she chooses dates carefully). The bona fide residence test requires settled residence somewhere — perpetual travel typically fails it.
Result: Anna owes US tax on her full income, no FEIE relief. The lifestyle she imagined as “tax-free” is taxed at full US marginal rates plus self-employment tax.
Treaty tie-breakers
Where two countries both claim residency, the bilateral tax treaty (if any) defines a tie-breaker:
- Permanent home — where do you have a home you're ordinarily settled in?
- Center of vital interests — family, work, social ties.
- Habitual abode — where do you spend more time?
- Citizenship.
- Mutual agreement procedure (MAP) — competent authorities sort it out.
Treaty residency overrides domestic-law residency for treaty-covered taxes. This is the most-used escape hatch for dual-residents.
Common mistakes
1. Believing the 183-day myth. It's a starting point, not the rule. UK SRT, US substantial presence, Australian domicile each test more aggressively.
2. Ignoring exit-tax rules. Several countries (Australia, Canada, Germany, France) impose “exit tax” on unrealized gains when you stop being resident. The US imposes covered-expatriate exit tax for people renouncing citizenship.
3. Establishing a home in the “wrong” country. Renting a long-term apartment can establish residency under habitual-abode tests even if you're below day thresholds.
4. Filing nothing because “non-resident.” Most countries require non-residents to file when locally-sourced income exists (rental, employment days). FBAR / Form 8938 obligations for US persons exist regardless of residency.
5. Using stale tax-haven advice. “Move to Dubai, no income tax” is technically true for residency but ignores: corporate structuring requirements for digital businesses, US citizenship-based tax, payroll-tax obligations of any local employees, the new UAE corporate tax (June 2023), and substance-over-form scrutiny by other tax authorities you visit.
What to do instead
- Pick one country to be your primary tax home. Bona fide residence, properly documented, beats perpetual travel for most US citizens.
- Use a tax-treaty country. Treaties exist for a reason — they shield you from double taxation cleanly.
- Document everything. Plane tickets, lease agreements, utility bills, receipts. Tax authorities ask for proof, not assertions.
- Engage a cross-border tax CPA / advisor. $1,500–3,500/year for ongoing advice is small relative to a six-figure mistake.
- Avoid renunciation rumors. Renouncing US citizenship is a major life decision with exit tax, lifelong potential issues at airports / banks. Don't treat it as a tax strategy unless you understand the trade-off completely.
What this guide does NOT cover
- Country-by-country tax-residency rules in detail (each is its own chapter)
- US Foreign Earned Income Exclusion mechanics, bona-fide residence test specifics
- Foreign tax credit calculation and FTC carryforward
- FBAR / FATCA / Form 8938 reporting in detail
- State residency for US filers (each state separately)
- Renouncement / expatriation procedure
- Tax-treaty country list and savings clauses
For any meaningful cross-border tax decision, engage a qualified international tax adviser. The forum advice you read on Reddit is correct often enough to be dangerous.