Residency & citizenshipUS Substantial Presence Test Explained: 183-Day Formula
Last updated
You become a US tax resident if you spend at least 31 days in the US in the current year and your weighted three-year total reaches 183 days: all of this year's days, one third of last year's, and one sixth of the year before. Any part of a day present normally counts.
Who needs to read this
The Substantial Presence Test decides whether a non-citizen owes US tax as a resident, and it catches people who never intended to move to America. Read this if:
- You're a frequent visitor spending several months a year in the US on ESTA or a B1/B2 visa
- You're a snowbird wintering in Florida or Arizona from Canada or Europe
- You're a cross-border professional with recurring US work trips
- You're a student or researcher on an F, J, M, or Q visa wondering when your days start counting
- You're a tax planner balancing US days against residency tests elsewhere
How the rule works
Under IRC § 7701(b)(3), you are a US tax resident for a calendar year if you are present in the US at least 31 days that year and your weighted day total across three years reaches 183. The statute counts "the number of days on which such individual was present in the United States" with a multiplier for each year:
- Current year days: multiplied by 1
- First preceding year: multiplied by 1/3
- Second preceding year: multiplied by 1/6
Two things make this test different from most 183-day rules:
- It looks back three years. You can stay under 183 actual days every single year and still become a tax resident because of the weighted carryover.
- It is automatic. No election, form, or intention is involved in meeting it; only the exceptions require filings. Immigration status is irrelevant: a perfectly lawful visitor can be a US tax resident.
Meeting the test means you are taxed like a US person, generally on worldwide income, unless an exception or treaty tie-breaker rescues you.
Counting the days
Every day you are physically in the US at any time counts as a full day, including arrival days, departure days, and one-hour layovers that are not pure international transit. The IRS's own worked example: someone present 120 days in each of 2023, 2024, and 2025 counts 120 plus 40 (a third of 120) plus 20 (a sixth of 120) for 2025, totaling 180, three days short of the test.
Days that do not count:
- Commuter days for residents of Canada or Mexico who regularly commute to US work
- Transit days: less than 24 hours in the US while traveling between two foreign points
- Crew days on a foreign vessel
- Medical condition days, when a condition that arose while you were in the US prevented your planned departure
- Exempt individual days: qualifying students (F, J, M, Q), teachers and trainees (J, Q), foreign government personnel (A, G), and certain charity-event athletes, generally documented on Form 8843
Everything else counts, and the weighted math punishes consistency: the same trip length repeated three years running builds a permanent 1.5x load (1 + 1/3 + 1/6) on your annual days.
Resets, extensions, and edge cases
The lookback never resets; each January the weights shift and last year's days start counting at one third. The escape routes are exceptions, not extensions:
- Closer connection exception (IRC § 7701(b)(3)(B)): if your current-year actual days are under 183, your tax home was in a foreign country all year, and your ties (home, family, belongings, licenses, voting) point there, you can stay a nonresident by filing Form 8840 on time. Late filing generally kills the claim.
- Treaty tie-breakers: if you are resident in both the US and a treaty country under each side's domestic law, the treaty assigns one residence using permanent home, center of vital interests, habitual abode, and nationality, claimed via a treaty-position filing.
- Exempt years are not forever: student and teacher exemptions carry time limits measured in calendar years, after which days begin to count normally.
- First and last year rules: special start and end dates apply in the year residency begins or ends; the test decides if you are resident, and separate rules decide from when.
Overstays: consequences and enforcement
Crossing the 183-weighted-day line does not produce a fine; it produces a new tax status, and the IRS can reconstruct your presence. US entries and exits are recorded in the electronic I-94 system, airlines report passenger data, and your own passport and card statements corroborate the pattern. In an audit, the day count is rarely the taxpayer's word against nothing.
What meeting the test unexpectedly can mean:
- Worldwide income taxation for the year, not just US-source income
- US filing obligations, including information returns on foreign accounts and assets that carry their own significant penalties
- Interest and penalties on unfiled or misfiled years discovered later
- Cascading state issues, since long presence in one state can trigger state residency claims on top of the federal test
Staying compliant
Managing this test is a running-count problem across three years, so treat it as one:
- Track every US day, including partial days. iReside's US Substantial Presence preset applies the 1, 1/3, 1/6 weighting continuously and shows how many current-year days remain before you cross 183.
- Plan with the weighted total, not this year's count. Two heavy years in the past shrink this year's safe budget.
- If you will meet the test, act early: line up the closer connection facts and calendar the Form 8840 deadline, or prepare a treaty tie-breaker position.
- Keep evidence of your foreign tax home: lease or ownership, employment, family location, and where your life's paperwork points.
- File Form 8843 in exempt years so exempt status is on record, not just assumed.
Common mistakes
- Counting only the current year. The test's whole point is the three-year weighted lookback; 130 days a year fails it comfortably.
- Assuming visa compliance settles taxes. Immigration and tax residency are independent; a lawful B-2 snowbird can be a US tax resident.
- Ignoring partial days. Arrival and departure days count in full, so a Friday-to-Monday trip is four days, not two.
- Missing the Form 8840 deadline. The closer connection exception is claimed, not automatic, and late claims usually fail.
- Believing students never count days. Exempt status has calendar-year limits and conditions; after they lapse, every day counts.
- Rounding trip lengths. At the margin the test turns on two or three days; reconstructed estimates lose to I-94 records.