Special Enrollment Examination, Part 1: Individuals
Substantial presence test: resident or nonresident alien?
Per IRS Publication 519 (2025), an alien is a U.S. resident for 2025 by holding a green card at any time in the year or by meeting the substantial presence test: at least 31 days in 2025, and 183 days counting all 2025 days, one-third of 2024 days and one-sixth of 2023 days.
How is the 183-day count figured?
Two conditions must both be met for 2025. The person was physically present in the United States on at least 31 days during 2025. And the weighted total for 2025, 2024 and 2023 is at least 183 days: every day in 2025, one-third of the days in 2024 and one-sixth of the days in 2023.
Publication 519's example is a person present 120 days in each of the three years. The count is 120 + 40 + 20 = 180 days, so the test is not met. Being present at any time during a day counts as a day.
The green card test is separate. A person who was a lawful permanent resident at any time during calendar year 2025 is a resident for tax purposes, whatever the day count.
Which days are not counted?
Days are left out for regular commuters to work from a home in Canada or Mexico, for under-24-hour transit between two places outside the United States, for crew members of a foreign vessel, for a medical condition that arose in the United States and prevented leaving, and for exempt individuals.
Exempt individuals are foreign government-related individuals, teachers and trainees on J or Q visas, students on F, J, M or Q visas, and professional athletes competing in a charitable sports event. A teacher or trainee is generally not exempt for 2025 if exempt as a teacher, trainee or student in any part of 2 of the 6 preceding calendar years. A student is not exempt after any part of more than 5 calendar years, unless the student shows no intent to reside permanently in the United States and has complied with the visa.
Students, teachers, trainees, athletes and people claiming the medical exception file Form 8843 to exclude the days.
What is the closer connection exception?
A person who meets the substantial presence test can still be treated as a nonresident alien if the person was present fewer than 183 days during the year, kept a tax home in a foreign country during the year, and had a closer connection to that country than to the United States. Form 8840 must be attached to the return to claim it.
The exception is not available to someone who personally applied, or took other steps during the year, to become a permanent resident, or who had an application for adjustment of status pending during the year.
Where the exam catches people
- Counting prior-year days in full: 2024 days count at one-third and 2023 days at one-sixth.
- Forgetting the 31-day minimum in the current year: a large carryover from earlier years does not make someone a resident without it.
- Treating an F-1 student as exempt forever: exempt status generally ends after parts of more than 5 calendar years.
- Allowing the closer connection exception to someone with a pending green card application: it is barred.
- Allowing the closer connection exception at 183 or more days in the current year: presence must be under 183 days in that year.