Skip to main content
visatakehome.com

Tax residency & status

Is an H-1B Holder a Resident Alien? The Substantial Presence Test for 2026

Published · Tax year 2026

H-1B holders are not automatically resident aliens. Residency is decided by the substantial presence test, a day-count with a three-year weighting. This guide explains the formula, why H-1B holders count every day while F-1 and J-1 holders do not, and what nonresident status costs you in real dollars for 2026.

The short answer

An H-1B holder is usually a resident alien for tax purposes, but not automatically, and frequently not in the first year.

This trips people up because “resident” means two different things. Immigration law calls you a nonimmigrant. The tax code has its own, entirely separate definition, and it does not care what your visa says. For federal tax purposes you are a resident alien if you pass either the green card test or the substantial presence test — a mechanical day count.

Most H-1B holders pass. What matters is when, because the year you fail costs you real money: no standard deduction, no joint filing, single brackets only. At a $120,000 salary that is about $3,800 in extra federal tax for the year.

The substantial presence test, exactly as the IRS applies it

Two conditions, both required. You must be physically present in the United States:

  1. At least 31 days during the current calendar year, and
  2. At least 183 days across a three-year window, counting:
    • all your days in the current year,
    • one third of your days in the prior year,
    • one sixth of your days in the year before that.

A day counts if you were physically in the US at any point during it. A two-hour layover in Newark is a day.

The weighting is what makes the test non-obvious, so run your own numbers:

Substantial presence test calculator (2026 tax year)
Enter the days you were physically present in the US. Count any day you were in the country at any time. Leave out days spent in F-1/J-1 exempt status.
The weighted total
92 + 0 ÷ 3 + 0 ÷ 6 = 92 days
At least 31 days in 2026 (92)
Weighted three-year total of at least 183 days
Nonresident alien for 2026
You fail the test, so for 2026 you file Form 1040-NR: no standard deduction unless a treaty gives you one, no joint filing, and single brackets only. FICA still applies if your visa is not on the exemption list.

Estimate only. It does not model the closer-connection exception (Form 8840), the first-year choice, or treaty tie-breakers. H-1B, O-1, TN, L-1, and E-3 holders count every day of presence. Days in valid F-1, J-1, M-1, or Q status are exempt and should be left out.

Two results are worth noticing. Someone who arrives on July 2, 2026 and stays hits exactly 183 days and becomes a resident alien for 2026. Someone who arrives three months later, on the standard cap-subject October 1 start date, gets 92 days and is a nonresident for the whole year. Same visa, same employer, same salary, different tax return.

Why H-1B holders are not F-1 or J-1 holders

The test has an escape hatch called exempt individual status. Days of presence in valid F-1, J-1, M-1, or Q status do not count toward the 183 at all — which is why an F-1 student can spend six years in the US and still file as a nonresident.

H-1B is not on that list. Unless a narrow exception applies, an H-1B holder counts every day of physical presence from day one. So does an O-1, TN, L-1, or E-3 holder.

This has a practical consequence for the very common F-1 → OPT → H-1B path. Your exempt days stop being exempt the moment your H-1B takes effect. From then on the clock runs at full speed, and you will typically be a resident alien by your first full calendar year on H-1B. Our F-1 OPT guide covers the student side of this; the H-1B guide covers what changes after the switch.

What nonresident status costs, in dollars

FICA is identical either way — H-1B holders pay Social Security and Medicare regardless of residency. The difference is entirely on the federal income tax side, and it comes from two lost benefits:

  • The standard deduction. For 2026 that is $16,100 for a single filer. Nonresident aliens cannot claim it (the US–India treaty gives F-1 and J-1 students an exception, but it does not extend to H-1B).
  • Joint filing. Nonresidents cannot file Married Filing Jointly, so a married H-1B holder is stuck on single brackets and a single deduction.
What nonresident status costs an H-1B holder in Texas (2026)
Same salary, same state, same FICA. The only difference is the federal standard deduction, which nonresident aliens cannot claim.
Salary Take-home as NRA Take-home as resident Cost of being NRA
$80,000 $61,568 23.04% effective $65,110 18.61% effective −$3,542
$100,000 $75,638 24.36% effective $79,180 20.82% effective −$3,542
$120,000 $89,422 25.48% effective $93,250 22.29% effective −$3,828
$150,000 $109,927 26.72% effective $113,791 24.14% effective −$3,864
$180,000 $130,432 27.54% effective $134,296 25.39% effective −$3,864
Single filer, no pre-tax contributions, Texas residency. Figures use 2026 federal brackets and the $16,100 single standard deduction. Married H-1B holders lose more, because joint filing is unavailable to nonresidents.

The cost is roughly flat in dollar terms across the salary range, because it is driven by the deduction rather than by rate differences. It bites hardest as a percentage at lower salaries. For a married holder it is much worse: at $150,000 in Texas, filing jointly as a resident beats filing single as a nonresident by about $13,300.

You can see the same comparison for your own state and salary on the calculator’s first-year pages — for example H-1B in Texas at $120k as an NRA, or the same salary in California, New York, and New Jersey.

The October 1 problem, and what to do about it

If you were selected in the cap lottery and your H-1B starts October 1, you have 92 days of presence. You are a nonresident alien for that calendar year. You file Form 1040-NR, you do not get the standard deduction, and you pay the premium in the table above once.

There are two legitimate ways out, and both have conditions:

First-year choice. You may elect to be treated as a resident for part of the arrival year. You need at least 31 consecutive days of presence in that year, presence on at least 75% of the days from the start of that period through December 31 (up to 5 days of absence are forgiven), and you must actually pass the substantial presence test in the following year. You cannot file the election until you have met that following-year test, so this often means filing Form 4868 for an extension and waiting.

