You meet the substantial presence test for 2026 when two things are true. You were in the United States for at least 31 days in 2026. And your days over three years add up to at least 183, when you count every day of 2026, one third of your days in 2025, and one sixth of your days in 2024. The IRS states the rule on its substantial presence test page.
If you meet the test, you are a US resident for tax. If you do not, and you have no green card, you are a nonresident. See resident alien or nonresident alien for both tests and what the status changes. Your status also decides if you file Form 1040 or Form 1040-NR.
How to calculate it, step by step
- Count your days in the US in 2026. A part of a day counts as a full day. Your I-94 travel history lists the dates you entered and left.
- Count your days in 2025 and in 2024.
- Remove the days that do not count. The list is below.
- Add them up. Take all the days of 2026, one third of the days of 2025 and one sixth of the days of 2024.
- Check both numbers. You need at least 31 days in 2026, and at least 183 in the total.
Example
Arjun visited the US as a tourist for 60 days in 2024 and for 90 days in 2025. He moved to the US on an H-1B visa on August 1, 2026, and stayed for the rest of the year.
| Year | Days in the US | Share that counts | Days counted |
|---|---|---|---|
| 2026 | 153 | All | 153 |
| 2025 | 90 | One third | 30 |
| 2024 | 60 | One sixth | 10 |
| Total | 193 |
Arjun has more than 31 days in 2026, and his total is above 183. He meets the test. The Kyoto engine gives the same result, and it adds two facts that the count alone does not show: his residency starts on August 1, 2026, and 2026 is a dual-status year for him. For other arrival dates, see H-1B: resident or nonresident alien.
Arjun was in the US for only 153 days in 2026. His earlier visits made the difference.
But this matters too
The count is the easy part. These rules can change the answer.
- Some days do not count. Days as a student on an F, J, M or Q visa, days as a teacher or trainee on a J or Q visa for a limited number of years, days when you commute to work from Canada or Mexico, days in transit for less than 24 hours, and days when a medical condition kept you from leaving. See the IRS list.
- Student and teacher days stop being free. A student does not count days for 5 calendar years. After that, every day counts, unless the student shows the IRS that they do not intend to live in the US permanently. A teacher or trainee does not count days for 2 calendar years, but not if they were a student, teacher or trainee in any part of 2 of the 6 years before. See exempt individual: student and exempt individuals: teachers and trainees.
- You can meet the test and still be a nonresident. The closer connection exception can apply when four things are true: you were in the US for fewer than 183 days in the year, your tax home is in another country, your ties to that country are closer, and you took no steps toward a green card. You claim it on Form 8840.
- Your residency may not start on January 1. In the year you arrive, it usually starts on your first day in the US. See residency starting and ending dates.
- A green card is a separate test. With a green card you are a resident, whatever your day count. See the green card test.
- A tax treaty can change the result when two countries both treat you as a resident. See Publication 519.
Sources
- Substantial presence test (IRS)
- Publication 519, U.S. Tax Guide for Aliens (IRS)
- Residency starting and ending dates (IRS)
- Closer connection exception (IRS)
- 26 U.S.C. section 7701(b)
Questions and answers
Do days on an F-1 visa count for the substantial presence test?
Not for the first 5 calendar years. A student on an F, J, M or Q visa does not count days for 5 calendar years. After that, every day counts, unless the student shows the IRS that they do not intend to live in the US permanently.
Does a part of a day in the US count as a full day?
Yes. For the substantial presence test, a part of a day in the US counts as a full day. Days in transit for less than 24 hours are one of the exceptions that do not count.
Can I meet the substantial presence test with fewer than 183 days in the US this year?
Yes, if you were in the US for at least 31 days this year and your three-year total is at least 183. The total counts every day of this year, one third of your days in the year before and one sixth of your days in the year before that. For example, 153 days in 2026, 90 days in 2025 and 60 days in 2024 give a total of 193, which meets the test.
Can I meet the substantial presence test and still be a nonresident?
Yes, in some cases. The closer connection exception can apply when four things are true: you were in the US for fewer than 183 days in the year, your tax home is in another country, your ties to that country are closer, and you took no steps toward a green card. You claim it on Form 8840.