Your visa does not decide whether you are a resident of the United States for tax purposes. Two tests decide it, the green card test and the substantial presence test, and neither one asks what stamp is in your passport. This catches people out every year, because an F-1 holder assumes they are a nonresident indefinitely and an H-1B holder assumes they are a resident from the day they land. Both assumptions are wrong often enough to matter.
Resident and nonresident here are tax words. They say nothing about your immigration status, your right to be in the country, or your path to a green card. A person can be a nonresident alien for immigration purposes and a resident for tax purposes in the same year, and that is not a contradiction.
The two tests, in the order they apply
The green card test is the simple one. If you were a lawful permanent resident at any point in the calendar year, you are a resident for tax purposes. There is nothing to calculate.
The substantial presence test is where almost everybody actually lands. You are treated as a resident if you were physically present in the United States on:
- At least 31 days during the current year, and
- At least 183 days across a three year window, counted as all of your days this year, one third of your days in the year before, and one sixth of your days in the year before that
Both parts have to be true. Thirty days this year and four hundred last year is not residency. The 31 day floor comes first.
The weighting is the part people miss. Days from earlier years do not vanish, they shrink. Somebody who was in the country for a long stretch two years ago is carrying a sixth of it into this year’s count without realising it.
The days that do not count at all
Before you count, some days are removed entirely. These are not rounding, they are exclusions, and one of them is what keeps most students nonresident.
- Days you were an exempt individual, explained below
- Days you commuted to work in the United States from a residence in Canada or Mexico, where you do so regularly
- Days in transit between two places outside the United States, where you were here less than 24 hours
- Days as a crew member of a foreign vessel
- Days you were unable to leave because of a medical condition that arose while you were here
That last one is narrower than it sounds. The condition has to have arisen while you were present. A condition you arrived with does not qualify.
Exempt does not mean exempt from tax
This is the single most misread word in the subject. An exempt individual is exempt from counting days, not from paying tax. Somebody can be an exempt individual and still owe tax on US income.
The categories are:
- Students on an F, J, M, or Q visa, in substantial compliance with the visa
- Teachers and trainees on a J or Q visa, in substantial compliance with the visa
- Foreign government related individuals on an A or G visa, not counting A-3 and G-5 holders
- Certain professional athletes competing in a charitable sporting event
The time limits are what eventually move people across the line. A student cannot be an exempt individual for any part of more than five calendar years, unless they establish both that they do not intend to reside permanently in the United States and that they have substantially complied with the visa. A teacher or trainee is generally limited to two of the previous six years.
Note the words calendar years, not twelve month periods. A student who arrived in late December has used a full year of the five on a handful of days. Five arrivals in five Decembers would exhaust the allowance on a few weeks of actual presence.
Claiming exempt status is not automatic either. It is documented on Form 8843, and an exempt individual files that form even in a year with no US income at all and no other return due. Skipping it leaves nothing on record explaining why those days should not have counted.
Why two people on the same visa land on opposite sides
Take two students who both arrived on an F-1. One arrived last year, the other arrived six years ago and has been here continuously. The first is an exempt individual, excludes every day, and is a nonresident. The second has used all five calendar years, counts every day from the sixth onward, clears 183 easily, and is a resident for tax purposes.
Same visa. Same university. Opposite returns, opposite deductions, opposite treatment of their income from outside the United States.
This is why the visa is the wrong thing to reason from. The question is always how many of your days count, and that depends on how long you have been doing this.
What it actually changes
The two statuses are not variations on one return. They are different returns with different rules.
A resident files Form 1040 and is taxed on worldwide income, including income from the country they came from, whether or not it was ever brought into the United States. They can take the standard deduction, and the ordinary credits and filing statuses are available.
A nonresident files Form 1040-NR and is generally taxed only on US source income. If that income is self employment rather than wages, residency also decides whether self employment tax reaches you at all, which is the largest single number on a Schedule C. There is no standard deduction, so deductions have to be itemised if they are to be claimed at all, and most credits are unavailable or restricted.
There is one exception to the standard deduction rule that matters a great deal here. Students and business apprentices eligible for the benefits of Article 21(2) of the United States to India income tax treaty can claim a standard deduction on a Form 1040-NR. It is a genuine treaty entitlement rather than a loophole, and it is missed constantly, including by people who prepare these returns for a living. If that describes you, it is worth checking before you file rather than after.
Dual status, and why it is rarer than the worry about it
Dual status means being a nonresident for part of the year and a resident for the rest of it, in one tax year. It is real, but it is a genuine minority outcome. It arises mostly in the year you arrive or the year you depart, and sometimes in a year when a status changes partway through. Most first year situations resolve cleanly to one side.
If you do land there, the return is more restrictive than either status on its own, and the restrictions surprise people:
- No standard deduction. Itemised deductions only.
- No joint filing, with one exception: a dual status individual married to a US citizen or resident may elect to file jointly with that spouse.
- No head of household tax table or rate schedule.
The mechanics are unusual too. You file one form as the return and the other as a statement attached to it. If you were a resident at the end of the year, Form 1040 is the return, marked “Dual-Status Return”, with a Form 1040-NR attached and marked “Dual-Status Statement” showing the nonresident period. If you were a nonresident at the end of the year, the two swap places.
Getting that the wrong way round is a common and entirely avoidable error.
The closer connection exception
Occasionally somebody passes the substantial presence test and still should not be treated as a resident. The closer connection exception covers that, and all four conditions have to hold:
- You were present fewer than 183 days during the year
- You had a closer connection to one foreign country where you had a tax home than to the United States
- You maintained a tax home in that country for the entire year
- You had not taken steps toward, and had no pending application for, lawful permanent resident status
It is claimed on Form 8840. Two things are worth knowing. The green card condition is strict: applying to change status during the year removes the exception, even if the application was refused. And filing late generally forfeits it, unless you can show by clear and convincing evidence that you took reasonable steps to find out about the requirement and to comply.
What getting it wrong costs
The two directions cost differently, and only one of them tends to be noticed.
A nonresident who files as a resident claims a standard deduction and credits they were never entitled to. That is an amended return and money repaid, and consumer filing software is a common route into it, because most of it defaults to a Form 1040 and never asks the residency question properly.
A resident who files as a nonresident usually overpays, by losing the standard deduction and credits they could have had. Nobody sends a letter about that. It is quietly absorbed, sometimes for years.
The second is the more common of the two, and the harder to detect, because nothing goes wrong loudly.
What to do before you file
Count your days, deliberately, for three years rather than one. Work out whether any of them are excluded and whether you are still inside the five calendar year limit. Settle the status question before you choose a form, rather than choosing a form and discovering the status afterwards.
It is a determination, not a guess, and it is the first thing our international work settles before anything is filed.