Tax residency in the United States: the Substantial Presence Test
You meet the Substantial Presence Test if you were in the US at least 31 days this year and at least 183 days over three years, counting all days this year, one third of last year's days and one sixth of the days the year before. Green-card holders are residents regardless of days.
Official sources
Checked against these sources on 20 November 2026. Rules change — please read the official page before relying on a number.
Which days the app counts
| Day of arrival | Yes |
| Day of departure | Yes |
| Part of a day (e.g. transit) | Yes |
| Presence at midnight is the test | No |
Any part of a day in the US counts as a full day for the Substantial Presence Test. Transit days count unless you qualify for the transit exception (connection between two foreign points).
Exceptions and special cases
- Closer Connection Exception (Form 8840) — stronger ties to another country
- Tax Treaty Tie-Breaker — may override SPT if treaty-resident elsewhere
- Exempt Individual categories: diplomats, teachers, trainees, students, athletes
- Medical condition exception for days unable to leave the US
- Transit exception: days in transit between two foreign points
For information only. Tax residency usually depends on more than days (home, family, work, economic interests), and tax treaties can change the result. Please confirm with the tax authority or a qualified adviser.
Keep count of your days in the United States
TAX Resident records your days automatically and shows how they compare with this country's rule.