Resident Alien vs. Nonresident Alien: Tax Rules & Key Differences

Resident Alien vs. Nonresident Alien: Tax Rules & Key Differences

For U.S. federal income tax purposes, anyone who is not a U.S. citizen is classified by the Internal Revenue Service (IRS) as either a resident alien or a nonresident alien.

These two classifications shape how you are taxed. Resident aliens are generally taxed on their worldwide income from all sources. Nonresident aliens are taxed only on specific income sourced within the United States or income connected to an active U.S. business.

Your immigration status does not always match your tax status. You can be a U.S. tax resident without a green card, and you can live in the United States on certain visas without becoming a tax resident.

In this article, we’ll explain how the IRS determines your classification, how the two categories differ, and how to identify your filing rules for the 2026 and 2027 tax years.

What Is the Difference Between a Resident and Nonresident Alien?

The IRS uses these terms to separate foreign nationals who have to report global income from those who report only domestic U.S. income.

Tax ConsiderationResident AlienNonresident Alien
Residency TestMeets the Green Card Test or Substantial Presence TestDoes not meet either test
Taxable IncomeWorldwide income from all countriesU.S.-source income and business earnings
Tax ReturnForm 1040Form 1040-NR
Tax RatesStandard graduated individual income tax bracketsGraduated rates for business income; 30% flat rate (or lower treaty rate) for passive income
Standard DeductionAvailable if eligibleGenerally unavailable (limited treaty exceptions apply)
Tax CreditsFull access to eligible family, child, and education creditsHighly restricted eligibility
Foreign Account ReportingRequired to file FBAR (FinCEN Form 114) and Form 8938 if account thresholds are metGenerally exempt from FBAR and Form 8938
Tax TreatiesRelies on treaties mainly to prevent double taxation on foreign incomeRelies on treaties to reduce or eliminate U.S. withholding taxes

Your classification is evaluated independently for each calendar year. A change in your days spent in the country or your visa category can change your tax classification from one year to the next.

For a deeper dive into form differences, read our guide on Form 1040 vs. Form 1040-NR.

Unsure of Your Exact IRS Residency Status?

Day-counting rules and visa exemptions can make determining your tax classification tricky. Work with a Greenback accountant to map out your physical presence history, identify applicable exceptions, and ensure you file the right return from day one.

How Do I Know If I’m a Resident or Nonresident Alien for Tax Purposes?

You can figure out your tax residency by walking through five basic questions:

  1. Are you a U.S. citizen? If yes, resident and nonresident alien rules do not apply to you. You are taxed as a citizen.
  2. Do you hold a green card? If you are a lawful permanent resident, you pass the Green Card Test.
  3. If you do not have a green card, do you meet the Substantial Presence Test? Count your physical days in the U.S. over the current year and the two previous years.
  4. Can you exclude days of presence? Certain students, teachers, and trainees hold “exempt individual” status, meaning specific days are not counted toward the Substantial Presence Test.
  5. Does an exception or tax treaty apply? The Closer Connection Exception or treaty tie-breaker rules can allow someone who meets the day-count test to remain classified as a nonresident alien.

If you meet neither test, you are a nonresident alien. If you meet either test and no exceptions apply, you are a resident alien.

How the IRS Determines Resident Alien Status

The IRS relies on two primary tests to establish resident alien status: the Green Card Test and the Substantial Presence Test.

1. Green Card Test

You meet the Green Card Test if you are a lawful permanent resident of the United States at any point during the calendar year.

Once your green card is approved, you are treated as a U.S. resident alien for federal tax purposes, even if you spend months or years living outside the country.

An expired physical card does not end your tax residency. Under IRS rules, your status continues until you formally surrender your permanent residence using USCIS Form I-407 or an immigration judge formally revokes it.

For more information about continuing tax obligations and foreign income, see our Green Card Holder Taxes guide.

2. The Substantial Presence Test

You can become a U.S. tax resident without a green card if you spend enough time in the country over a three-year window.

To meet the test, you must satisfy two day-count rules:

  • You must be physically present in the United States for at least 31 days during the current calendar year.
  • You must reach at least 183 weighted days across a three-year period.

The IRS calculates weighted days using a specific formula:

  • All physical days present in the current year, plus
  • One-third (1/3) of the days present in the prior year, plus
  • One-sixth (1/6) of the days present two years prior.

