How H-1B Visa Status Affects Your U.S. Taxes: The Basics

Getting an H-1B does not just change your visa category. It resets how the IRS taxes you, and getting it wrong can mean withholding errors or a rejected return.

By F1Jobs Team · 2026-08-05 · 11 min read
A young professional at a kitchen table reviewing tax documents and a laptop showing IRS forms in morning light

The moment your status shifts from F-1/OPT to H-1B, your tax situation changes in ways that have nothing to do with your visa stamp and everything to do with a separate test the IRS runs on its own timeline. Your h1b visa tax status is not something USCIS decides when it approves your petition — it is decided by federal tax residency rules, and depending on how much time you have already spent in the US, you could end up filing as a resident alien, a nonresident alien, or a mix of both for the very same calendar year.

That distinction is not academic. It determines which form you file, whether FICA comes out of your paycheck starting on day one, whether the tax treaty benefits you used as a student still apply, and how much of your worldwide income the IRS expects you to report. Get it wrong and you either overpay, underpay and owe penalties and interest, or file a return that gets rejected.

Your visa status and your tax status are two separate questions

This is the fact that trips up almost everyone moving from F-1/OPT into H-1B: your immigration status and your tax residency status are determined by two different agencies using two different tests, and they do not automatically move together. USCIS decides whether you are authorized to work as an H-1B nonimmigrant. The IRS decides, independently, whether you are a resident alien or a nonresident alien for tax purposes, and that decision controls which tax forms and withholding rules apply to you.

You can be an H-1B visa holder and still file taxes as a nonresident alien. You can also have already been a resident alien for tax purposes before you ever touched an H-1B petition. The visa category tells USCIS what you are allowed to do. It does not tell the IRS how to tax you — that decision, and the mechanics of h1b visa taxes generally, run on a separate track.

The test that decides your h1b resident alien tax status

The mechanism the IRS uses is called the Substantial Presence Test, and it is a day-counting formula, not a judgment call. You pass it, and become a resident alien for tax purposes, if both of the following are true:

  1. You were physically present in the US for at least 31 days during the current tax year, and
  2. The sum of the following equals at least 183 days: all the days you were present in the current year, plus one-third of the days you were present in the prior year, plus one-sixth of the days you were present in the year before that.

Two wrinkles matter specifically for the F-1-to-H-1B transition:

Because of that second point, most people who move from F-1/OPT into H-1B mid-year end up crossing into resident-alien territory partway through that same calendar year, once their counted H-1B days combine with enough carryover presence to clear the threshold. See our full walkthrough of the Substantial Presence Test and how it decides tax residency if you want the complete mechanics, including how the exempt-individual years get calculated.

Resident alien vs. nonresident alien, what actually changes

Here is where h1b visa taxes genuinely diverge, based on your residency status rather than your visa category.

AreaNonresident alienResident alien
Form you fileForm 1040-NRForm 1040
Income taxedGenerally only US-source incomeWorldwide income, same as a US citizen
Standard deductionGenerally not available (narrow treaty exceptions for some students)Available, same as for US citizens
Filing status optionsLargely limited to single or married filing separatelyFull range, including married filing jointly
FICA (Social Security/Medicare)Depends on visa category and exempt-individual statusApplies the same way it would for any other employee
Foreign account/asset reportingCan still apply depending on your factsApplies based on worldwide income and asset rules
Tax treaty benefitsOften the widest access to treaty provisionsMany treaty articles stop applying once you are a resident

The practical version: as a nonresident alien, the IRS only wants to hear about money connected to the US. As a resident alien, it wants your entire financial picture, wherever it happened, including foreign bank accounts and non-US income.

FICA taxes for H-1B visa holders start when the student exemption ends

This is the change most H-1B workers notice first, because it shows up directly in the paycheck. F-1 students working on CPT or OPT are typically treated as exempt individuals for FICA purposes and do not have Social Security and Medicare taxes withheld. H-1B status carries no equivalent exemption. From your first paycheck as an H-1B employee, FICA is withheld the same way it would be for any other employee, regardless of whether you are a resident or nonresident alien for income-tax purposes — the FICA exemption and the income-tax residency test are governed by separate rules.

Your take-home pay usually drops the moment this kicks in, on top of whatever else changes in your withholding. Nonresident aliens also complete Form W-4 differently, which is one more reason your first H-1B paycheck can look unfamiliar even if your salary did not change. We cover exactly what to expect in how first US paycheck withholding actually works.

The dual-status year, when your switch lands mid-year

If your change of status from F-1/OPT to H-1B happens partway through a calendar year, you may end up filing what the IRS calls a dual-status return for that year: nonresident alien rules apply to the part of the year before you met the Substantial Presence Test, and resident alien rules apply to the part after. Dual-status returns are more involved than a standard Form 1040 or Form 1040-NR — they typically require an attached statement, follow different rules for the standard deduction, and restrict certain filing statuses.

Some taxpayers in this position can also make a "First-Year Choice" election to be treated as a resident alien for part of the year even before technically meeting the full test, which can help in specific situations but comes with its own eligibility conditions. This is exactly the kind of filing where professional help pays for itself. Our guide to filing a dual-status return in your first US working year walks through how the year actually gets split.

