Federal · weighted three-year count
Substantial presence test calculator
Short answer: the IRS test needs at least 31 days in the current year and 183 weighted days over three years: every day this year, plus 1/3 of last year’s days, plus 1/6 of the days the year before. It is a federal test and is separate from any state’s residency rules.
Weighted total
31-day condition (current year)
Arithmetic result
| Year | Days | Weight | Counted |
|---|
What this does not do
It does not apply exceptions automatically. The IRS lists days that are not counted, including:
Days you commute to work in the U.S. from a residence in Canada or Mexico; days you are in the U.S. for less than 24 hours, when you are in transit between two places outside the United States; days you are in the U.S. as a crew member of a foreign vessel; days you are unable to leave the U.S. because of a medical condition that develops while you are in the United States; days you are an exempt individual.Source: IRS, Substantial presence test (page last reviewed or updated 14-Mar-2026; read 22 Nov 2026).
Meeting the arithmetic does not by itself settle your tax position — there are exceptions such as the closer connection exception, and state residency is a separate question. Use the result to talk to your tax professional, with your day records.
Counting the days is the hard part. The state day counter turns trips into day totals, and the Snowbird Day Tracker app keeps the record for you, flagging any day it missed.
Not tax or legal advice. The calculator runs entirely in your browser; nothing you type is sent anywhere.