Because of this three-year lookback, spending as few as 122 days in the U.S. each year can make you a tax resident.

However, not every day spent in the U.S. counts. Certain students, teachers, and researchers on F, J, M, or Q visas hold “exempt individual” status, allowing them to exclude their physical days from the formula for a set number of years.

For step-by-step examples, excluded-day rules, and day-counting worksheets, explore our complete guide to the Substantial Presence Test.

How Different Visas Affect Tax Residency

Your visa category doesn’t automatically determine your tax status, but it does determine whether your physical days in the U.S. count toward the Substantial Presence Test.

Visa TypePrimary PurposeHow Days Are Counted
Green CardPermanent ResidentResident alien automatically under the Green Card Test
H-1B, L-1, O-1, TNTemporary Specialty WorkersAll physical days count toward the Substantial Presence Test
F-1, M-1Academic & Vocational StudentsDays are generally excluded for the first 5 calendar years
J-1, Q-1Exchange Visitors, Teachers, TraineesDays are generally excluded for 2 out of the past 6 calendar years
B-1, B-2Business & Tourism VisitorsAll physical days count, subject to the Closer Connection Exception

H-1B, L-1, and O-1 Specialty Workers

Workers on temporary work visas are not exempt individuals. Every day spent in the U.S. on an H-1B, L-1, or O-1 visa counts toward the 183-day formula. Most full-time work visa holders transition into resident alien status during their first or second year.

To review specific rules for specialty occupations, check out our guide on whether an H-1B holder is a resident alien and our overview of H-1B taxes and compliance.

F-1 and J-1 Students and Scholars

The IRS grants “exempt individual” status to specific educational visa holders. This does not mean you are exempt from paying tax on U.S. earnings. It means your physical days in the country are exempt from the Substantial Presence Test day count.

  • F-1 and M-1 Students: Can exclude physical days for up to 5 calendar years over their lifetime.
  • J-1 Teachers, Researchers, and Trainees: Can generally exclude physical days for 2 calendar years out of the previous 6 calendar years.

To claim this day exemption, you must submit Form 8843 (Statement for Exempt Individuals and Individuals with a Medical Condition) to the IRS every year, even if you had zero U.S. income.

For recent updates on student classifications, read about student visa tax residency rule changes.

Taxpayer Identification: SSN vs. ITIN

Having a U.S. government identification number does not determine your tax residency. Both resident aliens and nonresident aliens use taxpayer numbers:

  • Social Security Number (SSN): Issued by the Social Security Administration to U.S. citizens, permanent residents, and temporary visa holders authorized to work in the country.
  • Individual Taxpayer Identification Number (ITIN): A nine-digit number issued by the IRS for individuals who have U.S. tax filing or reporting duties but are not eligible for an SSN (such as nonresident investors or dependent family members).

An SSN or ITIN simply identifies you on tax forms; it does not turn a nonresident into a resident alien.

If you or a family member need an ITIN, explore why you might need an ITIN and how to get one.

How to Remain a Nonresident Even If You Meet Day Counts

1. Closer Connection Exception (Form 8840)

If you meet the Substantial Presence Test, you can still claim nonresident alien status if you maintain a closer economic and personal connection to another country.

To qualify, you must meet all four criteria:

  • You were physically present in the United States for fewer than 183 days during the current calendar year.
  • You maintained a tax home in a foreign country for the entire year.
  • You established a closer connection to that foreign country than to the U.S. (based on where your permanent home, family, personal belongings, and banking ties are located).
  • You have not applied for a green card or taken official steps to adjust your status to permanent resident.

To claim this relief, you must file Form 8840 (Closer Connection Exception Statement for Aliens) with the IRS by the annual tax deadline.

2. Tax Treaty Tie-Breaker Rules

If both the United States and another country claim you as a tax resident under their domestic laws, you are a “dual-resident taxpayer.” Most bilateral U.S. income tax treaties include residency tie-breaker rules to resolve this.

Treaties evaluate a hierarchy of ties:

  1. Where you maintain a permanent home
  2. Where your center of vital interests (personal and economic ties) is located
  3. Your habitual abode (where you spend more time)
  4. Your nationality or citizenship

