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

For federal tax purposes, an H1B visa holder is almost always considered a resident alien. The IRS doesn’t decide tax residency based on your visa type. It applies a day-counting formula called the Substantial Presence Test, and because H1B workers live and work in the United States full-time, they meet it in their first or second calendar year here and every year after.

The Test That Decides Your Status

If you aren’t a U.S. citizen, the IRS classifies you as either a resident alien or a nonresident alien for each tax year. That classification is separate from your immigration status. Two tests exist, and passing either one makes you a resident alien for that year.1Office of the Law Revision Counsel. 26 USC 7701 – Definitions

The Green Card Test covers lawful permanent residents and doesn’t usually apply to H1B holders. The one that matters is the Substantial Presence Test. You pass it if you were physically present in the U.S. for at least 31 days during the current year and at least 183 days across a three-year window, using this weighted count: every day in the current year, one-third of the days in the prior year, and one-sixth of the days in the year before that.2Internal Revenue Service. Substantial Presence Test

Some visa categories are treated as “exempt individuals,” meaning their days in the U.S. don’t count toward the test. Students on F, J, M, or Q visas and teachers or trainees on J or Q visas fall into that group. H1B workers do not. Every day you’re physically present on an H1B counts.2Internal Revenue Service. Substantial Presence Test

Once you’ve been in the country for a full calendar year on H1B, the math isn’t close. Three hundred sixty-five days easily clears 183 on the current year alone. The only ambiguity sits in your arrival year.

Your First Year on H1B

The year you first arrive is where the classification gets complicated. You probably weren’t in the U.S. for the whole year, so you may be a nonresident alien for the early part of the year and a resident alien once you meet the Substantial Presence Test. The IRS calls this being 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 follows nonresident rules and only U.S.-source income is taxed. Income earned after that date follows resident rules, meaning worldwide income is on the table.

How To File a Dual-Status Return

Which form is your main return depends on your status on December 31. If you’re a resident alien on the last day of the year, Form 1040 is the primary return and Form 1040-NR is attached as a statement covering the nonresident portion. If you’re a nonresident on December 31, the opposite applies. Write “Dual-Status Return” across the top of the main form and “Dual-Status Statement” across the top of the attachment.3Internal Revenue Service. Taxation of Dual-Status Individuals

Dual-status returns carry restrictions that surprise a lot of first-year H1B filers. You can’t claim the standard deduction, though itemizing is still allowed. You can’t file jointly. You can’t use head-of-household rates. Married filers use married-filing-separately brackets unless a special election is made for a nonresident spouse.3Internal Revenue Service. Taxation of Dual-Status Individuals

The First-Year Choice

If you arrived partway through the year and don’t yet meet the Substantial Presence Test for that year, you can sometimes elect to be treated as a resident alien for the full 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 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 is useful if you want to file jointly with a spouse for your arrival year. It also means your worldwide income is taxable for the whole year, not just from your residency start date. Run the numbers both ways before choosing.

What Changes Once You’re a Resident Alien

Resident alien status is not a minor label. It reshapes what income the IRS can tax and which forms and benefits you use.

Resident aliens are taxed on worldwide income from all sources, both inside and outside the United States, the same way U.S. citizens are. You file Form 1040 and have access to the standard deduction, the earned income tax credit, education credits, and the rest of the credit menu that citizens use.4Internal Revenue Service. Alien Taxation – Certain Essential Concepts

Nonresident aliens, by contrast, file Form 1040-NR, are taxed only on U.S.-source or effectively connected income, and can’t take the standard deduction (with a narrow exception under the U.S.-India treaty for students and business apprentices). Their itemized deductions are limited to items tied to effectively connected income, and credits like the earned income tax credit and education credits aren’t available.5Internal Revenue Service. Nonresident – Figuring Your Tax

For a typical H1B worker earning a salary from a U.S. employer, resident alien treatment is usually the better deal. You pick up the standard deduction and broader credits. The tradeoff is that foreign income (rental property back home, interest on foreign bank accounts, dividends from a home-country brokerage) becomes taxable in the U.S. If your foreign income is small, resident status normally produces a lower total tax bill.

Social Security and Medicare

H1B holders aren’t exempt from Social Security and Medicare (FICA) taxes. Students on F-1 and J-1 status get an exemption under IRC 3121(b)(19); H1B workers don’t. Your employer withholds Social Security at 6.2% and Medicare at 1.45% from the day your H1B status takes effect.6Internal Revenue Service. Employers Must Withhold FICA Taxes for Aliens Who Change Visa Status to H-1B

