DesiSquare/ tools
Browse tools
See every tool, with what each one does →

Am I a US Tax Resident?

Every foreign-account and foreign-gift filing starts with the words "a US person" — and that is a tax question, not an immigration one. You can hold a temporary visa and be a US tax resident; you can spend months in the country and not be. It is a weighted three-year day count, and it runs in your browser — nothing you enter reaches any server.

Your days in the United States

The rulebook, verified

Thirty-one days this year, and one hundred eighty-three across three years — with the older years discounted verified

An individual meets the Substantial Presence Test for a calendar year if they were physically present in the United States on at least thirty-one days during the current year, AND on at least one hundred eighty-three days across a three-year period counting: all the days present in the current year, one-third of the days present in the first preceding year, and one-sixth of the days present in the second preceding year. Both conditions must be satisfied — thirty-one current-year days alone is not enough, and a large weighted total does not count if the current year falls under thirty-one days.

IRC §7701(b)(3) primary source verified 2026-08-25

Any part of a day counts as a day — with four specific exceptions verified

A person is treated as present in the United States on any day they are physically present in the country at any time during that day; a few hours counts as a full day. Four categories of day are excluded: days commuting to work from a residence in Canada or Mexico where the person regularly commutes; days in the United States for less than twenty-four hours while in transit between two places outside it; days present as a crew member of a foreign vessel; and days unable to leave because of a medical condition that developed while in the United States. A layover on the way to somewhere else generally does not count — a weekend visit does.

IRC §7701(b)(7); IRS guidance on days of presence primary source verified 2026-08-25

On a student visa, your days generally do not count at all — for five calendar years verified

A student temporarily present on an F, J, M or Q visa who substantially complies with the visa's requirements is an 'exempt individual', and days present as an exempt individual do not count toward the Substantial Presence Test at all. This applies for up to five calendar years: a person ceases to be exempt on this basis once they have been exempt as a student, teacher, trainee or exchange visitor for any part of more than five calendar years. Note the counting is by CALENDAR YEAR and by any part of it — arriving in December burns a full year of the five.

IRC §7701(b)(5); IRS guidance on exempt individuals primary source verified 2026-08-25

As a teacher or trainee, the exemption is far shorter — two of the previous six years verified

A teacher or trainee temporarily present on a J or Q visa is likewise an exempt individual, but on a much tighter limit than a student: the exemption is unavailable if the person was exempt as a teacher, trainee or student for any part of two of the six calendar years preceding the current year. A narrow extension exists where a foreign employer paid all of the person's compensation. Because student years and teacher/trainee years count toward each other's limits, a person who studied in the United States and later returned on a J visa can find the exemption already spent.

IRC §7701(b)(5); IRS guidance on exempt individuals (teachers and trainees) primary source verified 2026-08-25

The exemption is not automatic — it is claimed on a form, every year verified

A person excluding days of presence as an exempt individual must file Form 8843, Statement for Exempt Individuals and Individuals With a Medical Condition, for each year they claim the exclusion. Being on a student or exchange visa does not by itself exclude the days; the form is how the exclusion is asserted. A student who never filed Form 8843 has an argument to make rather than a settled position.

Form 8843, Statement for Exempt Individuals and Individuals With a Medical Condition primary source verified 2026-08-25

A green card makes you a resident whatever the day count says verified

The Substantial Presence Test is only one of two routes to US tax residency. A lawful permanent resident — a green-card holder — is a US tax resident under the separate Green Card Test regardless of how few days they spend in the United States, until that status is formally abandoned or revoked. Running a day count is therefore pointless for a green-card holder: the answer is already yes, and the foreign-account and foreign-gift filings apply.

IRC §7701(b)(1)(A)(i); IRS Green Card Test primary source verified 2026-08-25

Two things this page deliberately does not decide. The closer-connection exception can make someone who meets the day count a non-resident anyway, and a tax-treaty tie-breaker can do the same by a different route — India has such a treaty with the United States. Both are facts-and-circumstances arguments with their own filings, and folding either into a yes/no here would be guessing at the moment the stakes are highest. If your count lands anywhere near the line, that is the conversation to have with a preparer.

We already computed the public version — it is complete and stays free. Log your travel once and the Square keeps the rolling three-year count for you: Join DesiSquare and the Square remembers your dates, re-runs this when the rules change, and puts a credentialed human one message away.