Tool · Runs entirely in your browser · Updated July 2026
Substantial presence test calculator.
Enter your US days for three years. See the weighted math worked out step by step — the 31-day minimum and the 183-day total, shown separately. Nothing you type leaves this page or is saved.

How do I calculate the substantial presence test?
Add every US day in the current year, plus one third of the prior year's days, plus one sixth of the days from the year before that. If that weighted total reaches 183 and you were present at least 31 days in the current year, the test is generally met — subject to IRS exceptions.
What counts as a US day?
A US day generally means any day you were physically present in the United States, but the IRS excludes certain days — for example some days for exempt individuals. Whether a day is counted at all can matter as much as the arithmetic, so check the current IRS guidance.
What is the closer connection exception?
It can let you avoid US residency even if you meet the day count, when you were in the US fewer than 183 days in the current year and can show a tax home and closer ties to another country. See the IRS substantial presence test page and Publication 519 for the conditions and how to claim it.
Does this store my data?
No. The calculator runs entirely in your browser. Nothing you type leaves this page or is saved.