Taxes · 6 min read

Three days decided Priya’s tax return. Here’s how to count yours.

Your visa doesn’t decide whether the IRS treats you as a resident. Your days do. The Substantial Presence Test is a simple formula, but one wrong input flips the answer.

The short version

  • You’re a U.S. tax resident if you were here at least 31 days this year and 183 weighted days over three years.
  • Weighted means: all of this year’s days, 1/3 of last year’s, 1/6 of the year before.
  • Days as an F, J, M or Q student (and some J teachers) usually don’t count at all.

Why it matters

Residents file Form 1040 and are taxed on worldwide income. That can mean reporting a bank account back home, rental income, or interest you never thought about. Nonresidents file Form 1040-NR and are generally taxed only on U.S.-source income.

Get it wrong in either direction and you’re amending returns later. Get it right and you might unlock the standard deduction or a joint return with your spouse.

The math, with Priya

Priya came to the U.S. on an F-1 for her master’s, then switched to H-1B. She’s working out her 2026 status. Here’s what her I-94 history says:

YearDays hereWeightCounts as
2026 · H-1B120× 1120
2025 · H-1B180× 1/360
2024 · F-1240× 1/640
Total220 · resident

220 is over 183, so Priya looks like a resident. Except she was a student in 2024, and student days are exempt. They don’t count toward the test.

Take those 40 days out and she lands on 180. Three days short. Priya is a nonresident for 2026, and files a 1040-NR plus Form 8843 for her exempt year.

What counts as a day

Any part of a day counts as a full day. Land at 11:50 pm on December 31 and that’s a day of 2026. A few narrow exceptions don’t count:

  • Commuting daily from Canada or Mexico
  • Passing through in under 24 hours on the way somewhere else
  • Being unable to leave because of a medical condition that started here
  • Days as an exempt individual: F, J, M or Q students, certain J teachers and trainees, and diplomats

Over 183, but still not a resident?

If you were here fewer than 183 actual days this year, kept your tax home abroad, and have a closer connection to that country, you may be able to claim the closer connection exception on Form 8840. It isn’t available once you’ve applied for a green card. A tax treaty tie-breaker may also apply.

Mistakes we see most

  1. 01Counting student years. F-1 and J-1 days are usually exempt, often for five calendar years.
  2. 02Skipping arrival and departure days. Both count, even if you were here for an hour.
  3. 03Guessing from memory. A forgotten long weekend in Toronto is three days. Your I-94 history remembers.
  4. 04Forgetting green card holders are always residents. If you hold a green card, the day count doesn’t matter.

This guide is general information, not tax advice. Treaties, dual-status years and first-year elections can change your answer. Confirm with a CPA before you file.

Keep reading