Is H1B Considered a Resident Alien for U.S. Taxes?

An H1B visa holder is generally considered a resident alien for U.S. tax purposes once they meet the IRS Substantial Presence Test, which most H1B workers satisfy within their first or second calendar year in the country. The visa category itself does not decide the question. The IRS ignores immigration status when setting tax residency and instead counts the days you were physically present in the United States.

How the IRS Decides Tax Residency

If you are not a U.S. citizen, the IRS classifies you as either a resident alien or a nonresident alien for a given tax year. Two tests apply, and passing either one makes you a resident alien.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions

The Green Card Test makes you a resident alien if you were a lawful permanent resident at any point during the year. Most H1B holders do not have a green card, so this test rarely applies to them.

The Substantial Presence Test is the one that matters. You pass it if you were physically present in the U.S. for at least 31 days during the current year and for a weighted total of 183 days over a three-year window. The formula counts every day in the current year, one-third of your days in the prior year, and one-sixth of your days in the year before that. Reach 183 on that weighted count, and you are a resident alien for the current year.2Internal Revenue Service. Substantial Presence Test

Why H1B Days Always Count

The IRS treats certain visa holders as “exempt individuals” whose days in the U.S. do not count toward the Substantial Presence Test. Students on F, J, M, or Q visas fall into that category, as do teachers and trainees on J or Q visas. H1B is not on the list. Every day an H1B worker is physically in the United States counts.2Internal Revenue Service. Substantial Presence Test

Because H1B workers live in the U.S. for their jobs year-round, the math almost always works against nonresident status. Someone who arrives on October 1 and stays through December 31 is present roughly 92 days that year, which alone does not hit 183. But it starts the clock. If they stay through all of the following year, they log 365 days plus about 31 weighted days from year one, easily clearing the threshold. Someone present all 365 days of a single year satisfies the test on current-year days alone.

The First Year on H1B Is Different

Your first calendar year in the U.S. is where the answer gets messy. You probably were not here for the whole year, which means you may be a nonresident alien for the early part and a resident alien from the day you start meeting the Substantial Presence Test. The IRS calls this a “dual-status alien.”3Internal Revenue Service. Taxation of Dual-Status Individuals

Your residency start date is the first day you were physically present in the U.S. during the year you meet the test. Income earned before that date is taxed under nonresident rules, meaning only U.S.-source income is taxable. Income earned after that date is taxed under resident rules, meaning your worldwide income is on the table.

Dual-status filers face real restrictions. You cannot claim the standard deduction, though you can itemize. You cannot file jointly or use head-of-household status. If you are married, you use the married-filing-separately rates unless you elect to treat a nonresident spouse as a resident.3Internal Revenue Service. Taxation of Dual-Status Individuals

The First-Year Choice Election

If you arrived partway through the year and do not yet meet the Substantial Presence Test for that year, you may still be able to elect resident alien status for the whole year using the First-Year Choice under IRC 7701(b)(4). To qualify, you must not have been a resident alien in the prior year, you must meet the Substantial Presence Test in the following year, you must have been present in the U.S. for at least 31 consecutive days during the election year, and you must have been present for at least 75% of the days from the start of that 31-day stretch through year-end.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions

The election lets a married couple file jointly for the arrival year, but it also brings worldwide income into the U.S. tax base for that entire year. Run the numbers before choosing.

Narrow Exceptions That Preserve Nonresident Status

Passing the Substantial Presence Test does not always lock in resident alien status. Two narrow exceptions can still keep an H1B holder classified as nonresident, though neither is easy to use.

Closer Connection Exception

You can claim this exception if you were present in the U.S. for fewer than 183 actual days during the current year, you maintained a tax home in a foreign country for the entire year, and you had a closer connection to that country than to the United States. Your tax home is generally the location of your main place of business, not simply where you prefer to live.4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test

