Certopolis

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.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A citizen of Brazil who has never held a green card and is not an exempt individual was physically present in the United States on 150 days in 2025, 120 days in 2024 and 90 days in 2023. How many days count toward the 183-day total of the 2025 substantial presence test?

    Right. In the game that’s Renown for your Preliminary Work and Taxpayer Data building.

    Not that one: C is right. In the game your Preliminary Work and Taxpayer Data building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Because 205 is at least 183 and the individual was present at least 31 days in 2025, the substantial presence test is met and the individual is a resident alien for 2025 unless an exception such as the closer connection exception applies (Pub. 519, Substantial Presence Test).

    Written from www.irs.gov/pub/irs-prior/p519--2025.pdf

  2. A citizen of Vietnam came to the United States in 2017 as an F-1 student, has complied with the visa, and has studied here during part of every year since. In 2023 the student applied to become a lawful permanent resident. The student was present 110 days in 2025, 168 days in 2024 and 222 days in 2023. How many days count toward the 183-day total of the 2025 substantial presence test?

    Right. In the game that’s Renown for your Preliminary Work and Taxpayer Data building.

    Not that one: C is right. In the game your Preliminary Work and Taxpayer Data building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Exempt from 2017, this student passed five calendar years before 2023, and applying for permanent residence in 2023 weighs against that showing, so the 2023, 2024 and 2025 days all count (Pub. 519, Students). Step 2, the weighted count: 110 + (168 / 3) + (222 / 6) = 110 + 56 + 37 = 203. With 203 days and more than 31 in 2025, the test is met and the student is a resident alien for 2025 (IRS, Substantial presence test).

    Written from www.irs.gov/pub/irs-prior/p519--2025.pdf

  3. A citizen of Canada keeps a home, family and tax home in Canada and was present in the United States 160 days in 2025, 180 days in 2024 and 180 days in 2023. In 2025 the individual filed for a green card, and no decision has yet been made. Which statement is correct regarding the closer connection exception for 2025?

    Right. In the game that’s Renown for your Preliminary Work and Taxpayer Data building.

    Not that one: D is right. In the game your Preliminary Work and Taxpayer Data building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Ordinarily someone present under 183 days in 2025 with a tax home in, and closer connection to, Canada could still be treated as a nonresident by filing Form 8840 on time. But the exception cannot be claimed by an individual 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. The 2025 green card filing bars the exception (Pub. 519, Closer Connection to a Foreign Country).

    Written from www.irs.gov/pub/irs-prior/p519--2025.pdf

Ask for something