Every country's tax system asks the same question first: are you a tax resident here this year? The answer determines whether the country taxes your worldwide income or only the income sourced within its borders. For digital nomads — who by definition move — the answer is often ambiguous, and the ambiguity costs or saves thousands of dollars a year. This guide explains how residency tests actually work, why "183 days" is not the whole answer, and how the US citizenship-based system interacts with residence-based systems everywhere else.
The two types of residency tests
Day-count tests
The simplest rule: if you spend more than X days in a country during a calendar year, you are tax resident. X is usually 183 days, though some countries use 180 (Thailand) or have custom thresholds. Day-count tests are mechanical — they do not look at intent, employment, or banking. They are easy to comply with and easy to game.
Facts-and-circumstances tests
Most countries layer a second test on top: even if you spend fewer than X days, you can still be tax resident if your "center of vital interests", "habitual residence", or "economic center" is in the country. The wording varies; the intent is the same — catch the taxpayer who spends 150 days in-country but keeps their home, family, and income there.
Facts-and-circumstances tests are what catch nomads by surprise. A freelancer who leases a Lisbon apartment for a year, keeps Portuguese bank accounts, and builds a Portuguese client base can become tax resident under 183 days if a tax inspector looks at the full picture.
How the major nomad-visa countries apply these tests
| Country | Day trigger | Second test |
|---|---|---|
| Portugal | 183 days | Habitual residence on 31 Dec (a home kept in circumstances suggesting intent to continue) |
| Spain | 183 days | Center of economic interests, or spouse+children living in Spain |
| Mexico | 183 days | Center of vital interests (income source, main activity) |
| Thailand | 180 days | None — pure day count |
Thailand is unusual in applying a pure day count with no override. Most other popular nomad destinations use a layered test.
Worldwide vs territorial taxation
Once you are tax resident, the country's overall system determines what you owe:
- Worldwide taxation: you owe tax on income earned anywhere. Most developed economies use this — Portugal, Spain, Mexico, the US, the UK, Germany, Japan.
- Territorial taxation: only income sourced inside the country is taxed. Used by Panama, Costa Rica (with nuance), Singapore (mostly), and historically Thailand (pre-2024 with the "foreign remittance deferral" loophole, now closed for 2024+ income).
- Remittance basis: you owe tax only on foreign income brought into the country. UK non-doms historically used this; Thailand's current regime is essentially this for pre-2024 earnings.
Double tax treaties — how double taxation is avoided
When you are tax resident in one country and earn income in another (or, in the US citizenship case, are tax liable in two countries at once), double-tax treaties prevent both countries from taxing the same income twice. Treaties work by:
- Assigning primary taxing rights to one country by income type. Employment income typically taxed where the work is performed; passive income (dividends, interest, royalties) often split between source and residence countries.
- Providing a tie-breaker for individuals resident in both countries — usually sequentially: permanent home → center of vital interests → habitual abode → nationality.
- Allowing the residence country to credit tax paid in the source country against its own tax, reducing total liability to the higher of the two rates.
Most nomad-visa countries have treaties with the US, UK, Canada, Australia, and major EU/Asian economies. Check the specific article for your income type before filing.
The US-citizen exception — citizenship-based taxation
The United States taxes its citizens and green-card holders on worldwide income regardless of residence. This is nearly unique (Eritrea is the other notable example). Practical implications for US nomads:
- You owe US federal tax on all income every year, even if you are also tax resident in Portugal, Spain, Mexico, or Thailand.
- The Foreign Earned Income Exclusion (FEIE) — approximately $126,500 for 2025, adjusted annually — can exclude foreign-earned employment and self-employment income from US tax if you pass one of two tests: physical presence (330 days abroad) or bona fide residence.
- The Foreign Tax Credit (FTC) lets you credit foreign tax paid against US tax owed on the same income. For tax residents of high-tax jurisdictions, FTC usually brings US liability to zero.
- Double-tax treaties still apply; they do not remove the US filing obligation but affect which country gets primary taxing rights.
- Self-employed US citizens still owe self-employment tax (Social Security + Medicare, ~15.3%) unless covered by a totalization agreement with the host country.
The net effect: US citizens almost always need a cross-border CPA in the first year of new residence. The upside of FEIE alone is often $20,000–$45,000/year; getting the filing right matters.
Common nomad tax-residency patterns
The under-183 nomad
Spend fewer than 183 days in any single country. Claim tax residency in one "base" country (or a no-income-tax jurisdiction if you can establish it) and maintain status as a non-resident everywhere else. Requires meticulous flight records. Works well for pre-tax incomes under ~$150k where the complexity cost is low. Most common among early-career nomads.
The Beckham / NHR-like user
Become tax resident in a country with a favorable regime for inbound residents (Spain's Beckham Law, Italy's impatriati, Portugal's legacy NHR). Pay a flat or capped rate on Spanish / Italian / Portuguese-source income; foreign-source income often exempt or reduced. Requires establishing real residence and filing elections — paperwork-heavy but tax-efficient for six-figure earners.
The base-and-travel nomad
Establish real tax residency in a moderate-tax country (say Portugal or Spain), live there 6–9 months, travel the rest. You accept the residence country's tax regime but gain stability, passport pathway, and a physical home. Most common among established nomads in their 30s–40s.
The no-income-tax expat
Establish residency in a zero-income-tax jurisdiction (UAE, Monaco, Bahamas, Cayman) — usually via substantial economic substance (real estate, actual months of presence, sometimes investment). Useful at higher incomes where the tax savings justify the overhead. Not accessible through most nomad visas; requires a separate residence-by-investment or golden-visa route.
When professional help is worth paying for
Get a cross-border CPA when:
- You are a US citizen earning over $75k — FEIE, FTC, and self-employment tax interactions alone justify the fee.
- You are changing tax residency mid-year — the split-year calculations are fiddly and mistakes compound.
- Your income mix is complex (salary + freelance + equity + rental) — each stream has different treaty treatment.
- You are considering structures like a US LLC, UK Ltd, or Estonian e-Residency OÜ — these have first-year setup costs and ongoing compliance that need to be modeled against benefit.
- You have dependents, especially across jurisdictions — tax residency and personal allowances interact in non-obvious ways.
Typical first-year CPA cost for a nomad situation: $1,200–$3,500. The ROI on the first year usually clears that bar.
Related reading
- How to choose a digital nomad visa
- Portugal taxes for digital nomads
- Spain taxes for digital nomads
- Mexico taxes for digital nomads
- Thailand taxes for digital nomads
This guide is educational, not tax advice. Your individual circumstances, home country, and specific income profile materially change what you owe. Before making decisions that affect more than a few months of income, consult a cross-border tax professional.