For full-time H1B workers, this is usually a dead end. If your job is in the U.S., your tax home is in the U.S. The exception is also automatically unavailable if you have applied for a green card or taken steps to adjust to lawful permanent resident status during the year.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions If you do qualify, you file Form 8840 to claim it.

Tax Treaty Tiebreaker

If your home country has a tax treaty with the U.S. that includes a residency tiebreaker, you may be able to claim nonresident status even after passing the Substantial Presence Test, provided you also qualify as a resident under your home country’s rules. The tiebreaker looks at factors like your permanent home, center of vital interests, and habitual abode. To use it, you file Form 1040-NR and attach Form 8833 disclosing the treaty-based position. Missing Form 8833 when it is required carries a $1,000 penalty per failure.5Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

What Resident Alien Status Means for You

The label is not academic. It sets what the IRS can tax, which form you file, and what deductions and credits you can claim.

As a resident alien, you are taxed on worldwide income, the same as a U.S. citizen. You file Form 1040 and can use the standard deduction, the earned income tax credit, education credits, and other credits available to citizens.6Internal Revenue Service. Alien Taxation – Certain Essential Concepts Nonresident aliens, by contrast, are taxed only on U.S.-source income or income effectively connected with a U.S. trade or business. They file Form 1040-NR, cannot claim the standard deduction (with a narrow carve-out for students and business apprentices from India under the U.S.-India treaty), and lose access to credits like the EITC and education credits.7Internal Revenue Service. Nonresident – Figuring Your Tax

For most salaried H1B workers, resident alien status is actually the better deal. You gain the standard deduction and a broader set of credits. The tradeoff is that foreign income, such as rental income from a property back home or interest from foreign bank accounts, becomes taxable in the U.S. If your foreign income is modest, resident status usually means a lower tax bill.

FICA Taxes Apply From Day One

H1B holders are not exempt from Social Security and Medicare taxes. Unlike F-1 and J-1 visa holders, who benefit from an exemption under IRC 3121(b)(19), H1B workers are treated like U.S. citizens for FICA. Your employer must withhold 6.2% for Social Security and 1.45% for Medicare starting the day your H1B status takes effect.8Internal Revenue Service. Employers Must Withhold FICA Taxes for Aliens Who Change Visa Status to H-1B If you switched from F-1 OPT to H1B, expect smaller paychecks starting on the changeover date, typically October 1.

Foreign Account Reporting Kicks In

Becoming a resident alien pulls you into two separate foreign-asset reporting regimes, and they are enforced independently. If you have foreign financial accounts with a combined balance over $10,000 at any point during the year, you must file an FBAR (FinCEN Form 114) electronically. The deadline is April 15 with an automatic extension to October 15, and penalties for non-filing are steep even for non-willful violations.9FinCEN.gov. Report Foreign Bank and Financial Accounts

Form 8938 is separate. Under FATCA, resident aliens living in the U.S. must report specified foreign financial assets on Form 8938 if unmarried filers exceed $50,000 on the last day of the year or $75,000 at any time during the year. Married joint filers use $100,000 and $150,000. Form 8938 is filed with your tax return.10Internal Revenue Service. Do I Need To File Form 8938, Statement of Specified Foreign Financial Assets The FBAR and Form 8938 overlap but are not identical, and filing one does not satisfy the other.

Filing With a Nonresident Spouse

If you are a resident alien and your spouse is a nonresident, you can file separately at the least favorable rates, or your spouse can elect under IRC 6013(g) to be treated as a U.S. resident so you can file jointly.11Office of the Law Revision Counsel. 26 US Code 6013 – Joint Returns of Income Tax by Husband and Wife Filing jointly opens up the standard deduction and better brackets, but your spouse’s worldwide income becomes U.S.-taxable. The election continues year after year until it is revoked, until divorce, or until neither spouse remains a citizen or resident. Once revoked, it cannot be re-elected in a later year. If your spouse has little foreign income, the election usually pays off; if they have substantial foreign earnings, the added U.S. tax may swamp the benefit.