Skip to main content
Tax Residency

Substantial presence test: are your US days making you a US tax resident?

Substantial presence test: are your US days making you a US tax resident?
In this Article

Sixty days in the US this year. Clean, right? On my reading, the IRS formula says otherwise if you also logged 120 days last year and 150 the year before: the weighted three-year total lands at 125 days, which clears 31 but falls short of 183. Change those numbers slightly and you trip the substantial presence test before you realize it.

The substantial presence test is the IRS’s mechanical day-count formula that determines whether a non-citizen without a green card is treated as a US tax resident for the calendar year. Trip it, and the IRS taxes you on worldwide income, the same as any American citizen. The test applies separately every calendar year, but it reaches back across three years, and that backward-looking structure is where mobile founders and remote workers most often miscalculate.

How the substantial presence test works

The three-year day-count formula

You meet the substantial presence test if you are physically present in the US for at least 31 days in the current calendar year AND your weighted three-year total reaches 183 days or more. The weighting is exact: 100% of days in the current year, one-third of days in the first preceding year, one-sixth of days in the second preceding year.

Person counting cash while reviewing documents related to the substantial presence test

The worked example is worth running concretely. Say you spend 60 days in the US in 2026, 120 days in 2025, and 150 days in 2024. Your weighted total is 60 + (120 ÷ 3) + (150 ÷ 6) = 60 + 40 + 25 = 125 days. You clear the 31-day floor but fall short of 183, so you remain a nonresident alien for 2026. Add just 25 more days to your 2025 tally and the picture shifts. Before you commit to a US business trip, run our substantial presence test calculator to model the outcome before you book.

The test resets each January 1, but the two-year lookback means the days you accumulate this year will drag into future calculations at one-third and one-sixth weight. Frequent travelers often watch their current-year number carefully while forgetting the tail of prior-year days that is quietly building in the denominator.

Why this matters for mobile founders

I watched this catch a founder based in Singapore. He spent about 70 days in the US in 2025 across investor meetings and product sprints, which on paper looks well clear of any threshold. What nearly tripped him was the tail: roughly 90 days in 2024 and a long 2023, weighted in at one-third and one-sixth, quietly pushing his three-year total toward the line. He had only ever counted the current year. The advisers he brought in to run the SPT properly caught it before he booked a fourth-quarter trip that would have flipped him to resident alien.

Resident alien status triggers Form 1040 filing on worldwide income, Foreign Account Tax Compliance Act (FATCA) reporting via Form 8938 if foreign financial assets exceed $200,000 at year-end or $300,000 at any time during the year for single filers, or $400,000 / $600,000 respectively for married filing jointly (the thresholds for US persons living abroad), and exposure to US estate and gift tax on worldwide assets. The Foreign Earned Income Exclusion (FEIE) via Form 2555 is available only to US citizens and resident aliens who meet the tax home test plus either the bona fide residence or physical presence test; nonresident aliens cannot claim it at all. Meeting the substantial presence test does not by itself qualify you for the FEIE, and the heavy US day count that triggered the test will often make the physical presence test (330 days abroad in a 12-month period) impossible to satisfy. Understanding where US residency risk sits within a broader tax residency framework helps you see how the pieces interact.

Days that count (and don’t count)

Excluded categories under the substantial presence test

The IRS carves out several categories of presence that do not count toward the day total. The main ones relevant to mobile professionals are:

Scenario Days counted toward SPT Explanation
Arrival and departure on same calendar day 1 day Any physical presence during a day counts as a full day
Transit through US under 24 hours between two foreign points 0 days Excluded from count under transit exception
Medical hold (illness develops in US, unable to leave) 0 days Days cannot count against you when departure is medically impossible
Regular commuter from Canada or Mexico 0 days Applies only to individuals commuting regularly from a contiguous country
Exempt individual (F-1, J-1, certain A/G visa holders) 0 days (during exempt period only) Exempt status applies for a limited number of years; US-source income may still be taxable

The “any time during the day” rule is where travelers get caught. Arrive at 11 p.m. on December 31 and depart at 1 a.m. on January 1: those are two SPT days, one in each calendar year.

Exempt individual status deserves a note of caution. F-1 and J-1 visa holders (students and scholars) are among those who do not count days toward the substantial presence test for a limited number of years. After that exempt window closes, every US day counts in full. The advisers I trust tell me this transition point is where international student founders most frequently trigger unintended residency after graduation.

The 183-day rule as applied across other jurisdictions uses similar logic but different weighting mechanics; it is worth understanding both if you have tax exposure in more than one country.

Substantial presence test and your tax obligations

Crossing the substantial presence test threshold converts your US tax status from nonresident alien to resident alien for that calendar year. The IRS taxes resident aliens on worldwide income, without exception, using the same Form 1040 framework as US citizens.

Hands completing tax forms after meeting the substantial presence test threshold

State-level liability often follows. If you spent those US days in California, New York, or Massachusetts, state income tax authorities may assert residency or part-year residency based on the same physical presence, independent of the federal determination. The state rules vary and are not governed by the federal substantial presence formula, so crossing the federal threshold is a floor, not a ceiling, for your US tax exposure.

FATCA reporting obligations also activate. Form 8938 thresholds for US persons living abroad are $200,000 at year-end (or $300,000 at any point during the year) for single filers, and $400,000 at year-end (or $600,000 at any point during the year) for married filing jointly. These sit on top of any Foreign Bank Account Report (FBAR) obligations under FinCEN rules.

