10 min readUpdated March 12, 2026H1B TaxFile Editorial

Key Takeaways

  • Resident aliens report worldwide income on Form 1040; nonresidents report only U.S.-source income on 1040-NR
  • The Substantial Presence Test and Green Card Test determine your status
  • Resident aliens can claim the standard deduction; nonresidents cannot
  • Dual-status years are common for visa transitions (F-1 to H-1B, J-1 to H-1B)
  • Tax treaty tie-breaker rules can override the SPT result in some cases

File your H-1B return — $49.99

Start free

Resident Alien vs Nonresident Alien: Key Tax Differences (2026)

Your classification as a resident alien or nonresident alien determines which tax form you file, what income you report, and which deductions and credits are available. This guide explains both statuses, how to determine yours, and what changes between them.

Resident Alien vs Nonresident Alien: Definitions

For U.S. federal tax purposes, every foreign national in the United States is classified as either a resident alien or a nonresident alien. This classification has nothing to do with immigration status — it is purely a tax determination.

  • Resident alien: Taxed the same as a U.S. citizen. Reports worldwide income on Form 1040. Eligible for the standard deduction and all tax credits. Can file jointly with a spouse.
  • Nonresident alien: Taxed only on U.S.-source income. Files Form 1040-NR. Cannot claim the standard deduction. Limited access to credits. Cannot file jointly (with limited exceptions).

You become a resident alien by passing either the Green Card Test or the Substantial Presence Test. If you pass neither, you are a nonresident alien.

The Substantial Presence Test: Day-by-Day Calculation

The Substantial Presence Test (SPT) is a mathematical formula that counts your days in the United States over a 3-year period. You pass the SPT and become a resident alien if you meet both conditions:

  • 31-day test: You were physically present in the U.S. for at least 31 days during the current calendar year.
  • 183-day test: The sum of the following equals 183 or more: all days present in the current year + 1/3 of days present in the prior year + 1/6 of days present two years ago.

Certain days are excluded from the count:

  • Days you were present as an F-1 or J-1 student (exempt for 5 calendar years).
  • Days you were present as a J-1 non-student (scholar, trainee, etc.) — exempt for 2 calendar years.
  • Days you were in transit between two foreign countries.
  • Days you could not leave the U.S. due to a medical condition that arose while you were here.

For a detailed walkthrough of the SPT with examples, see our Substantial Presence Test Guide.

The Green Card Test

The Green Card Test is simpler: you are a resident alien if you are a lawful permanent resident of the United States at any time during the calendar year. This status begins on the date your green card is issued and continues until it is officially revoked or you are determined to have abandoned your residence.

Once you pass the Green Card Test, you remain a resident alien for tax purposes regardless of how many days you spend in the U.S. This means even if you leave the country for most of the year, you must continue filing Form 1040 on worldwide income until your green card status is formally terminated.

Tax Obligations: What Changes Between Statuses

The differences between resident and nonresident alien taxation are substantial:

  • Income reporting: Residents report worldwide income (U.S., India, everywhere). Nonresidents report only U.S.-source income.
  • Tax form: Residents file Form 1040. Nonresidents file Form 1040-NR.
  • FICA taxes: Residents pay Social Security and Medicare on all wages. Nonresidents on F-1 or J-1 visas may be exempt.
  • Foreign account reporting: Residents must file FBAR and FATCA (Form 8938) for foreign accounts. Nonresidents generally do not.
  • Filing status: Residents can file as Single, Married Filing Jointly, Married Filing Separately, Head of Household, or Qualifying Surviving Spouse. Nonresidents are limited to Single, MFS, or QSS.

Deductions and Credits Available to Each Status

The deduction and credit landscape differs significantly:

  • Standard deduction: Available to resident aliens ($16,100 single / $32,200 MFJ for 2026). Not available to nonresident aliens.
  • Itemized deductions: Residents can itemize all qualifying expenses. Nonresidents can only deduct expenses that are effectively connected with U.S. income.
  • Child Tax Credit: Available to residents with qualifying children. Generally not available to nonresidents (unless from certain treaty countries).
  • Earned Income Credit: Available to residents only. Never available to nonresidents.
  • Education credits: Available to residents. Not available to most nonresidents.
  • Foreign Tax Credit: Available to both, but with different mechanics. Residents claim it on Form 1116. Nonresidents can claim it on effectively connected income only.

Dual-Status Year: When You Are Both in One Year

If you transition between nonresident and resident status within the same calendar year, you have a dual-status year. This is common for individuals who:

  • Change from F-1 to H-1B and pass the SPT partway through the year.
  • Change from J-1 to H-1B after their NRA exempt period.
  • Arrive in the U.S. on H-1B for the first time mid-year.
  • Receive a green card partway through the year.

In a dual-status year, you file Form 1040 for the resident portion and attach a Form 1040-NR statement for the nonresident portion. Dual-status filers cannot use the standard deduction and cannot file a joint return.

As an alternative, you may be able to make a First-Year Choice election to be treated as a resident for the entire year, which removes the dual-status restrictions.

Frequently Asked Questions

Skip the complexity. We handle all of this for you.

H1B TaxFile supports every form in this guide — FATCA, PFIC, FTC, RSU basis correction, and 22 more H-1B-specific features. Flat price, no surprises.

No credit card to start Printable PDF in 15 minutes 22 H-1B-specific features
File your return — $49.99

H1B TaxFile Team

Written by the H1B TaxFile editorial team — tax professionals and software engineers who specialize in U.S. federal tax filing for H-1B visa holders, F-1 students, and nonresident aliens.

Reviewed by a licensed CPA with international tax experience.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and change frequently. Consult a qualified tax professional for advice specific to your situation.

Recommended Reading