If the treaty assigns your residency to your home country, you can file your U.S. tax return as a nonresident alien using Form 1040-NR, attaching Form 8833 (Treaty-Based Return Position Disclosure).

If you are living in the U.S. on a work or study visa, your filing rules depend on your specific travel history, visa category, and foreign accounts. Explore our dedicated tax services to see how we help international professionals navigate residency transitions, dual-status returns, and foreign asset disclosures.

Learn How Greenback Helps Foreign Nationals

How Resident and Nonresident Aliens Are Taxed

The differences between the two classifications directly affect what income you declare and how much tax you pay.

Resident Alien Taxation

Resident aliens file Form 1040, just like U.S. citizens.

Nonresident Alien Taxation

Nonresident aliens file Form 1040-NR. You only report income with a U.S. connection, which falls into two distinct categories:

  1. Effectively Connected Income (ECI): Income earned from an active U.S. business or employment (such as wages from a U.S. job or freelance work performed in the country). ECI is taxed at standard graduated individual income tax rates after allowable business deductions.
  2. Fixed, Determinable, Annual, or Periodical Income (FDAP): Passive U.S.-source income, such as dividends, royalties, real estate rents, or interest. FDAP income is generally taxed at a flat 30% gross withholding rate with no deductions, unless reduced by a bilateral tax treaty.

Nonresident aliens generally cannot claim the standard deduction (with limited exceptions for students and scholars from India under the U.S.–India treaty) and have limited access to dependent tax credits.

To understand how withholding forms work on passive or treaty-exempt income, read about Form 1042-S for foreign income reporting and our guide to FDAP vs. ECI income.

Which Tax Return Should You File?

Your tax residency status helps determine which individual federal income tax return applies.

Filing SituationPrimary Tax ReturnAccompanying Schedules
Resident Alien for the full yearForm 1040Standard Form 1040 schedules; FBAR and Form 8938 if applicable
Nonresident Alien for the full yearForm 1040-NRSchedule OI; Form 8843 if on an exempt student or scholar visa
Dual-Status Tax YearForm 1040 with Form 1040-NR attached as an informational statement (or vice versa)Marked “Dual-Status Statement” across the top
Nonresident Alien married to a U.S. Citizen or ResidentJoint Form 1040 (requires a Section 6013(g) or (h) election)Statement electing to treat the nonresident spouse as a full-year resident
Claiming Treaty Nonresident StatusForm 1040-NRForm 8833 disclosing the specific treaty position

For a complete overview of broader rules for foreign citizens, visit our guide on U.S. taxes for foreigners.

Dual-Status Tax Years: When Status Changes Mid-Year

You can be both a nonresident alien and a resident alien during the same calendar year. The IRS calls this a dual-status tax year. 

This split status commonly occurs during:

  • The year you arrive: You relocate to the United States on a work visa or receive a green card mid-year.
  • The year you depart: You permanently move abroad and sever your U.S. tax ties.

How Dual-Status Filing Works 

During a dual-status year, your tax year divides into two distinct periods:

  1. Nonresident period: You report and pay U.S. tax only on income sourced inside the United States.
  2. Resident period: You report worldwide income from all domestic and foreign sources.

Because dual-status filers cannot claim the standard deduction or file jointly, assembling these returns requires coordinating Form 1040 and Form 1040-NR together. For a full walkthrough of required attachments and IRS rules, see our guide on filing as a dual-status alien. 

If your day count already places you in resident territory, read our guide on resident alien tax obligations to see how your worldwide reporting, deduction access, and foreign asset disclosures change immediately.

Common Real-Life Tax Scenarios

To see how these rules apply, consider these situations we’ve encountered at Greenback:

Scenario 1: An H-1B Worker Without a Green Card

  • Situation: Rajiv works in Seattle on an H-1B visa and has lived in the U.S. for three consecutive years. He does not hold a green card.
  • Classification: Resident alien under the Substantial Presence Test.
  • Tax Treatment: Rajiv files Form 1040 and reports his U.S. wages, along with bank interest and dividends from accounts in India. He must also file an annual FBAR if his Indian accounts total more than $10,000.

Scenario 2: An F-1 Graduate Student

  • Situation: Elena moved to Boston in August 2023 on an F-1 student visa. She earns an on-campus teaching stipend in 2026.
  • Classification: Nonresident alien. Because 2026 is her fourth calendar year in the U.S., she remains an “exempt individual” for the Substantial Presence Test.
  • Tax Treatment: Elena files Form 1040-NR to report her U.S. stipend, alongside Form 8843 to document her exempt days. Her savings accounts in Italy are not reported to the IRS.

