In this guide
- What legal residency actually means
- What tax residency actually means
- The 183-day rule (and why it's not the whole story)
- Center of vital interests and other tests
- When you have both, or neither
- Real-world example: a visa in one country, tax residency in another
- Who this is right for, and who it isn't
- How to get started
- Conclusion
Last updated: August 2026
Legal residency vs tax residency is the single distinction that trips up more people relocating internationally than any other mobility mistake. Legal residency is the right to live somewhere, granted by a visa or permit. Tax residency is a separate legal status that determines where you owe tax on your income, and it's decided independently by each country's own rules. Holding one does not automatically grant, or remove, the other.
Here's how that plays out in practice: someone can hold a Portugal D8 visa, meaning they have full legal residency rights in Portugal, and still be a tax resident of their home country because they never actually broke their economic and family ties there. The visa changed where they're allowed to live. It didn't change where they owe tax.
This article walks through both concepts clearly, covers the tests countries actually use (the 183-day rule is the most cited, but it's rarely the whole story), and works through what happens when two countries both claim you as a tax resident at once. By the end, you'll know which status applies to your situation, and which questions to bring to a cross-border tax advisor.
Key Takeaways
- Legal residency and tax residency are determined by completely different rules, and holding one doesn't automatically establish or eliminate the other.
- The 183-day rule is the most commonly cited tax residency test, but many countries apply additional tests, like Spain's center-of-vital-interests rule, that can make you tax resident even under 183 days.
- When two countries both claim you as a tax resident, tax treaties resolve the conflict through a fixed tie-breaker sequence: permanent home, then center of vital interests, then habitual abode, then nationality.
- Cyprus uses a 60-day rule instead of the standard 183-day threshold, provided you meet several additional conditions, showing how much these tests vary by country.
- Being "tax resident nowhere" sounds appealing but is riskier than most people assume, since it can trigger scrutiny from every country you've touched rather than simplifying your position.
What legal residency actually means
Legal residency is permission. It's the right, granted by a government through a visa, permit, or residency card, to live in a country for a defined period or indefinitely. Portugal's D8 visa, Spain's Digital Nomad Visa, and citizenship-by-investment programs all grant legal residency in different forms, but they share this core feature: they answer the question "am I allowed to be here," not "where do I owe tax."
This is where most confusion starts. People assume that because they've gone through the effort of a visa application, moving their life, and possibly paying government fees, their tax situation has automatically followed them. It hasn't. Legal residency and tax obligations are handled by entirely separate government bodies, often applying entirely separate criteria, and one does not trigger the other.
Want to understand what your specific move means for your tax obligations? Get in touch with Atlasway →
What tax residency actually means
Tax residency is a country's legal basis for taxing you, typically on your worldwide income if you're a tax resident, or only on income sourced within that country if you're not. Each country sets its own rules for who qualifies, and those rules operate completely independently of any visa or immigration status you hold.
This matters because you can be a tax resident of a country you've never lived in under a visa, and you can hold full legal residency in a country without ever becoming its tax resident. The two systems don't reference each other. A move that satisfies your immigration lawyer doesn't automatically satisfy your tax obligations, and vice versa. Atlasway's guide to tax obligations when moving abroad covers the broader checklist that applies once you understand this distinction.
The 183-day rule (and why it's not the whole story)
The 183-day rule is the most cited tax residency test in the world, and it's genuinely useful as a starting point: spend more than half the year, 183 days, in a country, and you typically become its tax resident. It's simple, easy to count, and shows up in nearly every country's tax code in some form.
The problem is treating it as the only test. Many countries apply supplementary or alternative tests that can make you tax resident even if you never cross the 183-day threshold. Spain, for example, can treat you as tax resident based on where your center of vital interests sits, your economic and family ties, regardless of your day count. The OECD's guidance on double taxation explicitly frames the day-count test as one factor among several, not a standalone rule.
Daniel, a software contractor who left the UK for what he assumed was a clean tax break, spent 190 days in Portugal in 2025 and counted himself safely outside UK tax residency under the day-count logic he'd read online. What he'd missed was the UK's Statutory Residence Test, which weighs multiple "ties" (family, accommodation, work) alongside day counts, not day counts alone. Because his spouse and children remained in the UK and he kept a UK property available to him, HMRC's own residence guidance meant he was still very likely a UK tax resident despite the day count he'd relied on. He spent the next tax season working with an advisor to untangle a position he could have assessed correctly from the start.
Trying to figure out which tests actually apply to your situation? Talk to Atlasway about your options →
Center of vital interests and other tests
Beyond the day-count rule, the tests countries use generally fall into a few recurring categories:
- Permanent home: Do you maintain a home available to you in the country, whether owned or rented, even if you don't live there full time?
- Center of vital interests: Where are your closest personal and economic ties, family, primary bank accounts, business interests?
- Habitual abode: Where do you spend the most time overall, when neither of the above tests resolves the question?
- Nationality: A final tie-breaker when everything else is genuinely balanced.
Cyprus is a useful example of just how much these tests can vary by country. Rather than the standard 183-day threshold, Cyprus offers a 60-day rule, letting you qualify as a tax resident in as little as 60 days, provided you meet several additional conditions: you're not tax resident anywhere else, you maintain a permanent home in Cyprus, and you carry out business or employment there. It's a genuinely different framework from the day-count-first approach most countries use, and it illustrates why assuming any single rule applies universally is a mistake.
When you have both, or neither
Dual tax residency happens when two countries both apply their own rules and both conclude you're their tax resident. This isn't rare, it happens constantly to people who relocate mid-year or split time across multiple countries. When it occurs, tax treaties between the two countries typically resolve the conflict through a fixed sequence, generally following the OECD Model Tax Convention's tie-breaker order:
- Permanent home: If you have a permanent home in only one of the two countries, that country wins.
- Center of vital interests: If you have a home in both (or neither), the country where your personal and economic ties are strongest applies.
- Habitual abode: If vital interests don't resolve it, the country where you spend more time applies.
- Nationality: If habitual abode is genuinely tied, your nationality becomes the deciding factor.
Working through a real example makes this concrete. Suppose Sofia, a marketing consultant, holds a permanent home in Germany where her adult children and long-term business clients remain, but she's spent 200 days in Portugal on a D8 visa this year. Portugal's day-count rule would claim her; Germany's permanent-home test would also claim her. Under the tie-breaker sequence, since she has a permanent home in Germany but not one she maintains full-time in Portugal, step one alone might resolve this in Germany's favor, depending on exactly how Portugal defines her accommodation there. This is precisely the kind of case where a cross-border tax advisor, not a blog post, needs to review the specific facts.
The opposite scenario, being tax resident nowhere, sounds appealing but carries its own risk. Rather than simplifying your position, it can invite scrutiny from every country you've touched, each one asking why they shouldn't be the one taxing you. Genuine "tax resident nowhere" status is achievable in narrow circumstances, but it requires careful, deliberate structuring, not an accidental byproduct of moving frequently.
Working through a dual-residency situation of your own? Discuss your specific case with Atlasway →
Real-world example: a visa in one country, tax residency in another
Return to the scenario that opened this article. A remote founder holds a Portugal D8 visa, giving them full legal residency rights, the ability to live in Portugal, access local services, and eventually apply for permanent residency. On paper, this looks like a complete relocation.
But if that founder's spouse and children stayed behind, their home country property remains available to them, and their primary business banking and client relationships never moved, several countries' center-of-vital-interests tests would likely still point to their original country as their tax residence. The D8 visa answered "where can I legally live." It never answered "where do I owe tax," and treating those as the same question is exactly the mistake that catches people out.
This is also where FATCA and CRS reporting obligations come into play, since your bank accounts and financial institutions report your tax residency status internationally regardless of where you physically live. Atlasway's guide to FATCA and CRS reporting for global citizens covers how that disclosure works in more depth. If you're also running a business remotely, it's worth understanding permanent establishment risk as a related but distinct concept, since your physical location can inadvertently create corporate tax exposure even when your personal tax residency is settled.
Who this is right for, and who it isn't
This distinction isn't a niche concern. Anyone relocating internationally, spending extended time in multiple countries, or working remotely across borders needs to understand it, because getting it wrong has real financial consequences, not just theoretical ones.
Right for: Remote workers evaluating a digital nomad visa, retirees splitting time across two or more countries, founders structuring where they personally live versus where their business operates, and anyone who's assumed a visa settled their tax position without checking.
Not right for, as a substitute: This article is a framework for understanding the distinction, not a replacement for a cross-border tax professional's review of your specific facts. Tie-breaker analysis, in particular, depends heavily on details, exact ownership structures, time spent, treaty language between your two specific countries, that a general guide can't resolve for you. If you're facing a genuine dual-residency question, this is precisely the kind of situation where a qualified advisor is worth the cost, not an area to self-assess and hope for the best.
How to get started
Start by mapping two things separately: where you hold legal residency status today (visas, permits, citizenship), and where you might still meet a tax residency test based on days spent, permanent home, or vital interests, even in a country you've formally "left." Don't assume the second list matches the first.
If your situation involves spending meaningful time in more than one country, or you're not certain your home country recognizes that you've established tax residency elsewhere, this is the point to bring in a cross-border tax advisor rather than continue researching alone. Atlasway's guide to the 183-day rule and dual residency goes deeper into the day-count mechanics if that's the piece you need to understand next.
Ready to map out your legal residency and tax residency status together? Contact Atlasway →
Conclusion
Legal residency vs tax residency comes down to one core fact: a visa tells you where you're allowed to live, not where you owe tax. The 183-day rule is a useful starting point but rarely the complete picture, tests like center of vital interests and permanent home can override it entirely. When two countries both claim you, tie-breaker rules resolve the conflict in a fixed order: permanent home, center of vital interests, habitual abode, then nationality.
Getting this distinction right before you relocate, rather than after a tax authority asks questions, is one of the most consequential decisions in any international move. If your situation involves more than one country's tax rules, treat that as a signal to bring in a professional, not a reason to guess.
Note: The information in this guide is for research and educational purposes. It does not constitute legal or tax advice. Tax residency rules vary by country and change frequently, always verify your specific position with a licensed cross-border tax advisor before taking action.
This guide is about the rule. The country pages are about the route.
Each destination has its own page with the visa, the money and the timeline. If yours isn’t there yet, write to us.