← All posts

Digital nomad tax residency basics

The rules that decide which country actually taxes you when you're moving around, why "nowhere" is almost never a real answer, and how the popular nomad-visa programmes work.

By The LeapInvoice team

The most persistent misunderstanding among location-independent freelancers is that if you keep moving, you don't owe tax anywhere. This is almost universally wrong. Tax residency is a technical status assigned by each country's rules; countries are competitive about claiming you; and "I don't feel like a resident anywhere" is not a valid tax position.

Here's how the rules actually work.

Every country has its own residency test

There is no single global rule. Each country decides, using its own criteria, whether you are its tax resident. The common tests:

The 183-day test

Almost every country uses some version of this: if you're physically present in the country for 183 days or more in a rolling 12-month or calendar-year period, you're tax resident. Portugal, Spain, France, Germany, Italy, most of Eastern Europe, most of Asia, most of Latin America.

Some countries count any day you were in the country (even an arriving flight at 23:55 counts). Others exclude days of transit. Read the specific rules of countries you actually spend meaningful time in.

Domicile and habitual abode

Even below 183 days, some countries claim you if you have a "home available to you" or a "habitual abode" there. Germany's gewöhnlicher Aufenthalt rule is a classic example. Spain looks at your centre of economic interests (where your income, family, main bank accounts are).

Citizenship-based taxation

The United States taxes its citizens and green-card holders on worldwide income, regardless of where they live. Full stop. Even if you haven't set foot in the US in ten years. Foreign Earned Income Exclusion helps up to about $130,000/year, but you still file a US return every year. Eritrea has a similar rule. Nobody else does.

The tie-breaker rules

When two countries both claim you as a tax resident (which happens more than you'd think), double-taxation treaties contain tie-breaker rules that decide, in this order:

  1. Where you have a permanent home available.
  2. Where your centre of vital interests is (family, work, ties).
  3. Where you have a habitual abode.
  4. Which country you are a national of.
  5. Mutual agreement between the two tax authorities.

These tests apply in order — you go to test 2 only if test 1 doesn't resolve it. In practice, most disputes get resolved at step 1 or 2. Your "vital interests" are wherever your kids go to school, your bank is, your health insurance is, and your work relationships are — not wherever you're currently sitting.

Why "nowhere" is (almost) never real

For "no tax residency" to be true, you need:

  • Not to trigger any country's residency test in any tax year.
  • No country to have a legitimate claim under domicile / centre of interests rules.
  • Not to be a US citizen or green-card holder.
  • Not to have kept your original tax residency without formally exiting.

Even for perpetual travellers, one of these usually fails. The most common failure: your original country never officially released you. Most European countries require you to formally deregister (Germany's Abmeldung, Spain's baja consular, France's various processes) and prove you've established residency elsewhere. Without that, they may keep taxing you.

The nomad visa wave

Since 2021 many countries have launched digital nomad visas designed to let location-independent workers stay for 1–2+ years while working for foreign employers or clients. Popular ones:

  • Portugal (D8) — 1 year renewable, minimum income ~€3,300/month, path to residency. Portugal ended its famous NHR (Non-Habitual Resident) tax regime for new applicants in 2024; a narrower replacement exists.
  • Spain — Digital Nomad Visa under the Startups Law. Income threshold ~€2,700/month. Access to a favourable 24% flat tax on Spanish-source income for up to 5 years via Beckham Law adjacent regime.
  • Greece — Digital Nomad Visa. Up to 50% income tax reduction under separate favourable-tax provisions for new residents.
  • Croatia — 1-year permit for non-EU nomads. Income tax exemption on foreign-source income during the permit period.
  • Estonia — Digital Nomad Visa (separate from e-Residency). Up to 1 year. Tax residency may still apply if you exceed 183 days.
  • UAE — Remote Working Visa. 0% personal income tax; separate 9% corporate tax on qualifying businesses.
  • Malaysia (DE Rantau) — 1-year renewable, income threshold ~$24,000/year.

Each has quirks. Universal warnings:

  • Visa ≠ tax residency, but often triggers it. Portugal's D8 makes you Portuguese tax resident from day one of arrival if you intend to stay.
  • Health insurance requirements vary and are usually mandatory.
  • Renewal terms are stricter than initial approval — plan the exit or the extension from day one.
  • Family accompaniment — most allow spouses and minor children, some don't.

The safe framework

If you're going to work location-independently across multiple countries, the framework that keeps you out of trouble:

  1. Pick a genuine tax residency base. A country you're prepared to be resident in, with rules and rates you understand, and where you can prove residence (rent, tax number, health cover). Portugal, Cyprus, Malta, Ireland, Estonia, Bulgaria, Georgia, UAE, Panama, and various Caribbean states are all common bases with different trade-offs.
  2. Officially exit your prior residency with paperwork — deregistration, tax clearance certificate, exit tax return where applicable. Some countries have exit taxes on unrealised gains (Germany, France) if you leave with significant assets.
  3. Track your days — 90, 183, and 90-in-rolling-365 rules matter. Use an app or a spreadsheet. Ignorance is not a defence in an audit.
  4. Don't create a second residency by accident — spending five months in Spain while "based in Portugal" plausibly makes you Spanish tax resident, and Spain will notice.
  5. Get advice at the base country level and at the visit country level for any country where you'll spend more than three months. This is the single most valuable thing you can pay for in a nomad setup.

What "digital nomad" doesn't get you

  • Freedom from social security. Most tax residency comes bundled with social insurance obligations. If you're paying French tax you're probably paying French social security. There are EU exceptions for posted workers, but they're temporary.
  • Freedom from your clients' rules. Some corporate clients simply won't contract with someone whose tax residency they can't verify. Enterprise procurement wants a clean supplier country.
  • Freedom from company-level tax. If you run an offshore company but manage it from wherever you're staying, most countries will apply place-of-effective-management rules and tax the company where you are. CFC rules pile on top.

The pragmatic reality

Most successful location-independent workers pick a low-friction, low-tax residency country, actually live there enough of the year to defend the status, and travel from there. They're not stateless — they're strategically resident. The people trying to outrun tax residency by keeping moving generally end up either back-owing tax to their original country, or living with quiet audit risk they don't sleep well with.

Pick a base. Do the paperwork. Then travel.