USAPaycheck
H1Bresident aliennonresident alienSubstantial Presence Testimmigrant taxesH1B paycheckForm 1040-NRForm 1040dual statusvisa taxeswithholdingstandard deduction

Am I a Resident Alien or Nonresident Alien on H1B? Tax Implications Explained

·7 min read

Your H1B visa does not automatically make you a resident alien for taxes. The IRS uses the Substantial Presence Test — 183 days across three years — to decide. Here's exactly how to calculate it and what changes on your paycheck when your status flips.

Free Tax FilingSponsored

File federal taxes free with FreeTaxUSA

Trusted by millions. $0 for federal returns — no income limit, no surprise fees.

File for Free

Quick Summary

  • Your H1B visa does not determine your tax residency — the IRS uses the Substantial Presence Test (SPT)
  • SPT formula: current-year days + ⅓ prior-year days + ⅙ two-years-ago days ≥ 183 = resident alien
  • The biggest difference: resident aliens get the $15,000 standard deduction; most nonresident aliens get nothing
  • FICA (6.2% + 1.45%) applies to all H1B workers regardless of residency status — it does not change when you flip
  • Use USAPaycheck's free calculator to see your exact take-home at either status

Your visa ≠ your tax status

Most H1B workers assume their visa determines how they're taxed. It doesn't. The IRS doesn't care about immigration categories when calculating your tax bill. It uses a completely separate test — the Substantial Presence Test (SPT) — to decide whether you're a "resident alien" (taxed like a US citizen) or a "nonresident alien" (taxed under different, often harsher rules).

This gap creates real confusion. You could be fully authorized to work in the US on an H1B, earning $100,000 a year, and still be filing as a nonresident alien — paying more tax and missing out on deductions your American coworker takes for granted.

Here's how to figure out exactly where you stand.

The Substantial Presence Test: the 183-day formula

The SPT is a three-year weighted count of your physical days in the United States:

YearWeightExample daysCounted days
Current year1 × (full)200 days200
Prior year× ⅓300 days100
Two years ago× ⅙300 days50
Total350 → Resident alien ✓

If your total hits 183 or more, you're a resident alien for the full current calendar year. If it falls below 183, you remain a nonresident alien for that year.

📊 Key Number

You need at least 31 days in the current year before the SPT can apply at all — even if your prior-year totals are high. If you arrived in December, you almost certainly don't qualify as a resident alien for that calendar year.

Which days count — and which don't

Any day you were physically present in the US counts, including partial days (arriving at 11:59 PM still counts as a day). Days that do not count:

  • Days you were in the US as an F-1 or J-1 student (as an "exempt individual" — typically the first 5 years on F-1)
  • Days you couldn't leave due to a medical condition that arose while you were in the US
  • Days in transit between two foreign destinations (24 hours or less)

This matters most to OPT-to-H1B switchers. Your F-1 OPT days don't count toward the SPT — so your H1B clock starts fresh when your visa changes. Most H1B workers become resident aliens about halfway through their second full calendar year on H1B, though the exact date depends on when they arrived.

What actually changes when you become a resident alien

The short answer: your tax filing becomes more like your American coworkers. The practical difference is mostly about deductions.

Tax itemNonresident alien (NRA)Resident alien (RA)
Filing formForm 1040-NRForm 1040
Standard deduction❌ Not allowed (most cases)✅ $15,000 (single 2025)
Married filing jointly❌ Not available✅ Available ($30,000 standard)
Child Tax CreditLimited / none✅ Up to $2,000/child
EITC❌ Not eligible✅ Eligible if income qualifies
FICA (Social Security + Medicare)6.2% + 1.45%6.2% + 1.45% (identical)
Investment income tax rate30% flat (or treaty rate)0% / 15% / 20% capital gains rates
Tax treatiesMost treaties applyMost treaties stop applying

⚠️ Heads Up

If you've been claiming a tax treaty exemption (common for workers from India, China, or the UK on F-1), most treaty benefits stop when you become a resident alien. Your withholding should increase automatically — but confirm with your payroll department.

The standard deduction: what it's worth in dollars

