Independent guides · Not a government website

Free calculator

Substantial Presence Test Calculator

Count the days you were physically present in the US in each year. Leave out days that do not count, such as days as an exempt student or teacher.

The formula

YearDays counted
Current yearAll days of presence
Previous yearOne third of the days
Year before thatOne sixth of the days

You meet the test if you were present at least 31 days this year and the weighted total is 183 days or more. Green card holders are residents under the separate green card test. Exceptions such as the closer connection exception or tax treaty tie-breaker rules can change the result. See US tax residency.

Estimates only; not tax advice. Nothing you enter is stored or sent anywhere.