
The Digital Nomad’s Guide to US Tax Residency
How the substantial presence test, the 183-day rule, and treaty tie-breaker provisions determine whether your location-independent lifestyle triggers US tax obligations — and how to structure your travel to stay compliant.
James Baker CPA explains the key tax rules every non-resident entrepreneur needs to understand
The Digital Nomad Tax Paradox
The digital nomad lifestyle promises freedom — work from anywhere, live on your own terms, build a business that transcends borders. But this freedom creates a paradox that most nomads do not discover until it is too late: the more countries you visit, the more tax jurisdictions you potentially trigger. And the United States, with its uniquely aggressive approach to taxing non-citizens who spend time on its soil, represents the single biggest tax trap for international entrepreneurs.
Unlike most countries that tax based on citizenship or permanent residency, the United States uses a physical presence test to determine tax residency for aliens. This means that a non-US citizen who has never applied for a green card, who has no intention of living in America permanently, and who simply enjoys spending winters in Miami or summers in New York, can accidentally become a US tax resident — and owe taxes on their worldwide income — simply by crossing an invisible threshold of days spent on US soil.
This guide breaks down every rule, exception, and planning strategy that digital nomads need to understand. We will walk through the substantial presence test formula step by step, explain the closer connection exception and treaty tie-breaker provisions, show how income allocation works when you split your work between the US and abroad, and illustrate these concepts with real case studies. Whether you are a freelance developer who occasionally visits clients in San Francisco, a SaaS founder who attends conferences in Austin, or a content creator who rents an apartment in Brooklyn for three months each year, the rules in this guide will determine whether you owe the IRS nothing — or everything.
Critical: Your Home Country Rules Matter Just as Much
Most of our clients focus exclusively on US tax rules — but that is only half the equation. Every digital nomad must also review the tax residency rules of their home country. Many countries have their own substantial presence tests, departure rules, or “center of vital interests” criteria that can keep you taxable in your home country even after you have left.
For example, some countries continue to tax you as a resident for the entire calendar year in which you depart, regardless of when you actually left. Others require a formal notification of departure or de-registration before they will stop treating you as a tax resident. Some countries — like Portugal, Spain, and Australia — have specific “exit tax” provisions that can trigger capital gains on unrealized appreciation when you cease residency.
When we work with digital nomad clients, we always start by analyzing both sides of the equation: the US rules that could pull you into the US tax system, and your home country rules that may not have released you yet. Without understanding both, you risk either double taxation or, worse, falling into a gap where no country considers you a resident — which creates its own set of compliance problems.
The Stakes Are Real
Triggering the substantial presence test means the IRS treats you as a US tax resident. You must file Form 1040 and report your worldwide income — not just US-source income. For a digital nomad earning $150,000 from clients around the world, this could mean an unexpected US tax bill of $30,000 or more, plus self-employment tax of 15.3% on business income. The penalties for failing to file can add another 25% on top.
The Substantial Presence Test: The Formula That Determines Everything
The substantial presence test, codified in IRC §7701(b), is the primary mechanism the IRS uses to determine whether a non-citizen, non-green-card-holder is a US tax resident. Unlike the green card test — which is binary (you either have one or you do not) — the substantial presence test is mathematical. It counts the days you have been physically present in the United States over a rolling three-year period and applies a weighted formula to determine whether you have crossed the residency threshold.
To meet the substantial presence test for any given calendar year, you must satisfy two conditions simultaneously. First, you must be physically present in the United States for at least 31 days during the current calendar year. This is the minimum threshold — if you spend 30 days or fewer in the US during a given year, the substantial presence test cannot apply to you for that year, regardless of how many days you spent in prior years. Second, you must accumulate at least 183 days under the following weighted formula applied across the current year and the two preceding years:
The Weighted Formula
(Days in Current Year × 1) + (Days in Year-1 × ⅓) + (Days in Year-2 × ⅙) ≥ 183
If this sum equals or exceeds 183, you meet the substantial presence test
The weighting is designed to capture patterns of recurring presence. A person who spends 120 days in the US every year will accumulate 120 + 40 + 20 = 180 weighted days — just below the threshold. But someone who spends 122 days each year will hit 122 + 40.67 + 20.33 = 183, triggering residency. The margin is razor-thin, and the IRS does not round in your favor.
Critical detail: You are treated as present in the United States on any day you are physically present in the country at any time during the day. There is no minimum number of hours. If your flight lands at 11:55 PM, that entire day counts. If you depart at 6:00 AM, that day counts too. Both arrival and departure days are days of presence.
Practical Examples: Where the Line Falls
Understanding the formula in the abstract is one thing. Seeing how it plays out with real numbers is another. Consider these scenarios, each representing a common digital nomad travel pattern:
Scenario A: The Cautious Nomad (SAFE)
Elena, a UX designer from Spain, spends 90 days in the US each year — typically January through March in Miami. Over three years, her weighted total is: 90 + (90 × ⅓) + (90 × ⅙) = 90 + 30 + 15 = 135 days. She is well below the 183-day threshold and does not meet the substantial presence test. Her US-source income from services performed during those 90 days may still be taxable, but she is not treated as a US tax resident.
Scenario B: The Borderline Nomad (DANGER ZONE)
Marcus, a marketing consultant from the UK, spent 150 days in the US in 2025, 100 days in 2024, and 80 days in 2023. His weighted total: 150 + (100 × ⅓) + (80 × ⅙) = 150 + 33.3 + 13.3 = 196.6 days. Marcus meets the substantial presence test and is treated as a US tax resident for 2025. He must file Form 1040 and report his worldwide income — including the income he earned while working from London and Lisbon. His only escape routes are the closer connection exception or a treaty tie-breaker.
Scenario C: The Accidental Resident (TRIGGERED)
Priya, a SaaS founder from India, spent 170 days in the US in 2025 attending conferences, meeting investors, and working from a San Francisco coworking space. Even if she spent zero days in the US in 2024 and 2023, her current-year presence alone gives her 170 weighted days. She also meets the 31-day minimum. But wait — 170 is less than 183, so she does not meet the test based on 2025 alone. However, if she spent even 40 days in 2024, the total becomes 170 + 13.3 = 183.3 — and she is a US tax resident. The prior years matter.
“You will be considered a United States resident for tax purposes if you meet the substantial presence test for the calendar year. To meet this test, you must be physically present in the United States on at least 31 days during the current year, and 183 days during the 3-year period that includes the current year and the 2 years immediately before that.”
— IRS.gov, Substantial Presence Test
Days That Do NOT Count
The IRS provides specific exclusions for certain categories of days. Understanding these exclusions is essential for digital nomads who may qualify. You do not count the following as days of presence: days you commute to work in the US from a residence in Canada or Mexico (if you regularly commute); days you are in the US for less than 24 hours while in transit between two places outside the United States; days you are present as a crew member of a foreign vessel; and days you are unable to leave the US because of a medical condition that developed while you were in the country. Additionally, “exempt individuals” — foreign government officials on A or G visas, teachers and trainees on J or Q visas, students on F, J, M, or Q visas, and professional athletes at charitable events — do not count their days of presence. To claim any of these exclusions, you must file Form 8843 with the IRS.
The Closer Connection Exception: Your First Line of Defense
Even if you meet the substantial presence test, the IRS provides an escape hatch: the closer connection exception under IRC §7701(b)(3)(B). This provision recognizes that someone who spends significant time in the US may still have their real life — their home, family, social connections, and economic ties — in another country. If you can demonstrate that your connection to a foreign country is closer than your connection to the United States, you can be treated as a nonresident alien despite meeting the day-count threshold.
To qualify for the closer connection exception, you must meet all four of the following requirements. First, you must have been present in the United States for fewer than 183 days during the current calendar year. Note that this is the actual day count for the current year — not the weighted formula. If you spent 183 or more actual days in the US during the year, the closer connection exception is not available to you. Second, you must have maintained a tax home in a foreign country during the entire year. Third, you must have had a closer connection to that foreign country than to the United States. Fourth, you must not have applied for, or taken steps toward, lawful permanent resident status (a green card) at any point during the year.
What the IRS Evaluates: The Closer Connection Factors
The IRS does not simply take your word that you have a closer connection to a foreign country. They evaluate a comprehensive list of factors, and the totality of the circumstances determines the outcome. These factors include, but are not limited to:
The closer connection exception is claimed by filing Form 8840 (Closer Connection Exception Statement for Aliens) with the IRS by the due date for filing your income tax return. If you do not have to file a US tax return, you must still send Form 8840 to the IRS by the return due date. Failure to timely file Form 8840 means you cannot claim the exception — unless you can demonstrate by clear and convincing evidence that you took reasonable steps to become aware of the filing requirement and made significant efforts to comply. This is a high bar. Do not miss this deadline.
Two-Country Exception
The IRS also allows you to claim a closer connection to two foreign countries (but not more than two) if you changed your tax home from one foreign country to another during the year and maintained a closer connection to each country than to the US during the period you had your tax home there. This is relevant for digital nomads who relocate their base mid-year — for example, moving from Lisbon to Bangkok.
Treaty Tie-Breaker Rules: Your Second Line of Defense
If the closer connection exception does not apply — perhaps because you spent 183 or more actual days in the US during the year — you may still have a lifeline: the treaty tie-breaker provision. The United States has income tax treaties with approximately 65 countries, and most of these treaties contain a “residency” article that provides tie-breaker rules for individuals who are considered tax residents of both the US and the treaty partner country simultaneously.
The treaty tie-breaker follows a hierarchical sequence of tests, applied in order until the tie is broken. The standard hierarchy, based on the OECD Model Tax Convention and adopted by most US treaties, is as follows:
1
Permanent Home
The individual is a resident of the country where they have a permanent home available to them. If they have a permanent home in both countries, proceed to the next test. A permanent home means a dwelling that is available continuously — not just for occasional short stays. For digital nomads, maintaining a lease or owned property in your home country is critical.
2
Center of Vital Interests
If the permanent home test is inconclusive, the individual is a resident of the country where their personal and economic relations are closer — their ‘center of vital interests.’ This considers family, social connections, occupation, political and cultural activities, place of business, and where they administer their property. This is the most subjective test and often the most contested.
3
Habitual Abode
If the center of vital interests cannot be determined, the individual is a resident of the country where they have a habitual abode — meaning the country where they spend more time. This is a straightforward day-count comparison between the two countries.
4
Nationality
If the habitual abode test is inconclusive (for example, roughly equal time in both countries), the individual is a resident of the country of which they are a national (citizen).
5
Mutual Agreement
If none of the above tests resolve the issue — which is extremely rare — the competent authorities of the two countries must settle the question by mutual agreement.
To invoke the treaty tie-breaker, you must file Form 8833 (Treaty-Based Return Position Disclosure Statement) with your US tax return. This form discloses that you are taking a position under a tax treaty that overrides the Internal Revenue Code. Failure to file Form 8833 can result in a $1,000 penalty per failure. Unlike Form 8840, which prevents you from being treated as a resident in the first place, Form 8833 is filed with a US tax return — you file the return but claim treaty nonresident status on it.
2025 Legislative Warning: OBBBA Proposal
The One Big Beautiful Bill Act (OBBBA), proposed in 2025, includes provisions that would narrow treaty tie-breaker eligibility for dual residents. Under the proposal, individuals who claim nonresidency under a tax treaty would face additional scrutiny and potential limitations. While this has not yet been enacted, digital nomads who rely on treaty tie-breakers should monitor this legislation closely and consult with a CPA about contingency planning.
The Tax Home Concept: Why Digital Nomads Are Uniquely Vulnerable
The concept of a “tax home” runs through every aspect of non-resident taxation, and it is where digital nomads face their greatest vulnerability. Your tax home, as defined by the IRS, is your regular or principal place of business or employment, regardless of where you maintain your family home. If you have no regular place of business, your tax home is your regular place of abode — the place where you normally live. And here is the problem: if you have no regular place of abode in any country, the IRS considers your tax home to be wherever you happen to be at the time.
For a traditional worker, the tax home concept is straightforward. An accountant in London has a tax home in London. A factory worker in São Paulo has a tax home in São Paulo. But for a digital nomad who works from Bali for two months, then Lisbon for three months, then Medellín for two months, then New York for one month — where is the tax home? If no single location qualifies as a “regular place of abode,” the IRS may argue that the nomad’s tax home is itinerant — meaning it moves with them. And if the nomad happens to be in the United States when this determination is made, the US becomes the tax home.
This matters enormously for the closer connection exception. Remember, to claim the closer connection exception, you must have maintained a tax home in a foreign country during the entire year. If the IRS determines that you have no fixed tax home — or worse, that your tax home is in the US — the exception collapses. The treaty tie-breaker’s “permanent home” test similarly requires you to have a dwelling available to you on a continuous basis in your home country.
How to Establish and Maintain a Foreign Tax Home
The solution is deliberate. Choose one country as your base and maintain a permanent home there — a lease, owned property, or a room in a family member’s home that is available to you at all times. Register your business there. Keep your bank accounts, driver’s license, voter registration, and social memberships in that country. File tax returns there (even if you owe nothing). Return regularly. The IRS note on the closer connection exception explicitly states that your home must be “available at all times, continuously, and not solely for short stays.” A month-to-month Airbnb does not qualify. A 12-month lease does.
Income Allocation: When You Work Both Inside and Outside the US
Even if you successfully avoid becoming a US tax resident — by staying below the substantial presence test threshold or claiming an exception — you may still owe US taxes on income earned from services performed within the United States. Under IRC §861(a)(3), compensation for personal services performed in the United States is US-source income, regardless of where the payer is located, where the contract was signed, or where the payment is received.
For digital nomads who split their time between the US and other countries, this means their income must be allocated between US-source and foreign-source based on where the services were actually performed. The standard allocation method is a time-based formula:
The Income Allocation Formula
US-Source Income = (Days Worked in US ÷ Total Work Days) × Total Income
Example: Sofia, a freelance graphic designer from Argentina, earns $120,000 per year. She works 240 days total and spends 30 of those days working from a coworking space in Miami. Her US-source income is (30 ÷ 240) × $120,000 = $15,000. This $15,000 is potentially subject to US taxation as income from services performed within the United States.
However, there is an important exception. Under IRC §861(a)(3), compensation for personal services performed in the US by a nonresident alien is not treated as US-source income if three conditions are met: (1) the individual is present in the US for 90 days or less during the tax year, (2) the compensation does not exceed $3,000, and (3) the services are performed for a foreign employer. For most digital nomads earning substantial income, this exception will not apply — but it is worth noting for those with minimal US presence.
The practical implication is clear: every day you open your laptop in a US coworking space, café, or hotel room, you are creating US-source income. This does not mean you should never work in the US — but it does mean you need to track your work days meticulously and understand the tax consequences. Many tax treaties provide relief by allowing services income to be taxed only in the country of residence if the individual is present in the other country for fewer than 183 days during the fiscal year and certain other conditions are met. Check your country’s specific treaty with the US.
State Tax Residency: The Trap Within the Trap
Federal tax residency is only half the story. Each US state sets its own rules for determining tax residency, and these rules operate independently of the federal substantial presence test. A digital nomad who carefully stays below the federal threshold may still trigger state tax residency — and state income taxes can be significant, ranging from 0% in states like Florida and Texas to over 13% in California.
New York is perhaps the most aggressive state for non-resident taxation. New York treats you as a statutory resident if you maintain a “permanent place of abode” in the state and spend more than 183 days there during the tax year. A “permanent place of abode” is broadly defined — it includes any dwelling maintained by you, whether or not you own it. If a friend lets you stay in their apartment and you have a key, that may qualify. New York also taxes non-residents on income derived from New York sources, meaning that even a few days of work in New York can create a filing obligation.
California is equally problematic. California presumes you are a resident if you are present in the state for more than 9 months (approximately 270 days) during the tax year. Even shorter stays can trigger residency if the Franchise Tax Board determines that you have sufficient connections to the state. California also has a reputation for aggressively auditing individuals who claim non-residency, particularly high-income earners. The state’s top marginal rate of 13.3% makes it one of the most expensive states for accidental residents.
The safest approach for digital nomads who spend time in the US is to concentrate their presence in states with no income tax: Florida, Texas, Wyoming, Nevada, South Dakota, Alaska, Tennessee, New Hampshire (no tax on earned income), and Washington. If you must spend time in high-tax states like New York or California, keep meticulous records of your days of presence and avoid establishing any connections that could be interpreted as a permanent place of abode — no long-term leases, no utility accounts, no voter registration, no driver’s licenses.
Case Studies: Real Scenarios, Real Consequences
The following case studies illustrate how the rules discussed above play out in practice. Each represents a composite of real situations encountered by non-resident digital nomads, with names and details changed for privacy. They demonstrate both the pitfalls and the planning opportunities available.
Case Study 1: Maria — The Freelance Designer Who Played It Safe
Portugal → US (seasonal) → Portugal
Maria is a freelance UX designer from Lisbon, Portugal. She earns approximately €95,000 per year from a mix of European and American clients. She loves spending January through March in Miami, where she rents an Airbnb and works from local cafés. In 2023, she spent 85 days in the US. In 2024, she spent 90 days. In 2025, she plans to spend 88 days.
Substantial Presence Test calculation for 2025: 88 (current year) + 30 (90 × ⅓) + 14.2 (85 × ⅙) = 132.2 weighted days. Maria is well below the 183-day threshold and does not meet the substantial presence test. She is not a US tax resident.
Income allocation: Maria works approximately 220 days per year. Of her 88 days in the US, she works on about 65 of them. Her US-source income is (65 ÷ 220) × €95,000 = approximately €28,068. Under the US-Portugal tax treaty (Article 14), independent personal services income is taxable only in Portugal unless Maria has a “fixed base” regularly available to her in the US. Since she uses different Airbnbs and cafés each year, she likely does not have a fixed base, and her income remains taxable only in Portugal.
Outcome: Maria owes no US federal tax. She files no US return. Her planning is sound.
Case Study 2: Raj — The SaaS Founder Who Triggered the Test
India → US (extended) → Bali → US
Raj is a SaaS founder from Bangalore, India. His company earns $280,000 per year in revenue. In 2023, he spent 60 days in the US attending tech conferences. In 2024, he spent 100 days — he found a great coworking community in Austin and extended his stay. In 2025, he spent 140 days, splitting time between Austin and San Francisco to be closer to potential investors.
Substantial Presence Test calculation for 2025: 140 (current year) + 33.3 (100 × ⅓) + 10 (60 × ⅙) = 183.3 weighted days. Raj meets the substantial presence test by a margin of just 0.3 days. He is treated as a US tax resident for 2025.
Closer connection exception: Raj was present in the US for 140 days in 2025, which is fewer than 183 actual days. He maintains an apartment in Bangalore, his parents live there, and his company is registered in India. He files Indian tax returns and holds an Indian passport and driver’s license. He files Form 8840 and successfully claims the closer connection exception. However, this was uncomfortably close — if he had spent just one more day in the US in any of the three years, the math would have been different.
Outcome: Raj escapes via the closer connection exception, but he was one day away from disaster. His CPA advises him to cap US presence at 120 days going forward.
Case Study 3: Carlos — The Consultant Who Didn’t Know the Rules
Brazil → US (190 days) → Brazil
Carlos is a management consultant from São Paulo, Brazil. He earns R$800,000 (approximately $160,000) per year from Brazilian and international clients. In 2025, a major US client asked him to work on-site in New York for an extended project. He spent 190 days in the US — significantly more than he had planned. In prior years, he had spent fewer than 30 days in the US.
Substantial Presence Test: With 190 days in the current year alone, Carlos exceeds the 183-day threshold even without counting prior years. He meets the substantial presence test.
Closer connection exception: Not available. Carlos was present in the US for more than 183 actual days during 2025, which disqualifies him from the closer connection exception entirely.
No treaty protection: Unlike many other countries, Brazil does not have an income tax treaty with the United States. This means Carlos cannot use a treaty tie-breaker to claim nonresident status. With 190 days of physical presence, he meets the substantial presence test and is treated as a US tax resident for the year — subject to US taxation on his worldwide income, not just his US-source income.
Carlos’s only remaining option is to file a first-year election under IRC §7701(b)(4) to be treated as a dual-status alien, which would limit US taxation to only his US-source income for the portion of the year before he met the substantial presence test. However, this is complex and requires careful coordination with his Brazilian tax filings.
Outcome: Without a treaty to fall back on, Carlos faces US taxation on his worldwide income for 2025. His US tax liability on $160,000 of worldwide income is approximately $35,000 — far more than the $22,000 he would have owed on just his US-source income. He also must file Form 1040 (not 1040-NR), report his Brazilian bank accounts on FBAR, and pay his CPA $4,500 for the complex dual-status return. The lesson: Brazilians must be especially careful about their US day count because there is no treaty safety net.
Case Study 4: Yuki — The True Nomad Without a Base
Japan → Thailand → US → Portugal → Mexico → US
Yuki is a content creator and online course seller from Tokyo, Japan. She earns ¥18,000,000 (approximately $120,000) per year from course sales and YouTube ad revenue. She gave up her apartment in Tokyo two years ago and has been traveling continuously — spending 2-3 months in each location. In 2025, she spent 75 days in the US (split between two trips to Los Angeles), 90 days in Thailand, 60 days in Portugal, 80 days in Mexico, and 60 days in Japan (staying with her parents).
The tax home problem: Yuki has no permanent home anywhere. She does not maintain a lease, she does not own property, and she does not return to any single location regularly enough for it to qualify as her “regular place of abode.” Under IRS rules, her tax home is itinerant — it is wherever she happens to be. This means she cannot claim the closer connection exception if she ever needs it, because she cannot demonstrate a tax home in a foreign country “during the entire year.”
The fix: Yuki’s CPA advises her to sign a 12-month lease on a small apartment in Tokyo (or even in Bangkok, where rent is cheaper). She should register her business address there, maintain a bank account, and return regularly. This establishes a fixed tax home that she can point to if the IRS ever questions her status. The cost of a modest lease — perhaps $500/month — is trivial compared to the tax exposure of being treated as a US resident on $120,000 of worldwide income.
Outcome: Yuki is currently safe from the substantial presence test, but her lack of a fixed tax home is a ticking time bomb. One extended US trip could change everything, and without a foreign tax home, she would have no defense.
James Baker CPA discusses LLC formation strategies for international entrepreneurs
Common Mistakes Digital Nomads Make
The following case studies illustrate how the rules discussed above play out in practice. Each represents a composite of real situations encountered by non-resident digital nomads, with names and details changed for privacy. They demonstrate both the pitfalls and the planning opportunities available.
1
Not Tracking Days of Presence
This is the most common and most dangerous mistake. Digital nomads who travel frequently often lose track of exactly how many days they have spent in the United States. They remember the big trips but forget the weekend layovers, the day trips from Canada, and the connecting flights through US airports. The IRS, however, has access to CBP (Customs and Border Protection) entry and exit records, which track every single entry and departure with precision. If there is ever a discrepancy between your claimed days and the CBP records, the IRS will use the CBP data. Use a dedicated day-tracking app or spreadsheet, updated in real time, and cross-reference it with your I-94 records (available at i94.cbp.dhs.gov) at least quarterly.
2
Confusing the “183-Day Rule” Across Different Contexts
The number 183 appears in multiple, distinct tax rules, and confusing them is a recipe for disaster. The substantial presence test uses 183 as the weighted threshold across three years. The closer connection exception requires fewer than 183 actual days in the current year. Many tax treaties have their own 183-day rule for services income — typically stating that services income is taxable only in the country of residence if the individual is present in the other country for fewer than 183 days during the fiscal year. And the capital gains exemption for non-residents requires fewer than 183 days of presence. Each “183” means something different, applies to a different time period, and has different consequences. Know which one you are dealing with.
3
Failing to File Form 8840 or Form 8833
Many digital nomads who are aware of the closer connection exception or treaty tie-breaker provisions assume that simply qualifying is enough. It is not. You must affirmatively claim these exceptions by filing the appropriate forms with the IRS by the tax return due date. Form 8840 must be filed to claim the closer connection exception. Form 8833 must be filed to claim a treaty-based position. If you fail to file these forms on time, you lose the ability to claim the exception — and you are treated as a US tax resident with worldwide filing obligations. These forms are your shield. Do not leave them unfiled.
4
Ignoring State Tax Residency Rules
A digital nomad who carefully manages their federal day count may still walk into a state tax trap. New York’s 183-day rule with its broad definition of “permanent place of abode,” California’s 9-month presumption, and other state-specific rules operate independently of the federal substantial presence test. We have seen cases where a non-resident who owed zero federal tax was hit with a $15,000 New York state tax bill because they maintained a sublet in Manhattan and spent 184 days in the state. Always research the specific rules of every state where you spend significant time.
5
Not Maintaining a Foreign Tax Home
The allure of the nomad lifestyle is the freedom to go anywhere. But from a tax perspective, having no fixed home anywhere is the worst possible position. Without a foreign tax home, you cannot claim the closer connection exception. Without a permanent home abroad, the treaty tie-breaker’s first test fails. Without a regular place of abode, the IRS may consider your tax home to be wherever you are — which could be the United States. The solution is simple but requires discipline: maintain a lease or owned property in one country, return regularly, and keep your official documents tied to that location.
6
Assuming “No US Clients” Means “No US Tax Exposure”
The source of your income and the location of your clients are irrelevant to the substantial presence test. The test is based purely on physical presence in the United States. A digital nomad who works exclusively for European clients but spends 185 days in the US is a US tax resident — and must report worldwide income, including the European client income. Similarly, income allocation for services performed in the US applies regardless of who the client is. Working for a German company from a New York café creates US-source income just as surely as working for an American company does.
Planning Strategies for Digital Nomads
The rules are complex, but the planning strategies are surprisingly straightforward. The key is to be proactive rather than reactive — to structure your travel and business before you cross any thresholds, not after.
Strategy 1: The 120-Day Safe Harbor
If you limit your US presence to 120 days or fewer per year, consistently, your weighted three-year total will never exceed 180 days (120 + 40 + 20 = 180). This provides a comfortable buffer below the 183-day threshold. We recommend 120 days as the maximum for digital nomads who want to visit the US regularly without any risk of triggering the substantial presence test. If you need more flexibility in a particular year, you can “borrow” from prior years — for example, spending 140 days in the US in one year is safe if you spent fewer than 100 days in each of the two prior years.
Strategy 2: Establish a Bulletproof Foreign Tax Home
Choose one country as your base and commit to it on paper. Sign a 12-month lease (or own property). Register your business there. Open bank accounts. Get a local phone number. File tax returns. Join a gym, a professional association, or a community organization. The more ties you have to one foreign country, the stronger your closer connection argument becomes. This does not mean you have to spend the majority of your time there — but you need to be able to demonstrate that it is your “home” in every meaningful sense.
Strategy 3: Concentrate US Time in No-Tax States
If you are going to spend time in the US, spend it in states with no income tax: Florida, Texas, Wyoming, Nevada, South Dakota, Alaska, Tennessee, or Washington. This eliminates the state tax residency risk entirely. Many digital nomads choose Miami (Florida) or Austin (Texas) as their US base specifically for this reason. Avoid establishing any connections to high-tax states like New York or California — no apartments, no driver’s licenses, no voter registration, no mailing addresses.
Strategy 4: Use a US LLC Without Creating ECI
A US LLC can provide significant benefits — US bank accounts, payment processor access, credibility with US clients — without creating US tax obligations, as long as you perform your services outside the United States. The LLC itself does not create ECI. Your physical location when performing services does. A non-resident who owns a Wyoming LLC but works exclusively from Lisbon has foreign-source income that is not subject to US tax. The LLC is simply a legal structure; the tax treatment depends on where the work happens.
Strategy 5: Document Everything, Always
In the event of an IRS inquiry, your documentation is your defense. Maintain a daily log of where you are and where you work. Keep flight itineraries, boarding passes, passport stamps, hotel receipts, coworking invoices, and calendar entries. Download your I-94 records quarterly from the CBP website. Save bank and credit card statements that show transaction locations. If you ever need to file Form 8840 or Form 8833, this documentation will support your position. If you cannot prove where you were, the IRS will assume you were in the United States.
Related Guides & Services
LLC Formation & Setup
Form your Wyoming or Delaware LLC — the foundation for banking, payments, and credibility.
US Bank Account Setup
Open a Mercury or Relay bank account remotely. Connect to Stripe, Whop, and payment processors.
Tax Strategy Planning
Understand ECI vs. FDAP, treaty benefits, and ITIN acquisition for your business income.
Compliance & Reporting
Annual Form 5472, Form 1040-NR, state reports, and FBAR. Zero tax doesn’t mean zero paperwork.
Remote Service Providers
If you provide services to US clients, understand the sourcing rules that keep your income tax-free.
Stock & Crypto Traders
Capital gains exemption, dividend withholding, and crypto taxation for non-resident investors.
Frequently Asked Questions
Detailed answers to the most common questions about US tax residency, the substantial presence test, and tax planning for digital nomads.
There is no single magic number. The substantial presence test uses a weighted 3-year formula: all days in the current year, plus 1/3 of days in the prior year, plus 1/6 of days two years prior. If this total reaches 183, you become a US tax resident. Additionally, you must be present at least 31 days in the current year. A safe rule of thumb is to stay under 120 days per year, which keeps your 3-year weighted total at 180 — just below the threshold. However, even fewer days may be advisable depending on your prior-year presence.
Yes. Under IRS rules, you are treated as present in the United States on any day you are physically present in the country at any time during the day. This means both your arrival day and departure day count as full days of presence. The only exception is if you are in transit between two places outside the United States and your US presence is less than 24 hours — but this applies only to transit, not to arriving at or departing from a US destination.
The closer connection exception allows you to be treated as a nonresident even if you meet the substantial presence test, provided you were present in the US less than 183 days during the current year, maintained a tax home in a foreign country for the entire year, and had a closer connection to that country than to the US. You must file Form 8840 (Closer Connection Exception Statement for Aliens) by the tax return due date. The IRS evaluates factors including where your permanent home, family, personal belongings, bank accounts, driver’s license, and social affiliations are located.
Your tax home is your regular or principal place of business or employment. If you have no regular place of business, your tax home is your regular place of abode — where you normally live. For digital nomads who move frequently, this can be problematic. If you have no fixed abode anywhere, the IRS may consider your tax home to be wherever you happen to be, which could be the United States if you are present there. Maintaining a permanent home abroad — a lease, owned property, or consistently used residence — is critical for establishing a foreign tax home.
Yes. If you are a tax resident of a country that has a tax treaty with the United States, you can use the treaty’s tie-breaker provisions to be treated as a nonresident alien for US tax purposes, even if you meet the substantial presence test. You must file Form 8833 (Treaty-Based Return Position Disclosure) with your US tax return. The treaty tie-breaker typically follows a hierarchy: permanent home, center of vital interests, habitual abode, and then nationality. However, note that the 2025 OBBBA proposal may restrict treaty tie-breaker eligibility in the future.
Potentially yes. Income from personal services performed within the United States is US-source income under IRC §861(a)(3). If you are working from a US coworking space, café, or client’s office, the income you earn during those days is attributable to services performed in the US. For non-residents, this income may be classified as effectively connected income (ECI) if you are engaged in a US trade or business. The standard allocation method is: (days worked in US / total work days) × total income = US-source income.
The IRS uses a time-based allocation for personal services income. You divide the number of days you performed services in the United States by the total number of days you performed services everywhere, then multiply by your total income. For example, if you worked 30 days in the US and 220 days total, 13.6% of your income would be US-source. Keep meticulous records of where you work each day — calendar entries, coworking receipts, flight records, and hotel bookings all serve as documentation.
Yes, and this is a frequently overlooked issue. Each state sets its own residency rules independently of the federal substantial presence test. New York, for example, treats you as a resident if you maintain a permanent place of abode in the state and spend more than 183 days there. California presumes residency after 9 months of presence. Some states like Florida, Texas, and Wyoming have no income tax at all. If you spend significant time in a particular state, research that state’s specific rules — you could owe state taxes even if you are not a federal tax resident.
If you meet the substantial presence test, you are treated as a US tax resident and must report your worldwide income to the IRS on Form 1040. This includes income from all sources, not just US-source income. You would also be subject to self-employment tax on business income. However, you may still be able to claim the closer connection exception (Form 8840) if you were present less than 183 days in the current year and maintained a foreign tax home, or use a treaty tie-breaker (Form 8833) if your country has a tax treaty with the US. Acting quickly and consulting a CPA is essential.
Yes. The IRS excludes several categories of days: days you commute to work in the US from Canada or Mexico, days you are in transit between two foreign locations and present in the US for less than 24 hours, days you are a crew member of a foreign vessel, days you cannot leave due to a medical condition that developed while in the US, and days you qualify as an exempt individual (foreign government officials on A/G visas, teachers/trainees on J/Q visas, students on F/J/M/Q visas, and professional athletes at charitable events). You must file Form 8843 to claim these exclusions.
It depends on your business model. If you provide services entirely from outside the US to US or non-US clients, a US LLC can provide credibility, access to US banking and payment processors, and potential tax benefits — your income would generally be foreign-source and not subject to US tax. However, if you frequently work from within the US, an LLC could create a US trade or business, making your US-source income effectively connected income (ECI) subject to US tax. The LLC itself does not create the tax obligation — your physical presence and where you perform services does.
The Foreign Earned Income Exclusion (FEIE) under IRC §911 allows US citizens and resident aliens to exclude up to $130,000 (2025) of foreign earned income from US taxation. However, this exclusion is only available to US citizens and resident aliens — not to nonresident aliens. If you are a non-US citizen digital nomad who has not triggered the substantial presence test, you do not need the FEIE because you are not taxed on worldwide income in the first place. The FEIE is relevant only if you accidentally become a US tax resident or if you are a US citizen living abroad.
Maintain comprehensive documentation including: passport stamps and entry/exit records (I-94 records available at i94.cbp.dhs.gov), flight itineraries and boarding passes, hotel and accommodation receipts, coworking space membership records, calendar entries showing where you worked each day, bank and credit card statements showing transaction locations, and any visa documentation. The IRS can access CBP entry/exit data, so your records must be consistent. Digital nomads should use a day-tracking spreadsheet or app updated in real time.
Yes, but it requires careful planning. The key is staying below the substantial presence test threshold in the US while also understanding the tax residency rules of every country where you spend significant time. Many countries have their own 183-day rules or other residency triggers. You could theoretically become a tax resident of multiple countries simultaneously. Tax treaties with tie-breaker provisions help resolve dual residency, but not all country pairs have treaties. The safest approach is to maintain one clear tax home — a country where you have a permanent residence, pay taxes, and maintain your strongest personal and economic ties.
Failure to timely file Form 8840 means you cannot claim the closer connection exception, and you will be treated as a US tax resident if you met the substantial presence test. For Form 8833, failure to disclose a treaty-based return position can result in a $1,000 penalty per failure (or $10,000 for C corporations). Beyond these specific penalties, being treated as a US tax resident when you should have been a nonresident means you would owe tax on your worldwide income, plus potential penalties and interest on unpaid taxes. These forms are your defense — filing them is not optional.

Maximize Your Investment Returns with Proper Tax Planning
Whether you trade US stocks, crypto, or both — understanding the tax rules is the difference between keeping your gains and losing them to unnecessary withholding. Schedule a free consultation to review your investment structure and ensure you are not leaving money on the table.