Whether you’re a U.S. tax resident or nonresident changes everything: which form you file, which income is taxed, and which credits you can claim. For most visa holders, the answer comes from the Substantial Presence Test (SPT).
The formula
You meet the SPT for a year if you were physically in the U.S. for:
- At least 31 days in the current year, and
- At least 183 days over three years, counting all days this year, plus 1/3 of days last year, plus 1/6 of days the year before
Exempt individuals: days that don’t count
Days as an “exempt individual” don’t count at all. The big one for students: F, J, M, or Q students are generally exempt for 5 calendar years (any part of a year counts as a full year). Teachers and trainees on J or Q visas are generally exempt for 2 of the last 6 years. You claim exempt status on Form 8843.
Worked examples
Ana, F-1 since August 2022. 2022, 2023, 2024, 2025, and 2026 are her five exempt years. She’s a nonresident for 2026 and starts counting days on January 1, 2027.
Ben, moved from F-1 to H-1B in October 2025. His F-1 days in his exempt years don’t count, but his H-1B days do. Depending on the count, he may be a dual-status taxpayer for 2025.
What to file
- Nonresident: Form 1040-NR if you had U.S. income, plus Form 8843
- Resident: Form 1040, like a citizen, reporting worldwide income
- Dual-status (changed status during the year): special rules apply; see IRS Publication 519
The closer connection exception
Someone who meets the SPT but was here fewer than 183 days in the current year may avoid resident status by showing a closer connection to a foreign country on Form 8840. Taking steps toward a green card can block this. See Form 8840 vs. 8843.
FAQ
Do travel days count? Generally any part of a day in the U.S. counts as a day.
I’ve been here more than 5 years on F-1. Am I a resident? Probably, unless you can show you don’t intend to reside permanently and have complied with your visa. Check Pub 519.
Official sources: IRS: Substantial Presence Test · Publication 519. Back to the International Student Tax Guide.
General education, not individual tax advice.




Leave a Reply