Skip to content
Rubric Financial

Free Calculator

Substantial Presence Test Calculator

Find out whether the IRS treats you as a resident alien or a nonresident alien for 2026, using the 183-day weighted formula, with exempt days removed and the arithmetic shown.

Why the day count matters

A visa does not decide your U.S. tax status; your days do. Once you meet the substantial presence test you are taxed like a citizen on worldwide income, and the foreign reporting rules start too. For someone who moved from India on an H-1B or finished an F-1 student period, that usually means NRE and NRO interest, Indian mutual funds and provident fund balances all come onto the U.S. return. Our guide to the substantial presence test for visa holders walks through each visa type, and the glossary entry covers the definitions.

Your days in the U.S.

Count every day you were physically in the U.S., even part of a day, then subtract the days the IRS says do not count.

Your 2026 status

Resident alien for tax purposes

You meet the substantial presence test for 2026.

2026: 200 days = 200 x 1200
2025: 120 days = 120 x 1/340
2024: 0 days = 0 x 1/60

Weighted total240 days
At least 183 weighted days?Yes
At least 31 days in 2026?Yes (200)

What residency starts

As a resident you report worldwide income, and accounts abroad may trigger an FBAR, Form 8938, Form 8621 for foreign mutual funds and Form 3520 for large foreign gifts. Check your accounts with the FBAR and Form 8938 Threshold Checker.

Read this carefully

This calculator applies the day-count test only. It does not apply tax treaty tie-breaker rules (Form 8833), the separate limits on how many years a student or teacher can be an exempt individual, or the residency starting and ending date rules. Talk through your residency.

Estimates for educational purposes only, not tax, legal, investment, or accounting advice. Your specific facts will change the result; confirm with a CPA before acting.

Email me what to do with this number.

Next: what your residency status means for your first U.S. return, the dual-status and joint-filing choices, and the foreign account forms that come with it. We send short, partner-written reads on tax, accounting, and finance, and nothing else. The calculator itself stays free and needs no sign-up. No spam, unsubscribe anytime.

How the calculator works

  1. 1

    Enter your days in the U.S. for three years

    Count every day you were physically present in the current year, the prior year and the year before, including partial days.

  2. 2

    Subtract exempt days

    Remove student or teacher days, medical-condition days, Canada or Mexico commuter days and transit days under 24 hours for each year they apply.

  3. 3

    Apply the weighted formula

    The calculator adds all current-year days, one third of the prior year and one sixth of the year before, then checks the 183-day total and the 31-day current-year minimum.

  4. 4

    Read your status and the notes

    See whether you are a resident alien or a nonresident alien, plus notes on the closer connection exception, dual-status returns and what residency means for accounts abroad.

Residency is the first question, not the last

The year you become a resident is the year elections get made: dual status or a full-year joint return, the first-year choice, treaty positions, and which accounts abroad go on the FBAR and Form 8938. Rubric Financial prepares first-year resident returns as part of its cross-border tax work, quoted after a short call.

Check FBAR and Form 8938

Frequently Asked

Substantial presence test questions

How does the substantial presence test work?
You are a U.S. resident for tax purposes if you were physically present at least 31 days in the current year and at least 183 days over three years, counting all current-year days, one third of the prior year's days, and one sixth of the days in the year before that. Exempt days are left out first. Green card holders are residents under a separate test, whatever their day count.
What counts as a day of presence?
Any day you are physically in the U.S. at any time, even for an hour, counts as a full day. The exceptions are days as an exempt individual (such as an F-1 student), days you could not leave because of a medical condition that arose here, regular commuting days from Canada or Mexico, and days in transit between two foreign points for under 24 hours.
Do F-1 student days count, and what is Form 8843?
Generally no. Students on F, J, M or Q visas are exempt individuals for up to five calendar years, so those days do not count, and teachers or trainees on J or Q visas are exempt for two of every six years. To claim the exclusion you file Form 8843 for each year, even with no income. When the exempt period ends, every day starts counting, which is often the year an OPT or H-1B holder becomes a resident.
I arrived on an H-1B in the middle of the year. Am I a resident?
If you meet the test in your arrival year, you are usually a dual-status alien: a nonresident before your first day in the U.S. and a resident after it. A dual-status return cannot use the standard deduction or file jointly by default. If you do not meet the test until the next year, the first-year choice may let you start residency early, and a married couple can elect to file jointly as full-year residents.
What is the closer connection exception?
If you meet the test but were present fewer than 183 days in the current year, you can be treated as a nonresident by showing that your tax home was in a foreign country all year and that you had a closer connection to that country than to the U.S. You claim it on Form 8840 by your return due date. It is not available if you applied for a green card or took steps toward one.
What does becoming a resident mean for my accounts abroad?
From the first day of residency you report worldwide income, including interest on NRE and NRO deposits in India. Foreign accounts above $10,000 in aggregate trigger an FBAR, larger balances can require Form 8938, Indian mutual funds are usually PFICs reported on Form 8621, and gifts from parents abroad over $100,000 in a year are reported on Form 3520.

Keep reading

Glossary

Form 3520 (Foreign Gifts and Foreign Trusts)

The information return a U.S. person files after receiving more than $100,000 in a year in gifts or bequests from nonresident individuals or foreign estates, or any distribution from a foreign trust. No tax is due with it; the late penalty is 5% of the gift per month, up to 25%.

Glossary

Substantial Presence Test

The day-count test that makes a non-citizen a U.S. tax resident: at least 31 days in the current year and at least 183 weighted days over three years, counting all of this year's days, one-third of last year's, and one-sixth of the year before.

Glossary

Streamlined Filing Compliance Procedures

The IRS program for fixing non-willful failures to report foreign income and foreign accounts: three years of amended returns, six years of FBARs, a signed non-willful certification, and a 5% penalty for U.S. residents (none for qualifying nonresidents).

Glossary

RNOR (Resident but Not Ordinarily Resident)

An Indian tax residency status, available for up to three years after returning to India, under which foreign-source income stays outside Indian tax. An India-side concept that shapes the timing of the U.S. departure-year return.

Guide

RNOR Transition Planning: Returning to India from the U.S.

Returning Indians enjoy 'Resident but Not Ordinarily Resident' (RNOR) status for up to 3 years, sheltering foreign income from Indian tax. Here's how to maximize the window.

Guide

Substantial Presence Test: When a Visa Holder Becomes a U.S. Tax Resident

The 31-day and 183-weighted-day test that makes an H-1B, L-1, or other visa holder a U.S. tax resident, the exempt-day rules for students, dual-status first and last years, the first-year choice, and ITINs for a spouse or parents.