Status applies per calendar year. You can be a nonresident alien in 2025 and a resident alien in 2026 if your day counts shift. The first-year choice provision allows some newly-substantial-presence individuals to elect resident status for part of the year they first qualify, which can be advantageous in the right fact pattern.

Escaping residency: closer connection and treaty rules

The closer connection exception (Form 8840)

The closer connection exception is the primary exit route for mobile professionals who have accumulated enough weighted days to meet the substantial presence test but do not want US resident alien status. Three conditions all apply: you must have been present in the US for fewer than 183 days in the current calendar year, you must have maintained a tax home in a foreign country throughout the year, and you must have a closer connection to that foreign country than to the US.

“Closer connection” is a facts-and-circumstances test, not a checkbox. The IRS looks at where you maintain your permanent home, where your family lives, where you hold your financial accounts, where you are registered to vote, where you hold a driver’s license, and where your business activities are centered. Filing Form 8840 (Closer Connection Exception Statement for Aliens) asserts the exception; a bare filing without contemporaneous documentation to back it up is insufficient.

If you are based in Singapore, Hong Kong, or Dubai and spend under 183 days in the US in the current year, the closer connection exception is the first line of defense. The 183-day ceiling in the current year is an absolute limit: if you hit 183 or more current-year days, the closer connection exception is unavailable regardless of how strong your foreign ties are.

Tax treaty tie-breaker rules

When you qualify as a resident under both the US substantial presence test and a foreign country’s domestic tax law, the applicable tax treaty’s residency tie-breaker article governs. The US has treaties with many countries, and most treaties follow an OECD-style cascade: permanent home first, center of vital interests second, habitual abode third, nationality fourth.

The US has no income tax treaty with the UAE. Neither Singapore nor Hong Kong has an income tax treaty with the US (and the US has no estate tax treaty with Singapore either), so neither provides a standard income tax residency tie-breaker. Founders based in those jurisdictions cannot rely on a treaty tie-breaker; the closer connection exception is their primary tool.

Where a treaty tie-breaker does apply (Canada is the clearest example for many mobile founders), you disclose the position on Form 8833 (Treaty-Based Return Position Disclosure). Failure to file Form 8833 when required can produce a $1,000 penalty per failure. Substantial presence test exposure for founders across multiple jurisdictions connects directly to permanent establishment risk if employees or the founder themselves are spending time in the US on behalf of a foreign entity, and those two analyses should run in parallel.

For founders with a Dubai residency structure, the absence of a US-UAE treaty is worth noting explicitly. The tax implications of a Dubai residency setup depend partly on ensuring that US day counts remain below the thresholds that would override whatever UAE residency structure you have built.

FAQ

How exactly is the substantial presence test calculated, and which days in prior years count toward the 183-day threshold?

The substantial presence test uses a weighted formula across three calendar years. Count 100% of days in the current year, one-third of days in the first preceding year, and one-sixth of days in the second preceding year. The weighted total must reach 183 days or more, AND you must have at least 31 days of US presence in the current year. Both conditions must be met simultaneously.

Which US days do not count toward the substantial presence test?

Days excluded from the count include: transit days (under 24 hours in the US between two foreign points), days as a regular commuter from Canada or Mexico, days when a medical condition developed in the US prevents departure, and days during which you qualify as an exempt individual under an F, J, M, Q, A, or G visa category (subject to annual limits). Every other day of physical presence, regardless of how brief, counts in full.

If I meet the substantial presence test, what changes in how the US taxes my income?

Resident alien status means Form 1040 filing on worldwide income, the same as a US citizen. You lose access to the FEIE (Form 2555). FATCA reporting via Form 8938 activates if foreign financial assets exceed the relevant thresholds. US estate and gift tax exposure extends to worldwide assets. State income tax obligations may also arise depending on where you spent your US days.

Can I avoid US tax residency by using the closer connection exception or a tax treaty tie-breaker, and what paperwork is required?

Yes, if you spent fewer than 183 days in the US during the current calendar year. File Form 8840 to claim the closer connection exception, documenting your foreign tax home and the specific ties (housing, employment, family, financial accounts) that make your connection to the foreign country stronger than your connection to the US. Where a treaty tie-breaker applies, file Form 8833. The burden of proof in both cases sits with you, not the IRS.

How can frequent business travelers and remote workers practically track US days to prevent an unintended shift to resident alien status?

Track every US entry and exit date in a dedicated log, not just current-year travel. Pull the prior two years’ entry and exit records from your passport stamps or travel receipts and apply the one-third and one-sixth weights to see your running weighted total. Set a personal ceiling of around 120 current-year days if you are also carrying significant prior-year day counts; that buffer absorbs the weighted tail. Review the count before booking any discretionary US travel in Q4.

Is there a substantial presence test calculator available to forecast my SPT status before the year ends?

The ExpatMemo substantial presence test calculator lets you enter your current-year, prior-year, and second-prior-year US day counts and calculates your weighted total against the 183-day threshold in real time. Use it mid-year to project whether additional planned travel will push you over the line.

Sources

For educational purposes only. The information in this article is provided for general educational purposes and does not constitute legal, tax, or financial advice. Tax laws and regulations change frequently and vary by jurisdiction. Always consult a qualified professional for advice tailored to your specific situation.

Need personalized guidance?

Corporate and tax laws vary significantly by jurisdiction and individual circumstances. Our detailed country guides and structured articles can help, or consider speaking with a qualified international professional.