On this page
Substantial Presence Test Calculator
Tap the days you were in the United States, then pick the year to test. The calculator applies the IRS formula and checks both conditions, planned trips included.
Last verified: November 2026
Check your days
Timeline
How the calculator counts
- Any part of a day counts. The day you arrive and the day you leave are both US days, so a trip from 1 June to 10 June is ten days.
- Three calendar years, weighted. Every day of the year you test, one third of the days of the year before, and one sixth of the days of the year before that.
- Both conditions. At least 31 days in the year you test, and a weighted total of at least 183. Meeting one is not enough.
- No rounding. The fractions are kept until the comparison, so a weighted total of 182⅚ does not meet the test.
When the count is not the last word
The calculator counts every day you mark. A few things can change the answer, and the substantial presence test guide explains each of them:
- Excluded days. Days as an exempt student, teacher or trainee, regular commuting from Canada or Mexico, transit of less than 24 hours and some medical stays can be left out. Leave those days unmarked.
- The closer connection exception. With fewer than 183 days this year, a foreign tax home and a closer connection to another country, you may be treated as a nonresident if you file Form 8840.
- Tax treaties. A treaty's tie-breaker rules can make you a resident of the other country even when you meet the test.
- The green card test. A green card holder is a resident under a separate test, whatever the day count.
The rule itself, including which days can be excluded and the forms that go with them, is explained in US Substantial Presence Test: What Travelers Need to Know. Canadian winter visitors: see Canadian Snowbirds: the 182-Day Rule and Form 8840.
Keep the count running, not just once
A calculator checks the days you remember today. The US Substantial Presence Test preset in AtlasDays keeps counting both thresholds as you travel, privately on your iPhone. IRS day-count exclusions are not applied.
Get the appFAQ
Is the calculator's answer final?
No. It applies the day count to the dates you enter. Excluded days, the closer connection exception and tax treaties can change the outcome, and your filing position is between you and the IRS.
Do I need 183 days in the year I test?
No. The two years before it contribute too, so the weighted total can reach 183 with far fewer days this year. The separate minimum of 31 days in the year you test still applies.
Why does 120 days a year not meet the test?
Because the earlier years are weighted down. 120 days in each of three years gives 120 + 40 + 20 = 180, three days short. 125 days in the oldest year would bring it to 180⅚, still short.
Is my data stored?
No. The calculator runs in your browser and does not send, log or save the dates you enter. Closing or reloading the page clears them. To keep them, tap Export or open in AtlasDays.
About this article: AtlasDays provides general information, not legal, tax, or immigration advice. Rules change and outcomes depend on your circumstances, so never rely on it alone: check the linked official source or ask a qualified professional.