| Threshold | 183 days (maximum) |
|---|---|
| Period | A weighted total across three calendar years |
| How a day counts | Any day you are present for any part of it counts as a whole day. |
| Last reviewed | 1 May 2026 |
Source: the tax authority's published guidance · last reviewed 1 May 2026
Substantial Presence Test calculatorHow Sojourn keeps the count
How United States counts your days
The US Substantial Presence Test counts a weighted sum of days across three calendar years: current-year days × 1, prior-year days × ⅓, and the year before that × ⅙. Any day on which you were physically present in the US for any portion counts. A day spent purely in transit between two foreign countries (under 24 hours, no substantive activities in the US) does not count. If the weighted total reaches 183 and you spent at least 31 days in the US in the current year, you are treated as a US resident alien for tax purposes.
What the day count does not tell you
The Substantial Presence Test is a simplified representation of US tax residence for aliens. The full analysis includes the 'closer connection' exception (Form 8840), treaty tie-breaker claims, the 31-day minimum for the current year, and rules for students, teachers, and certain visa categories (F, J, Q, M). US citizens and green-card holders are taxed on worldwide income regardless of this test — the SPT applies to non-citizens/non-green-card holders. Consult a US tax professional before making any residency determination.
Transit and layovers
Days spent in the US purely in transit between two foreign points do not count toward the Substantial Presence Test, provided you are in the US for less than 24 hours and travel between foreign places. Crew members of foreign vessels or aircraft in US territorial waters or airspace may also qualify for exemptions. Commuters from Canada or Mexico face different rules. See IRS Publication 519 and Form 8840 for the closer connection exception.
Resident in two countries
The US has tax treaties with approximately 65 countries, a comparatively narrow network. US treaties contain a 'saving clause' that generally preserves the US's right to tax its own citizens and, in many treaties, permanent residents (green-card holders), regardless of treaty tie-breaker outcomes. Non-US-citizens who pass the SPT may claim non-resident status under a closer connection exception (Form 8840) or by filing a Form 1040-NR with a treaty-based return position (Form 8833). The treaty analysis is fact-specific — the nature of your visa, your family situation, and the location of your permanent home all matter significantly.
Proving residency
United States issues a Tax Residency Certificate through its tax authority. Request it from the official service.
Other day-count rules for United States
- 90-day Visa Waiver (ESTA) — the period the rule sets
Common questions
How many days can I spend in United States before I become tax resident?
Substantial Presence Test — 183-day weighted total over 3 calendar years, counted over a weighted total across three calendar years.
How does United States count a day?
Any day you are present for any part of it counts as a whole day.
Do transit days count in United States?
Days spent in the US purely in transit between two foreign points do not count toward the Substantial Presence Test, provided you are in the US for less than 24 hours and travel between foreign places. Crew members of foreign vessels or aircraft in US territorial waters or airspace may also qualify for exemptions. Commuters from Canada or Mexico face different rules. See IRS Publication 519 and Form 8840 for the closer connection exception.
What if I am resident in United States and another country?
The US has tax treaties with approximately 65 countries, a comparatively narrow network. US treaties contain a 'saving clause' that generally preserves the US's right to tax its own citizens and, in many treaties, permanent residents (green-card holders), regardless of treaty tie-breaker outcomes. Non-US-citizens who pass the SPT may claim non-resident status under a closer connection exception (Form 8840) or by filing a Form 1040-NR with a treaty-based return position (Form 8833). The treaty analysis is fact-specific — the nature of your visa, your family situation, and the location of your permanent home all matter significantly.