Resident Alien vs Nonresident Alien IRS Rules
Understand resident alien vs nonresident alien status, tax filing, payroll withholding, deductions, and next steps when you enter the US tax system now.

A visa label does not tell the IRS how to tax you. An F-1 student can be a nonresident alien for tax purposes while living in the United States full time. An H-1B worker may become a resident alien during their first year. The resident alien vs nonresident alien distinction determines which tax return you file, whether you report foreign income, and which deductions and credits may be available.
For many newcomers, the confusing part is that tax residency and immigration status are separate systems. Your visa still controls your permission to work, study, or remain in the country. But the IRS uses its own tests to decide whether you are a US resident for federal income tax.
Resident alien vs nonresident alien: the core difference
A resident alien is generally taxed much like a US citizen. You file Form 1040, report income from around the world, and may use tax rules available to other US residents, subject to the usual eligibility requirements.
A nonresident alien generally files Form 1040-NR if a return is required. You usually report US-source income and income effectively connected with a US trade or business, such as wages from a US job. Foreign income is often outside the scope of a nonresident return, though the details depend on the type and source of income.
This distinction can materially change your tax bill. A resident alien may have broader access to deductions, family-related credits, and the standard deduction. The trade-off is broader income reporting, including income from overseas bank interest, investments, freelance work, or property.
Do not read “alien” as an immigration category or a judgment about your place in the country. It is longstanding tax terminology. The question is simply which federal tax rules apply to you for a particular calendar year.
How the IRS decides your tax residency
You are usually a resident alien for federal tax purposes if you meet either the green card test or the substantial presence test.
The green card test
You meet this test if you are a lawful permanent resident at any point during the calendar year. In plain terms, if USCIS has granted you a green card and it has not been revoked or administratively determined to be abandoned, you are generally a resident alien for tax purposes.
Your tax residency may begin before you have spent much time physically in the United States. That is why new green-card holders should look at the date permanent resident status began, not just their move date.
The substantial presence test
Many temporary visa holders become resident aliens through the substantial presence test. The IRS counts your days of physical presence in the United States using this formula:
- All days present in the current year
- One-third of the days present in the previous year
- One-sixth of the days present two years earlier
You generally meet the test when the total equals at least 183 days and you were present for at least 31 days in the current year. A day you are physically present for even part of the day usually counts.
For example, someone present for 180 days this year, 150 days last year, and 120 days two years ago has a total of 250 days: 180 + 50 + 20. They meet the substantial presence test, assuming no excluded days apply.
The formula looks simple, but excluded days are where many students and exchange visitors make mistakes. SettleinUS’s substantial presence test calculator can help with the arithmetic, but you still need to correctly identify days that the IRS allows you to exclude.
Why F-1, J-1, and OPT rules need extra care
Certain people are “exempt individuals” for substantial presence test purposes. This does not mean they are exempt from paying tax. It means certain days in the United States do not count toward the substantial presence test.
F-1 students, including many students on CPT or OPT, can generally exclude days for five calendar years. The rule is based on calendar years, not 12-month periods. A student who first arrives in December has used one of those calendar years, even if they were present for only a few weeks.
J-1 rules depend on why you are in the United States. Students may qualify under a different limit than teachers, trainees, researchers, au pairs, and camp counselors. Prior visits in J, F, M, or Q status can also affect whether your days remain excludable.
Once excluded-day eligibility ends, an F-1 or J-1 holder can meet the substantial presence test quickly. This is common for OPT participants who assume their tax treatment remains unchanged after graduation. It may not.
If you claim excluded days, you may need to file Form 8843 even when you had no income and do not otherwise need to file a federal income tax return. Treat that form as part of maintaining accurate tax records, not as an optional administrative detail.
What changes on your tax return
Your federal filing status affects far more than the form name. A resident alien normally files Form 1040 and can generally choose from the same filing statuses as a US citizen, including married filing jointly if the couple qualifies.
A nonresident alien generally files Form 1040-NR. Nonresidents have more limited filing-status choices and usually cannot file a joint return with a spouse. They also generally cannot claim the standard deduction. One significant exception applies to certain students and business apprentices from India under the US-India income tax treaty.
Tax treaties can reduce or eliminate tax on certain types of income, especially for students, researchers, teachers, and trainees. A treaty benefit is not automatic just because your country has a treaty with the United States. Eligibility can depend on your visa category, the purpose and length of your visit, the type of payment, and whether you have already become a resident alien.
Resident aliens with foreign financial accounts may also have separate reporting obligations once account balances pass applicable thresholds. Those reports are different from your income tax return. The fact that an account earns no income does not always end the analysis.
Payroll withholding does not settle the question
Your employer’s payroll system may withhold federal and state income tax, Social Security, and Medicare taxes from every paycheck. That withholding is an estimate or collection mechanism. It does not decide whether you are a resident alien or nonresident alien when you file.
Nonresident alien employees can face special Form W-4 rules that affect withholding. They may see more tax withheld than a similarly paid resident employee because of limits on withholding adjustments. Overwithholding is not necessarily a loss - it may be refunded after you file the correct return.
F-1 students and some other qualifying nonresident aliens are often exempt from Social Security and Medicare taxes on authorized work. When they become resident aliens for tax purposes, that exemption commonly ends. If FICA taxes appear on your paycheck unexpectedly, check both your tax residency date and whether payroll has your correct visa information.
State income tax residency is another layer. Your federal tax classification does not automatically control state residency, and state rules vary. A state may look at domicile, permanent home, work location, and time spent there. Use your federal classification as the starting point, not the final answer for state filing.
The first year can create a dual-status return
It is possible to be a nonresident alien for part of a year and a resident alien for the rest. This is called dual-status tax residency. It often happens when someone arrives in the United States, later meets the substantial presence test, or receives a green card during the year.
Dual-status filing can be more complicated than filing a standard Form 1040 or 1040-NR. Your income and deductions may be treated differently before and after your residency start date. You generally cannot use the standard deduction on a dual-status return, although special elections may be available in some situations involving a US-resident or US-citizen spouse.
This is a situation where software prompts can be misleading. Keep a travel calendar, I-94 history, passport stamps, visa documents, and records of prior US visits. The correct answer depends on dates, not on what you intended your tax status to be.
A practical way to determine your status
Start with the tax year, because you must determine residency separately for each calendar year. Then ask whether you held a green card at any point during that year. If not, count your US presence days under the substantial presence test, after removing days you are legally allowed to exclude.
Next, identify whether the closer connection exception may apply. A person who is present for fewer than 183 days in the current year may sometimes remain a nonresident alien by showing a closer connection to a foreign country and maintaining a foreign tax home. This exception has strict conditions and requires timely filing, so it is not a general solution for anyone who prefers nonresident treatment.
Finally, match your result to your income, payroll records, treaty position, and state obligations. Review IRS Publication 519 and the instructions for Forms 1040-NR and 8843 before filing. If you have a dual-status year, treaty claim, foreign business income, or a major change in visa status, a tax professional experienced with nonresident returns can be worth the cost.
Your status may change before your job, address, or daily routine does. Check it every year, keep the dates that support your answer, and let the tax rules follow the facts of your move.