H-1B visa tax filing, step by step

  1. Determine your residency status for the year. Run the Substantial Presence Test for the specific year before you decide which form applies.
  2. Identify whether it is a dual-status year. If your status changed mid-year and you crossed into resident-alien territory partway through, plan for a dual-status return rather than a single, simple form.
  3. Gather your income documents. This typically means your W-2 from each employer you had that year, any 1099s, and records of foreign income if you are filing as a resident alien.
  4. Check whether any F-1-era treaty benefits still apply. Some treaty articles end the moment your status or purpose for being in the US changes; others have specific language that covers a transition year.
  5. Choose the correct form. Form 1040 for a full resident-alien year, Form 1040-NR for a full nonresident-alien year, or the dual-status combination if your year was split between the two.
  6. File a state return if your state requires one. State tax residency rules are separate from federal ones, and most states expect their own filing.
  7. Confirm your actual filing deadline. The federal deadline generally falls in mid-April, though dual-status filers and certain nonresident categories can have different deadlines or extension rules, so verify your specific date rather than assuming the standard one applies to you.

State taxes are a separate layer

Everything above covers federal taxes. Your state tax obligation is a separate question, decided under that state's own residency and income-sourcing rules, not the federal Substantial Presence Test. Where you live and work matters here in a very direct way — a handful of states do not levy a personal income tax at all, which is one factor some H-1B workers weigh when comparing job offers across metros. See our comparison of state income tax rules and no-tax states relevant to H-1B relocation if location is still an open question in your job search.

What happens to your F-1-era tax treaty benefits

Many countries have income tax treaties with the US that include specific provisions for students, trainees, or researchers. Those provisions are often tied to your purpose for being in the US and your specific visa category, which means a benefit can lapse the moment you start working under H-1B rather than F-1/OPT, even if the treaty as a whole still technically applies to you as an employee under a different article. This varies by treaty and by your specific facts, so do not assume a benefit you used last year on OPT still applies this year on H-1B. Our guide to FICA and tax treaty rules for international students covers how these provisions typically work while you are still a student, which is useful context for understanding what changes once that status ends.

Common mistakes

Frequently asked questions

Does getting an H-1B automatically make me a US tax resident? Not automatically. Your tax residency depends on the IRS's Substantial Presence Test, which counts the days you were physically present in the US using a weighted three-year formula. Most H-1B workers who spent little or no time in the US before their status change will pass this test partway through their first H-1B year, which is what creates a dual-status tax year rather than a clean switch.

What tax form do H-1B workers file, Form 1040 or Form 1040-NR? It depends on residency, not visa type. If you pass the Substantial Presence Test for the full year you generally file Form 1040 as a resident alien. If you do not, you file Form 1040-NR as a nonresident alien. In the calendar year your status changes from F-1 or OPT to H-1B, many workers end up filing a dual-status return that combines both.

Do H-1B holders pay Social Security and Medicare taxes? Yes. Unlike F-1 students on OPT, who are typically treated as exempt individuals and excused from FICA withholding, H-1B workers have no student exemption. FICA comes out of your paycheck from your first H-1B paycheck onward, regardless of your resident or nonresident tax status.

Can I still use my F-1 tax treaty benefits once I am on H-1B? Usually not in the same way. Many treaty provisions that reduce taxes for students and trainees are tied to that specific status and stop applying once you are working under H-1B, though the exact language varies by country. Review your country's treaty article and confirm the change with a tax professional before assuming a treaty benefit still applies.

Do I need to file both federal and state tax returns on H-1B? In most cases yes. Federal tax residency rules do not automatically determine your state tax residency, which each state defines separately, often based on where you live and work day to day. A handful of states have no personal income tax, but if you are working in a state that does, you will typically owe a state return alongside your federal one.

None of the above is tax or legal advice. Tax residency rules have real exceptions, treaty language varies country by country, and a dual-status year has enough moving parts that a mistake can cost you a real refund or a real penalty. Confirm your specific filing status and obligations with a qualified tax professional before you file.

Sorting out the tax side while you're still job hunting or settling into a new H-1B role? F1Jobs helps international candidates navigate the practical side of building a career in the US.

Frequently asked questions

Does getting an H-1B automatically make me a US tax resident

Not automatically. Your tax residency depends on the IRS's Substantial Presence Test, which counts the days you were physically present in the US using a weighted three-year formula. Most H-1B workers who spent little or no time in the US before their status change will pass this test partway through their first H-1B year, which is what creates a dual-status tax year rather than a clean switch.

What tax form do H-1B workers file, Form 1040 or Form 1040-NR

It depends on residency, not visa type. If you pass the Substantial Presence Test for the full year you generally file Form 1040 as a resident alien. If you do not, you file Form 1040-NR as a nonresident alien. In the calendar year your status changes from F-1 or OPT to H-1B, many workers end up filing a dual-status return that combines both.

Do H-1B holders pay Social Security and Medicare taxes

Yes. Unlike F-1 students on OPT, who are typically treated as exempt individuals and excused from FICA withholding, H-1B workers have no student exemption. FICA comes out of your paycheck from your first H-1B paycheck onward, regardless of your resident or nonresident tax status.

Can I still use my F-1 tax treaty benefits once I am on H-1B

Usually not in the same way. Many treaty provisions that reduce taxes for students and trainees are tied to that specific status and stop applying once you are working under H-1B, though the exact language varies by country. Review your country's treaty article and confirm the change with a tax professional before assuming a treaty benefit still applies.

Do I need to file both federal and state tax returns on H-1B

In most cases yes. Federal tax residency rules do not automatically determine your state tax residency, which each state defines separately, often based on where you live and work day to day. A handful of states have no personal income tax, but if you are working in a state that does, you will typically owe a state return alongside your federal one.