Free Tool · Tax Year 2026

Substantial Presence Test Calculator

Work out whether the IRS treats you as a US tax resident or a non-resident this year. This decides which return you file and whether your worldwide income is taxable — and it is not the same thing as your immigration status.

Reviewed by Teja K, CPA ·

Lawful permanent residents are tax residents regardless of days present.

Students for up to five calendar years; teachers and researchers for two of the last six. Exempt days do not count at all.

Counts in full

Counts as one third

Counts as one sixth

2026 (×1)

0

2025 (×⅓)

0.0

2024 (×⅙)

0.0

Your likely status

Non-resident

You would generally file Form 1040-NR

Weighted days

0.0

183 needed

✗ 31-day test: 0 days in 2026.

✗ 183-day test: 0.0 weighted days. 183 more would meet it.

Applies the mechanical test only. Treaty tie-breakers, the closer connection exception and dual-status years can change the outcome.

Why this is the most important question on your return

Residency for tax is not the same as residency for immigration. You can be on a temporary visa and be a tax resident, or hold one for years and remain a non-resident. The IRS uses its own test, and it changes almost everything about your return.

How US tax treatment differs between residents and non-residents
ResidentNon-resident
Return formForm 1040Form 1040-NR
Income taxedWorldwideUS-source only
Standard deductionAvailableGenerally not available
Filing jointly with a spouseAllowedGenerally not allowed
Foreign account reporting (FBAR, 8938)Required if thresholds metGenerally not required
FICA on wagesYesOften exempt on student visas

Filing the wrong form is not a technicality. A non-resident who files a 1040 and claims the standard deduction has filed an incorrect return, and the fix is an amendment. A resident who files 1040-NR has likely overpaid and left deductions and credits unclaimed.

How the substantial presence test works

You are a resident under this test if BOTH conditions are met for the year:

  • Present in the US for at least 31 days during the current year, and
  • Present for at least 183 weighted days across three years — all days this year, plus one third of last year's days, plus one sixth of the days from the year before that.

The weighting is what surprises people. Roughly four months a year, every year, adds up to residency over time even though no single year comes close to 183 actual days. Conversely a single long year does not make you resident if you were under 31 days in the current one — both conditions have to hold.

Any part of a day counts as a full day of presence, so a day of arrival and a day of departure each count.

Holding a green card is a separate route to residency entirely. If you are a lawful permanent resident at any point in the year, you are a tax resident regardless of how many days you spent in the country.

Exempt individuals: why students often stay non-resident

This is the rule that consumer tax software quietly ignores, and it is the reason so many international students file incorrectly.

While you are an "exempt individual", your days of presence do not count toward the test at all. Not weighted less — not counted. So a student can be in the US continuously for four years and still be a non-resident.

  • F, J, M and Q students are generally exempt for five calendar years. The five years are counted cumulatively across your lifetime, not per visa.
  • J and Q teachers, trainees and researchers are generally exempt for two years out of the previous six.
  • The exemption depends on complying with the terms of your visa.
  • Form 8843 must be filed to claim exempt status — even in a year when you had no US income at all.

The year your exemption runs out is the year everything changes: your days start counting, you may become a resident mid-way, and you can end up with a dual-status year requiring both forms. That transition year is the one most worth getting professional help with.

Exceptions that can override the result

Passing the test is not always the end of the matter. Several provisions can change the outcome, and each requires an actual filing to claim.

  • Closer connection exception (Form 8840) — available if you were present under 183 actual days this year, have a tax home abroad and a closer connection to that country.
  • Tax treaty tie-breaker — many treaties, including the US–India treaty, have rules that resolve dual residency in favour of one country. Claimed on Form 8833.
  • Days that do not count — regular commuting from Canada or Mexico, under 24 hours in transit, and days you could not leave because of a medical condition that arose in the US.
  • First-year choice — in some circumstances you can elect to be treated as a resident earlier than the test would allow, which can be advantageous if it lets you file jointly.

This calculator applies the mechanical test. It cannot tell you whether an exception applies to your facts, and several of them are genuinely judgement calls.

Sources

Frequently Asked Questions

Am I a resident or non-resident alien for tax purposes?

You are a resident if you hold a green card at any point in the year, or if you meet the substantial presence test — at least 31 days in the US this year AND at least 183 weighted days over three years, counting all of this year, a third of last year and a sixth of the year before. Days spent as an exempt individual on an F, J, M or Q visa do not count at all.

Does the substantial presence test use calendar days or working days?

Calendar days of physical presence, and any part of a day counts as a whole day. Your arrival day and departure day each count as a full day. Weekends, holidays and days you were not working all count — the test is about presence, not employment.

I am an F-1 student. Am I a non-resident?

Almost certainly for your first five calendar years in the US, because your days do not count toward the test while you are an exempt individual. Those five years are counted cumulatively over your lifetime, so earlier time in the US on a student visa uses them up. You still need to file Form 8843 each year to claim the exemption, even with no income.

What happens in the year I become a resident?

You may have a dual-status year: non-resident for part of it and resident for the rest, with different rules applying to each period. It generally means filing Form 1040 with a 1040-NR statement attached, and the deductions and credits available to you are restricted. This is the single most error-prone return type for visa holders and worth having prepared professionally.

Does being a tax resident affect my immigration status?

No. They are separate systems with separate definitions. Being treated as a resident for tax has no bearing on your visa, your green card application or your immigration record. Filing correctly is generally viewed positively for immigration purposes, whereas failing to file is not.

Do I have to report my foreign bank accounts?

If you are a tax resident, yes — FBAR is required if your foreign accounts together exceeded $10,000 at any point in the year, even for a single day, and Form 8938 may also apply. Non-residents generally do not have these obligations. This is one of the most consequential differences between the two statuses, and the penalties for missing FBAR are severe.

Want an expert to file it for you?

Federal and state filing from $19.99, prepared and reviewed by EvoTax professionals.

Contact Us