The Substantial Presence Test: When the IRS Treats You as a US Tax Resident
The United States is one of only two countries that taxes citizens on worldwide income regardless of where they live. What most non-Americans don't realize is that you don't need to be a citizen, and you don't need a green card. If the IRS determines you've spent enough time on US soil, you're treated identically to a US citizen for tax purposes. Your worldwide income becomes reportable. Your foreign bank accounts become disclosable. And the penalties for getting it wrong are severe.
The Substantial Presence Test (SPT) is not a subjective evaluation. It's a purely mechanical, backward-looking weighted formula that aggregates your physical days in the United States over a rolling three-year window. Trip the threshold, and you go from being taxed only on US-sourced income to being taxed on everything you earn globally.
Who it applies to
For federal income tax purposes, the IRS classifies every person who is not a US citizen as an "alien." Aliens fall into two categories: resident aliens and nonresident aliens. The difference is enormous.
Resident aliens are taxed in the exact same manner as US citizens. Worldwide income, including foreign wages, overseas dividends, international capital gains, rental income from properties abroad, and business profits from non-US entities, is subject to US federal income tax at graduated rates. On top of that, resident aliens must comply with the full suite of global asset reporting: foreign bank accounts (FBAR), foreign financial assets (Form 8938), interests in foreign corporations (Form 5471), and foreign trust relationships (Forms 3520/3520-A). For a detailed breakdown of these requirements, see our FBAR and FATCA guide.
Nonresident aliens face a much narrower scope. They're generally taxed only on income effectively connected with a US trade or business (at graduated rates) or on fixed, determinable, annual, or periodical income sourced within the US (typically subject to a flat 30% withholding unless reduced by treaty). Their foreign assets and global business operations remain outside IRS jurisdiction.
Under IRC Section 7701(b), a foreign national becomes a US tax resident by satisfying either of two tests:
- The Green Card Test: The individual holds lawful permanent resident status. Residency begins the moment they are physically present with a valid green card and continues until the status is officially revoked or abandoned.
- The Substantial Presence Test: The individual meets the required threshold of physical days in the US over a defined three-year lookback period, regardless of immigration visa status.
The practical implication here is significant: someone who has never applied for a green card, who only visits on a B-1 business visa or B-2 tourist visa, can be reclassified as a US tax resident based solely on their cumulative travel patterns.
The weighted formula
The SPT is a two-part calculation. To be classified as a US resident alien for a given calendar year, you must satisfy both conditions:
- You were physically present in the United States for at least 31 days during the current calendar year.
- You accumulated 183 or more weighted days of physical presence during the three-year period that includes the current year and the two preceding years.
The 183-day threshold is not a simple sum. The IRS applies a weighted formula that places the heaviest emphasis on the current year and applies diminishing fractional multipliers to prior years:
- Current year: All days counted at 100% (multiplied by 1)
- First preceding year: Days counted at 33.3% (multiplied by 1/3)
- Second preceding year: Days counted at 16.7% (multiplied by 1/6)
The formula:
(Days in current year x 1) + (Days in year -1 x 1/3) + (Days in year -2 x 1/6) = Total weighted days
If the total equals or exceeds 183, you've triggered the test.
Calculator scenarios
Using the 2026 tax year:
Scenario A: The 120-day rule of thumb. Sarah spends exactly 120 days in the US each year in 2024, 2025, and 2026. Her calculation: 120 + (120 x 1/3) + (120 x 1/6) = 120 + 40 + 20 = 180 weighted days. Because 180 is strictly less than 183, she remains a nonresident alien. This is the widely cited "120-day rule of thumb" that international tax planners use to keep clients safely below the threshold.
Scenario B: The accidental resident. John, a Brazilian entrepreneur, spends 150 days in the US in 2026, 180 days in 2025, and 210 days in 2024. His numbers: 150 + (180 x 1/3) + (210 x 1/6) = 150 + 60 + 35 = 245 weighted days. Well over the 183-day limit. John is now a US resident alien, and his global corporate dividends, passive income, and business profits are all subject to IRS taxation.
Scenario C: The cross-border commuter. An individual spends 100 days in the US in 2026, 150 days in 2025, and 120 days in 2024. That gives us: 100 + (150 x 1/3) + (120 x 1/6) = 100 + 50 + 20 = 170 weighted days. Below the threshold. Nonresident alien.
What counts as a "day"
The definition is broad. You are treated as present in the United States on any day you are physically within the country at any point during a 24-hour period. Even a single minute on US soil counts as a full day.
The geographic definition of "United States" for this purpose includes all 50 states, the District of Columbia, and US territorial waters. It does not include US possessions and territories (Puerto Rico, Guam, US Virgin Islands) and does not include US airspace. A connecting flight that doesn't land doesn't count, but a layover where you clear customs does.
Exempt individuals
The IRC provides statutory carve-outs that allow certain categories of foreign nationals to exclude days of physical presence from the formula. An important clarification: "exempt individual" here means exempt from counting days toward the test, not exempt from US income tax on US-sourced income.
Several transient presence exclusions apply universally:
- Regular commuters from Canada or Mexico: Days commuting to work in the US from a residence across the border are excluded entirely.
- Transit passengers: Days in the US for less than 24 hours while in transit between two foreign locations are excluded.
- Medical emergencies: Days where an individual intended to leave the US but was unable to due to a medical condition that arose while present are excluded. Pre-existing conditions the individual was aware of before entering do not qualify.
Four categories of visa holders can also exclude their days:
- Foreign government officials (A, G visas): Diplomats, consular officers, and full-time employees of international organizations. No time limit.
- Teachers and trainees (J, Q visas): Exempt, subject to the "2-of-6 rule." An individual cannot claim this exemption if they've been exempt as a teacher, trainee, or student for any part of two of the six preceding calendar years.
- Students (F, J, M, Q visas): Exempt, subject to a strict "5-year rule." After five calendar years as an exempt student or trainee, the exemption expires unless the student can demonstrate no intent to reside permanently in the US.
- Professional athletes (B-1, P-1 visas): Exempt only for days spent competing in a qualifying charitable sports event.
To legally exclude days under any visa-based exemption or the medical condition exception, you must file Form 8843 (Statement for Exempt Individuals) with the IRS. Skip this form, and the IRS will count every day of your presence, potentially triggering the SPT and classifying you as a US resident alien. The only remedy at that point is demonstrating by "clear and convincing evidence" that you took reasonable steps to become aware of the filing requirement and made significant efforts to comply. That is an extraordinarily high bar to clear.
The Closer Connection Exception
If you trigger the Substantial Presence Test through the weighted formula, you are presumptively a US resident alien. But IRC Section 7701(b)(1)(B) provides an escape valve: the Closer Connection Exception. This allows an individual who mathematically meets the 183-day weighted threshold to override the test and maintain nonresident alien status by proving their economic, personal, and legal ties are anchored in a foreign country.
All four of these conditions must be satisfied:
- The 183-day hard stop: You must have been physically present in the US for fewer than 183 actual days during the current calendar year. If your real (unweighted) days in the current year reach 183, the Closer Connection Exception is legally unavailable, no matter how strong your foreign ties are.
- Foreign tax home: You must maintain a tax home in a foreign country for the entire calendar year.
- Closer connection to that foreign country: You must demonstrate that during the year you maintained more significant contacts with the foreign country than with the US.
- No immigrant intent: You must not have filed any application for, or taken steps toward, lawful permanent resident status.
The "closer connection" determination is a facts-and-circumstances analysis. The IRS looks at: location of your permanent home, where your immediate family resides, location of personal property, social and business affiliations, primary banking relationships, where you vote and hold a driver's license, and the country of residence listed on official forms (including whether you file W-8BEN rather than W-9). They're building a profile of where your life actually happens, not just where you say it does.
Form 8840 requirements
The procedural mechanism for claiming the Closer Connection Exception is Form 8840 (Closer Connection Exception Statement for Aliens), a detailed questionnaire about your significant contacts attested under penalties of perjury.
If you have US-sourced income requiring a tax return, attach Form 8840 to your Form 1040-NR. If you have no US filing obligation, Form 8840 must be mailed independently to the IRS in Austin, Texas, with a deadline of June 15 of the year following the tax year in question.
Miss the filing deadline and you lose the ability to claim the Closer Connection Exception entirely. The IRS will classify you as a US resident alien subject to worldwide taxation, and the "clear and convincing evidence" standard for retroactive remedy is nearly impossible to meet during an examination.
This form must be filed annually. It is not a one-time election. Every year you trip the weighted formula and want to maintain nonresident status, you need a fresh Form 8840 on file.
Treaty tiebreaker
When your actual physical presence in the current calendar year reaches 183 days or more, Form 8840 is off the table. US domestic law definitively classifies you as a resident alien.
However, if you are simultaneously considered a tax resident of a foreign country under that country's domestic law, and that country has a bilateral income tax treaty with the United States, you may invoke the treaty's residency tiebreaker provisions to avoid double taxation.
Most US tax treaties (including those with the UK, Canada, and major European partners) use a standardized, sequential series of tests derived from the OECD Model Tax Convention:
- Permanent home: The country where you have a permanent home continuously available to you.
- Center of vital interests: If you have homes in both countries, the analysis moves to where your personal and economic relations are closer.
- Habitual abode: If vital interests can't be determined, residency goes to the country where you live regularly and habitually.
- Nationality/citizenship: If habitual abode is indeterminate, the tiebreaker defaults to your country of citizenship.
- Mutual agreement: If all else fails, the competent authorities of both countries settle it through mutual agreement procedures.
If you successfully claim residency in the treaty partner country, you are treated as a treaty nonresident of the United States. You file Form 1040-NR, pay US taxes only on US-sourced income, and your foreign income and international business profits stay outside IRS jurisdiction.
Claiming a treaty tiebreaker requires filing Form 1040-NR and attaching Form 8833 (Treaty-Based Return Position Disclosure), explicitly citing the treaty article you're relying on. Failure to file Form 8833 can result in a $1,000 penalty and potential denial of the treaty benefit.
Here's where it gets tricky: even if you successfully claim treaty nonresidency and shield your foreign income from US tax, the IRS and Treasury still classify you as a US tax resident for information reporting purposes. A treaty nonresident remains legally obligated to file FBARs (FinCEN Form 114), Form 8938, Form 5471 for controlled foreign corporations, and Forms 3520/3520-A for foreign trusts. The penalties for non-compliance start at $10,000 per form and can escalate to 50% of the account balance for willful violations. The IRS enforces them aggressively. It is entirely possible to win the treaty argument, owe zero in actual taxes, and still face six-figure penalties for not reporting the accounts that generated that untaxed income.
Canadian snowbird planning
The annual migration of Canadian snowbirds to Florida, Arizona, and California creates chronic exposure to the Substantial Presence Test. This is not a theoretical risk. US Customs and Border Protection and the Canada Border Services Agency operate a shared Entry/Exit Information System, and border crossing data flows between them in real time. The IRS can reconstruct a Canadian citizen's physical presence down to the exact day.
Under US immigration law, Canadians can generally enter on B-2 visitor visas for up to six months within a 12-month period. But immigration limits and tax limits are two different things.
A Canadian who spends 120 days per year in the US generates a rolling SPT weighted total of 180 days, keeping them just below the 183-day threshold. Snowbirds who push to five or six months per year will trip the SPT based on fractional days carried over from prior years. Provided they stay under 183 actual days in the current year, the primary defense is filing Form 8840 to claim the Closer Connection Exception. For retired Canadians who maintain their permanent home, provincial healthcare, primary bank accounts, and social ties in Canada, demonstrating the closer connection is typically straightforward. But only if the form is actually filed by June 15.
If a Canadian snowbird exceeds 182 actual days in the US in a single calendar year, Form 8840 is no longer available. The fallback is invoking the Canada-US Income Tax Treaty tiebreaker, which requires filing Form 1040-NR along with Form 8833. The treaty will generally protect Canadian-source pensions (OAS, CPP), investment income, and capital gains from US income taxation. What it does not do is exempt the individual from US foreign information reporting. A Canadian snowbird using the treaty tiebreaker must still report Canadian bank accounts (FinCEN 114), Tax-Free Savings Accounts, and Registered Education Savings Plans via Forms 3520 and 3520-A.
There is also the matter of US estate tax exposure. If a Canadian owns US real property exceeding $60,000 in value, their estate may be subject to US estate taxes upon death. The overall 2026 US estate tax exemption is $15 million, but that applies to US domiciliaries. Non-domiciliary estates receive only a $60,000 exemption on US situs assets, making cross-border estate planning essential for any snowbird with US property. For guidance on how long-term US travel intersects with exit planning, see our US exit tax guide.
UK and UAE traveler planning
UK travelers: treaties and state tax traps
For UK-based executives conducting business in the US, the US-UK Income Tax Treaty provides mechanisms for mitigating double taxation, but execution demands precision.
Under domestic US law, a UK resident performing services in the US is subject to US income tax on wages allocated to those specific US workdays. The US-UK treaty provides a "183-day rule" exemption for employment income: the UK employee's wages remain taxable only in the UK if they are present in the US for fewer than 183 days in a 12-month period, their compensation is paid by a non-US employer, and the cost is not borne by a US Permanent Establishment of the employer.
If a UK executive spends substantial time in the US, they may inadvertently create a Permanent Establishment for their UK company. A home office or extended hotel stay used consistently for business can constitute a fixed place of business under the OECD Model Tax Convention, making the UK company's profits attributable to that US presence subject to US corporate taxation.
What consistently catches UK executives off guard is state-level taxation. The US-UK treaty is strictly a federal agreement. Individual US states are not bound by it. Currently, 41 states tax out-of-state employees, and states like New York and California apply their own statutory residency tests aggressively. A UK executive who uses Form 8833 to claim treaty nonresidency at the federal level may still be classified as a statutory resident of California, subjecting their worldwide income to California's state income tax (over 13%) without the benefit of a UK foreign tax credit. Federal nonresidency and state tax residency can and do coexist.
UAE entrepreneurs: the no-treaty problem
For UAE nationals doing business in the US, the tax landscape is exceptionally difficult because of one structural gap: the United States has no income tax treaty with the UAE.
No treaty means no tiebreaker rules, no mutual agreement procedures, and no reduced withholding rates on passive income. If a UAE-based entrepreneur triggers the Substantial Presence Test by accumulating 183 weighted days in the US, they cannot file Form 8833 to break the tie. They are treated identically to a US citizen: worldwide income, including profits generated by UAE Free Zone companies, becomes fully taxable at standard US federal rates.
For UAE entrepreneurs, the only defenses against US residency are meticulous day-counting to ensure the SPT formula is never breached, or the Closer Connection Exception (Form 8840) if they remain under 183 actual days in the current year.
For US citizens already residing in the UAE, the local zero percent personal income tax does not eliminate US obligations. The Foreign Earned Income Exclusion (FEIE) allows qualifying expats to exclude up to $132,900 of foreign earned income from US federal taxation for 2026, provided they meet the Physical Presence Test or the Bona Fide Residence Test. But the FEIE applies only to earned income. Passive income, dividends, and corporate profits remain fully taxable. For a comparison of the FEIE and Foreign Tax Credit approaches, see our FEIE vs. FTC analysis.
Because the UAE introduced a 9% corporate tax in 2023 for profits exceeding AED 375,000, US entrepreneurs operating UAE entities can now use the Foreign Tax Credit to offset their US liability. The absence of a treaty, however, makes entity classification under CFC and GILTI rules harder to predict.
Operating from a low-tax jurisdiction also draws heightened IRS scrutiny. UAE banks routinely share account data with the US Treasury under FATCA provisions. For UAE residents who accidentally trigger the SPT, failing to disclose offshore wealth carries penalties that can quickly erode the capital base of an enterprise. For a full review of how cross-border structures interact with US information reporting, see our family office structuring services.
| Reporting requirement | 2026 threshold (single filer abroad) | Covered assets | Deadline and penalty | |---|---|---|---| | FBAR (FinCEN 114) | Aggregate value exceeds $10,000 at any time | Foreign bank and financial accounts | April 15 (Oct 15 extension). Up to 50% of balance for willful failure | | FATCA (Form 8938) | Exceeds $200,000 at year-end or $300,000 at any time | Bank accounts, foreign stocks, foreign partnership interests | Filed with Form 1040. $10,000 base penalty |
The Substantial Presence Test is a mechanical formula with no room for discretion. Either you meet the threshold or you don't. The consequences of miscounting even a handful of days include worldwide US taxation, mandatory foreign asset disclosure, and penalties that can exceed the tax liability itself. For anyone regularly spending time in the United States, the planning comes down to four steps: count your days using the weighted formula (not a simple calendar count); file Form 8840 every year you trip the weighted formula but stay under 183 actual days; invoke the treaty tiebreaker via Form 8833 if you exceed 182 actual days and a bilateral treaty exists; and treat information reporting as a separate obligation that runs in parallel regardless of which exception you claim.
The margin between nonresident alien and US tax resident is narrow, and the cost of landing on the wrong side is not.
Disclaimer: This article is educational in nature and should not be construed as tax or legal guidance. We strongly recommend engaging qualified tax and legal advisors to address your particular circumstances.