On its own, the first-year choice makes you dual-status, and dual-status filers still cannot take the standard deduction or file jointly. So it rarely helps a single filer.

The joint-filing election, if you are married. A dual-status individual married to a US citizen or resident alien can elect to file a joint return with their spouse. That election is what unlocks the full standard deduction and joint brackets. This is the combination worth pricing out, and it is genuinely worth several thousand dollars — but it also means both spouses report worldwide income for the year, so it needs an actual calculation rather than a rule of thumb.

Your residency starting date, and dual-status years

Passing the test tells you whether you are a resident for the year. It does not tell you from when. Your residency starting date is generally the first day of US presence in the year you pass the test, with up to 10 days of de minimis presence disregarded.

That makes the arrival year a dual-status year for many people: nonresident for the early months, resident afterwards. Dual-status returns are their own category:

  • Resident on December 31 → Form 1040, marked “Dual-Status Return.”
  • Nonresident on December 31 → Form 1040-NR, marked “Dual-Status Return.”
  • No standard deduction (itemized deductions only), no head-of-household status, and no joint filing without the election described above.

The calculator’s nra pages model the simpler and more common H-1B case — a full calendar year as a nonresident, which is what an October 1 starter actually has. A true dual-status year needs a preparer.

Two exceptions that can override the day count

Closer connection exception. If you pass the substantial presence test but were present fewer than 183 days in the current year, maintained a tax home in a foreign country, and had a closer connection to that country than to the US, you can claim nonresident status on Form 8840. In practice this fits people who split time between countries, not people who relocated for a job.

Treaty tie-breakers. Several US income tax treaties contain residency tie-breaker articles that can reassign residency when both countries claim you. These are country-specific and interact with the “saving clause,” so check the actual treaty text rather than a summary.

State residency is a completely separate question

Nothing above governs your state tax. States run their own residency rules — usually domicile plus a day-count of their own, commonly 183 days — and they do not use the federal substantial presence test. It is entirely possible to be a federal nonresident alien and a full-year state resident at the same time, and California and New York both audit this aggressively.

Practically: if you live and work in one state all year, you are a resident of that state for its income tax, whatever your federal status. That is how our state calculators treat it, and it is why a Texas H-1B holder pays 0% state tax while a California one pays up to 12.3% plus 1.3% SDI on the same salary. Compare them directly on the state comparison pages.

Frequently asked questions

Is an H-1B visa holder a resident alien?
Usually, but not automatically, and often not in the first year. Immigration status and tax status are separate systems. For federal tax purposes you are a resident alien only if you pass the substantial presence test: at least 31 days of US presence in the current calendar year, plus a weighted three-year total of 183 days. Most H-1B holders pass it easily once they have been in the US for a full calendar year. Someone who starts on the cap-subject October 1 date, with no earlier US presence, does not pass it for that first year and files as a nonresident.
How does the substantial presence test work?
Count all your days of US presence in the current year, add one third of your days in the prior year, and add one sixth of your days in the year before that. If the total is 183 or more, and you were present at least 31 days in the current year, you are a resident alien for that year. A day counts if you were physically in the US at any time during it.
Do H-1B holders get to exclude days like students do?
No. The "exempt individual" rules that let F-1, J-1, M-1, and Q holders discount their days of presence do not apply to H-1B. An H-1B holder counts every single day of physical presence. This is the single biggest difference between H-1B tax residency and student-visa tax residency, and it is why H-1B holders become tax residents so much faster.
What does being a nonresident alien actually cost me?
At typical H-1B salaries, roughly $3,500 to $3,900 in extra federal tax for the year. Nonresidents cannot claim the federal standard deduction ($16,100 single for 2026) and cannot file jointly, so more of your income is taxed and it is taxed on single brackets. FICA is unchanged, because H-1B holders pay Social Security and Medicare regardless of residency status.
I start my H-1B on October 1. Am I a resident alien for that year?
No, not on presence alone. October 1 to December 31 is 92 days. That clears the 31-day threshold but falls well short of 183, so you are a nonresident alien for that calendar year and file Form 1040-NR. You will pass the test in the following year. If you are married to a US citizen or resident alien, the first-year choice combined with a joint-filing election can often produce a better result — worth pricing with a preparer.
When exactly do I become a resident alien during the year?
Your residency starting date is generally the first day you were present in the US during the year you pass the test. That means the year you arrive and pass can make you a dual-status alien: nonresident for the earlier part of the year, resident afterwards. Dual-status filers cannot take the standard deduction and cannot file jointly unless they make a specific election.
Does being a resident alien for taxes affect my immigration status?
No. Passing the substantial presence test does not change your visa, does not start a green card process, and does not create any immigration benefit or liability. It is purely an IRS classification that determines which forms you file and which deductions you can claim. The two systems use the word "resident" to mean different things.
Do nonresident aliens pay FICA taxes?
It depends on the visa, not on residency status. H-1B, O-1, TN, L-1, and E-3 holders pay full FICA (6.2% Social Security up to $184,500 for 2026, plus 1.45% Medicare) from their first paycheck, whether they are nonresident or resident. F-1 students on OPT and J-1 research scholars are exempt from FICA under IRC §3121(b)(19) while they remain nonresidents — for them, residency and FICA are linked.

Check your own numbers

Residency status is the single biggest swing factor in a first-year H-1B tax bill, and it is the one thing generic paycheck calculators get wrong — they assume everyone gets the standard deduction.

Sources

Every dollar figure on this page is computed from these sources with the same engine behind our methodology. Nothing here is tax advice — a dual-status or treaty year in particular is worth an hour with a preparer who handles nonresident returns.