This is the biggest paycheck-adjacent difference between the two statuses. As a nonresident alien, you file on 1040-NR. Most NRAs cannot claim the standard deduction. There is one major exception: workers from India can claim the US-India treaty standard deduction, but for everyone else, you're starting from zero.

When you become a resident alien and switch to Form 1040, you automatically get the standard deduction — no questions asked.

SalaryAs nonresident alien (no std. deduction)As resident alien ($15,000 deduction)Annual tax savings
$65,000~$8,500 federal tax~$6,750 federal tax~$1,750
$85,000~$12,600 federal tax~$10,650 federal tax~$1,950
$110,000~$18,100 federal tax~$15,850 federal tax~$2,250
$140,000~$25,400 federal tax~$22,850 federal tax~$2,550

These estimates use 2025 federal tax rates, single filer, no other deductions. The numbers are approximate but the direction is clear: becoming a resident alien saves most H1B workers $1,700–$2,500 per year in federal income tax alone, just from the standard deduction.

💡 Action Tip

Use our California calculator or New York calculator to see your exact take-home in high-tax states — the state tax difference between NRA and RA status varies by state and can add another few hundred dollars to your savings.

Which form to file: 1040 vs 1040-NR vs dual-status

The year you cross the SPT threshold is the tricky one. Here's how each scenario works:

Full-year nonresident alien: You did not meet the SPT for this calendar year. File Form 1040-NR. No standard deduction. Only deductions allowed under NRA rules.

Full-year resident alien: You met the SPT and were present for the full year (or the SPT test applied from January 1). File Form 1040. Full standard deduction. Same rules as US citizens.

Dual-status year: You crossed the SPT threshold mid-year. This is the complex case. You file Form 1040 as your primary return (covering your resident period from the date you crossed), with Form 1040-NR attached as a statement for your nonresident period. In a dual-status year:

  • You cannot claim the standard deduction (you get it only for your resident period, which makes the combined return more complex)
  • You cannot file married filing jointly (unless you make a "First Year Choice" election)
  • Your income must be split by period and taxed under different rules for each

💡 Action Tip

In a dual-status year, consider making the First Year Choice election with your spouse if you're married. It lets you file as a resident alien for the full year, claim the married filing jointly standard deduction ($30,000 in 2025), and avoid the dual-status complexity — often saving thousands of dollars. This election is irrevocable for that year, so talk to a tax professional first.

FICA: the one thing that doesn't change

Social Security tax (6.2%) and Medicare (1.45%) apply to all H1B workers from your first paycheck. They do not change when you become a resident alien. This is a source of serious confusion because F-1 students on OPT are FICA-exempt while they're nonresident aliens — so if you came through that path, you experienced FICA starting when you switched to H1B.

Once on H1B, FICA is constant regardless of SPT status. Your paycheck's Social Security and Medicare lines will look exactly the same whether you're classified as an NRA or RA.

📊 Key Number

On an $85,000 salary, FICA costs you $6,502.50/year ($5,270 Social Security + $1,232.50 Medicare). This does not change with residency status.

How to put this to work

  1. Run your SPT calculation today. Count your current-year days in the US, add ⅓ of your prior-year days, add ⅙ of your two-years-ago days. If you're over 183 and you've been in the US at least 31 days this year, you're a resident alien for this tax year.
  2. Update your W-4 once you become a resident alien. You can now claim the standard deduction, potentially claim dependents, and file jointly if married. A correctly completed W-4 will prevent over-withholding throughout the year. Check with your HR or payroll department.
  3. Find out if you're in a dual-status year. If you crossed the SPT threshold mid-year, you may benefit from the First Year Choice election if you're married. Use a tax professional who specializes in immigrant returns — the savings can be significant.
🧾

Ready to file? FreeTaxUSA is free for federal returns.

No upsells on the federal return. State filing $14.99.

File Free →

📋 Disclaimer

The numbers in this guide are estimates based on 2025 federal tax rates for illustrative purposes. Individual tax situations vary based on filing status, deductions, credits, visa history, tax treaty eligibility, and other factors. We are not accountants or tax advisors. The Substantial Presence Test and dual-status rules are complex — consult a qualified tax professional, especially in your first few years on H1B.

Tools to help you manage your money

💡This site may earn a commission from partner links at no extra cost to you.

Share this guide

Was this guide helpful?