Scenario 3: A Foreign Property Investor

  • Situation: Markus lives in Munich, Germany, and owns a rental condo in Miami. He spends three weeks vacationing in the U.S. each year.
  • Classification: Nonresident alien. He spends far fewer than 31 days in the U.S. each year.
  • Tax Treatment: Markus files Form 1040-NR. His rental revenue is subject to U.S. nonresident taxation. He can elect under Section 871(d) to treat the rent as effectively connected income, allowing him to deduct mortgage interest, property taxes, and depreciation to pay tax only on net profits.
  • For estate planning on U.S. real estate, review our guide to estate tax treaties on nonresident property.

Tax Residency Mistakes

Classification errors can lead to incorrect returns, missed deductions, or IRS notices. Watch out for these common scenarios:

  • Assuming you need a green card to be a tax resident: Passing the Substantial Presence Test makes you a resident alien regardless of visa type.
  • Assuming 183 days applies only to a single year: The Substantial Presence Test counts weighted days across a three-year span.
  • Assuming an SSN makes you a resident alien: Social Security numbers reflect work authorization, not tax residency.
  • Thinking F-1 students never become resident aliens: The student day exemption generally expires after 5 calendar years.
  • Failing to file Form 8843: Even if you have zero U.S. earnings, exempt individuals must file Form 8843 annually to maintain their exclusion from the Substantial Presence Test.
  • Believing moving abroad automatically ends resident status for green card holders: Green card tax residency continues until you formally surrender your card via Form I-407.

File Your U.S. Return with Complete Confidence

Whether you need to file Form 1040 as a resident alien, Form 1040-NR as a nonresident, or claim international treaty benefits, you do not have to navigate the rules alone. Connect with a dedicated Greenback CPA or IRS Enrolled Agent for transparent flat-fee tax preparation.

Frequently Asked Questions About Resident and Nonresident Aliens

How Do I Know If I’m a Resident or Nonresident Alien for Tax Purposes?

Start by determining whether you meet the IRS green card test or substantial presence test. If you meet either test, you’re generally a resident alien, unless an exception or treaty provision applies. If you meet neither test and no applicable election changes your treatment, you’re generally a nonresident alien.

Can You Have a Social Security Number and Still Be a Nonresident Alien?

Yes. Having an SSN doesn’t establish U.S. tax residency. A foreign national may have a Social Security number because they are or were authorized to work in the United States but still qualify as a nonresident alien under the applicable tax rules.

Is an H-1B Visa Holder a Resident or Nonresident Alien?

An H-1B worker may be either, depending primarily on their qualifying days of U.S. presence and other applicable rules. H-1B status alone doesn’t automatically establish tax residency. Many H-1B workers become resident aliens after meeting the substantial presence test.

Can an F-1 Student Become a Resident Alien for Tax Purposes?

Yes. Eligible F-1 students may exclude certain days of U.S. presence for a limited period, generally during their first five calendar years of eligibility. After that, you must evaluate the substantial presence test and any applicable exceptions.

Is a Green Card Holder Always a Resident Alien for Tax Purposes?

A green card holder generally meets the green card test for U.S. tax residency. However, residency starting and ending dates, applicable treaty positions, and special rules can affect their treatment in a particular tax year. Moving abroad doesn’t automatically terminate tax residency.

What If I Meet the Substantial Presence Test but Live in Another Country?

You may still be considered a U.S. resident alien. However, the closer-connection exception or an applicable tax treaty may allow qualifying individuals to claim nonresident treatment. Each has specific eligibility and reporting requirements.

Can I Be a Resident and Nonresident Alien During the Same Tax Year?

Yes. This is known as a dual-status tax year and commonly occurs when someone moves to or from the United States. Special rules determine how you report income, which deductions you can claim, and which return you must file.

Does a Resident Alien Pay U.S. Taxes on Foreign Income?

Generally, yes. Resident aliens are subject to U.S. federal income tax on worldwide income, including taxable income earned outside the United States. Foreign tax credits, exclusions, treaty provisions, and other rules may help reduce double taxation when applicable.