Substantial Presence Test Calculator: Count Your US Days

Spend enough days in the United States and the IRS treats you as a US tax resident, taxed on worldwide income, even without a green card. The test is a weighted count: this year's days, plus a third of last year's, plus a sixth of the year before. This calculator runs that count, tells you whether you meet the test, and flags the escape hatches. It's an estimate for planning, not tax advice for your specific situation.

Your US days

Days that don't count (read before you total)

A handful of day types are excluded from the count by statute:

  • Regular commuters from Canada or Mexico: days you commute to work in the US from a residence in Canada or Mexico, if you regularly commute.
  • In transit: days you are in the US for less than 24 hours while in transit between two places outside the US.
  • Crew members: days in the US as a crew member of a foreign vessel.
  • Medical condition: days you could not leave because of a medical condition that arose while you were in the US.
  • Exempt individuals: days as a student on an F, J, M or Q visa, a teacher or trainee on a J or Q visa, a foreign government-related individual, or a professional athlete temporarily in the US to compete in a charitable sports event. Exempt status is time-limited and has its own rules.

Excluding exempt-individual or medical days requires filing Form 8843. If some of your days fit these categories, enter them below and the calculator subtracts them from this year's count. Apply the same logic yourself to the two prior years by entering net countable days above.

Your result

Countable days this year0
Last year × 1/30
Year before × 1/60
Weighted total (vs 183)0
Enter your days above
The test has two parts: at least 31 days in the US this year, AND a weighted three-year total of 183 or more. Miss either part and you don't meet the substantial presence test.

Assumptions this count makes: your day totals are accurate and already follow the partial-day rule (any part of a day in the US counts as a full day); the "days that don't count" subtraction is your own good-faith estimate, and exempt-individual or medical exclusions only hold up if Form 8843 is filed; fractions in the weighted total are compared against 183 without rounding, which is how the regulation does it. The tool ignores the green card test (a separate, independent path to US residency), first-year and dual-status start dates, treaty elections, and state residency rules, which have their own day counts. It's an estimate, not advice; a real residency file works through all of this properly.

Email me the first-year US tax guide

What actually happens in the year you become a US tax resident: the returns, the account reporting, and the traps that catch Canadians.

How this calculator works (the actual rules)

This tool provides general information and rough estimates only, not tax advice for your situation. Methodology checked against the statute, regulation and IRS pages linked above; rules current to the 2026 filing year.

Close to the line, or already over it?

The Cross-Border Assessment is a fixed $249. You get a written, CPA-prepared read of your residency position, both sides of the border, before you commit to anything bigger.

See the $249 assessment