This shows up most clearly for people transitioning from F-1 OPT. On the F-1, you may have been FICA-exempt. Once your H1B kicks in (typically October 1 for a cap-subject start), the exemption ends and your paychecks shrink.6Internal Revenue Service. Employers Must Withhold FICA Taxes for Aliens Who Change Visa Status to H-1B

Reporting Foreign Accounts and Assets

Becoming a resident alien turns on reporting obligations that many H1B holders don’t realize apply to them. Two separate regimes exist, they’re enforced by different agencies, and filing under one doesn’t satisfy the other.

The first is the FBAR, filed electronically with FinCEN as Form 114. If you have a financial interest in or signature authority over foreign financial accounts and the combined balance of all those accounts exceeds $10,000 at any point during the calendar year, you have to file. The deadline is April 15, with an automatic extension to October 15. Penalties for non-filing are steep, even for non-willful violations.7FinCEN.gov. Report Foreign Bank and Financial Accounts

The second is FATCA reporting on Form 8938, filed with your tax return. For unmarried filers living in the U.S., the requirement starts when foreign assets exceed $50,000 on the last day of the tax year or $75,000 at any time during the year. For married couples filing jointly, the thresholds are $100,000 and $150,000. The FBAR and Form 8938 cover overlapping but not identical assets, so if you have any foreign accounts, check both sets of rules.8Internal Revenue Service. Do I Need To File Form 8938, Statement of Specified Foreign Financial Assets

If Your Spouse Is a Nonresident Alien

Many H1B workers come to the U.S. before their spouse does, or their spouse holds a visa that keeps them classified as a nonresident alien. If you’re the resident and your spouse is the nonresident, you have a choice. You can file separately at married-filing-separately rates, which are the least favorable brackets. Or your spouse can make an election under IRC 6013(g) to be treated as a U.S. resident for tax purposes, letting the two of you file jointly.9Office of the Law Revision Counsel. 26 US Code 6013 – Joint Returns of Income Tax by Husband and Wife

Joint filing brings the joint brackets, the standard deduction, and access to more credits. The cost is that your spouse’s worldwide income becomes taxable in the U.S. for as long as the election is in effect. The election continues for every future tax year until it’s terminated by revocation, divorce, or the point at which neither spouse is a U.S. citizen or resident. If either spouse revokes it, you can’t re-elect later.9Office of the Law Revision Counsel. 26 US Code 6013 – Joint Returns of Income Tax by Husband and Wife

If your spouse earns little or no foreign income, the election is usually worth making. If your spouse has significant foreign earnings, the added U.S. tax on that income can outweigh the joint-filing benefit.

The Narrow Exits From Resident Status

Passing the Substantial Presence Test doesn’t always lock you into resident alien status. Two exceptions can preserve nonresident treatment, but neither is a common fit for a full-time H1B worker.

The closer connection exception applies if you were present in the U.S. fewer than 183 actual days during the current year, maintained a tax home in a foreign country for the entire year, and had a closer connection to that country than to the U.S. Your tax home is where your main place of business is, not simply where you’d rather live. For someone whose job is in the U.S., the tax home is in the U.S., and the exception doesn’t fit. If you do qualify, you file Form 8840. The exception is automatically unavailable if you’ve applied for a green card or otherwise taken steps to adjust to lawful permanent resident status during the year.10Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test1Office of the Law Revision Counsel. 26 USC 7701 – Definitions

The second exit is a tax treaty tiebreaker. If your home country has a treaty with the U.S. that includes a residency tiebreaker clause, and you qualify as a resident under both countries’ laws, the treaty can resolve the tie in favor of your home country. The clause typically looks at your permanent home, center of vital interests, and habitual abode. To claim it, you file Form 1040-NR and attach Form 8833 disclosing the treaty position. Missing Form 8833 when it’s required carries a $1,000 penalty per failure.11Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

State Residency Is a Separate Question

Federal resident alien status doesn’t automatically make you a resident of any state. States write their own rules, usually combining domicile (where you intend to make your permanent home) with a day-counting test that’s often 183 days. If you work in a state with an income tax, that state will almost certainly treat you as a resident once you’re living and working there full-time. A few states have no income tax, which sidesteps the issue. If you moved between states during the year, you may need to file part-year resident returns in more than one.