Substantial Presence Test Calculator

Find out if you count as a US resident for tax purposes under the IRS 183-day weighted formula, and how many more days you can spend in the US this year before you do.

Rules last checked against official sources: 29 September 2026

Defaults to the current year.
Where do the day counts come from?
🔒 Your dates are saved only in this browser. Nothing is sent to us.

How the substantial presence test works

If you are not a US citizen or green card holder, the IRS treats you as a resident for tax purposes for a calendar year if you pass the substantial presence test. You pass if both of these are true:

  1. You were physically present in the US on at least 31 days during the current year, and
  2. The following adds up to 183 days or more:
    • all the days you were present in the current year, plus
    • 1/3 of the days you were present in the year before, plus
    • 1/6 of the days you were present in the year before that.

Example: 120 days in each of 2024, 2025 and 2026 gives 120 + 40 + 20 = 180 for 2026. That is under 183, so you do not meet the test. Three more days in 2026 would tip you over.

What counts as a day of presence?

Any part of a day in the US generally counts as a full day, so arrival and departure days both count. The main exceptions are:

If some of your days are excluded, type in the adjusted counts by choosing "I will type them in".

If you meet the test, you may still be treated as a non-resident

Tax residency affects which income is taxed and which forms you file. Because the rules have many exceptions, use this calculator as a first check and confirm with a tax professional.

Frequently asked questions

What is the 183-day rule for US taxes?
It is the substantial presence test: you are a US tax resident if you were in the US at least 31 days this year, and this year's days plus 1/3 of last year's plus 1/6 of the year before's add up to 183 or more.
Do arrival and departure days count?
Generally yes. Any part of a day spent in the US counts as a day of presence, with a few exceptions such as short transits and regular commuting from Canada or Mexico.
Does the test apply to green card holders?
No. Green card holders are US tax residents under the separate green card test, whatever the number of days.
Do F-1 students count their days?
Usually not for their first five calendar years in the US, because they are exempt individuals. After that, their days count.

Official sources