Is My H-1B Visa Considered Resident or Nonresident for U.S. Taxes?
- How Does the Substantial Presence Test Work for H-1B Holders?
- What Counts as a Day of Physical Presence?
- What Happens When I Pass the Substantial Presence Test?
- How Do I File Taxes in My First Year on an H-1B?
- Can I Avoid Resident Status With the Closer Connection Exception?
- How Do Tax Treaties Affect H-1B Holders?
- What If I Switch From an F-1 Visa to an H-1B?
- What Are the Key Deadlines for First-Year H-1B Filers?
- What If I Leave the U.S. Before My H-1B Expires?
- Frequently Asked Questions
- Related Resources
Most H-1B visa holders become resident aliens for tax purposes, typically within their first full calendar year in the U.S. Your status depends on the substantial presence test, a formula the IRS uses to count your days of physical presence over a three-year period. Unlike F-1 students and J-1 scholars, H-1B holders are never considered “exempt individuals” under IRS rules, which means every day you spend in the U.S. counts from day one.
According to the IRS, you pass the substantial presence test if your weighted days total at least 183 over a 3-year period. In practice, this means:
- 122 days per year in the U.S. across three consecutive years is enough to pass
- Most H-1B holders pass in their first full year, since working full-time in the U.S. far exceeds the threshold
- First-year arrivals may qualify as dual-status aliens, with different rules for each portion of the year
Not Sure If You’re a Resident or Nonresident Yet?
Here is how the test works, what changes when you become a resident alien, and how to handle common situations, such as your first year, dual-status filing, and the closer connection exception.
How Does the Substantial Presence Test Work for H-1B Holders?
The substantial presence test uses a three-year lookback formula. To pass, two conditions must be met: you were physically present in the U.S. for at least 31 days in the current calendar year (January 1 through December 31), and your weighted day total across three years equals or exceeds 183 days.
The weighting formula works like this:
| Year | How Days Are Counted |
|---|---|
| Current year | 100% of days present |
| Prior year | 1/3 of days present |
| Two years prior | 1/6 of days present |
For example, if you spent 120 days in the U.S. in each of the last three years:
- Current year: 120 x 1 = 120
- Prior year: 120 x 1/3 = 40
- Two years ago: 120 x 1/6 = 20
- Total: 180 days (does not pass)
But increase the current year to 150 days and the math shifts:
- Current year: 150 x 1 = 150
- Prior year: 120 x 1/3 = 40
- Two years ago: 120 x 1/6 = 20
- Total: 210 days (passes)
The IRS notes that an H-1B holder who spends just 122 days in the U.S. during each of the three years will meet the test. Since most H-1B workers are in the U.S. full-time, you will likely pass the substantial presence test in your very first full calendar year.
Substantial Presence Test Examples for H-1B Holders
| Current Year Days | Prior Year Days | Two Years Ago | Weighted Total | 31+ Days Current Year? | Result |
|---|---|---|---|---|---|
| 100 | 90 | 60 | 140 | Yes | Fail |
| 120 | 90 | 60 | 160 | Yes | Fail |
| 150 | 90 | 60 | 190 | Yes | Pass |
| 40 | 360 | 360 | 220 | Yes | Pass |
| 20 | 360 | 360 | 200 | No | Fail* |
| 365 | 0 | 0 | 365 | Yes | Pass |
*Even though the weighted total exceeds 183, you must also be present for at least 31 days in the current year to pass.
What Counts as a Day of Physical Presence?
Any part of a day you are physically in the U.S. counts as a full day of presence. If you land at 11:55 PM, that entire day counts. The IRS includes all 50 states, the District of Columbia, and U.S. territorial waters.
However, several types of days are excluded from the count:
- Days you commuted to work in the U.S. from a residence in Canada or Mexico
- Days you were in transit between two foreign locations, spending less than 24 hours in the U.S.
- Days you served as a crew member on a foreign vessel
- Days you were unable to leave the U.S. because of a medical condition that developed while here
- Days you were present under a J or Q visa as a teacher (up to 2 of the last 6 years) or student (up to 5 calendar years)
Important for H-1B holders: The “exempt individual” rules that allow F-1 students and J-1 scholars to exclude their days do not apply to you. H-1B visa holders must count every single day of U.S. presence. If you previously held an F-1 visa and switched to an H-1B, your days start counting immediately upon the status change.
To exclude days for any of the other exceptions listed above, file Form 8843 (Statement for Exempt Individuals and Individuals With a Medical Condition) with your tax return.
What Happens When I Pass the Substantial Presence Test?
Once you become a resident alien, your U.S. tax obligations change significantly. Here is a side-by-side comparison:
| Tax Obligation | Nonresident Alien | Resident Alien |
|---|---|---|
| Income taxed | U.S.-source income only | Worldwide income (all sources, all countries) |
| Tax return form | Form 1040-NR | Form 1040 (same as U.S. citizens) |
| Standard deduction | Generally not available | $15,750 single / $31,500 married filing jointly (2025) |
| Tax credits | Limited | Full access to all credits |
| Filing status options | Single or Married Filing Separately only | All statuses available |
| FBAR requirement | Same $10,000 threshold applies | Required if foreign accounts exceed $10,000 |
| FATCA (Form 8938) | Generally not required | Required if foreign assets exceed $50,000 (single) or $100,000 (married) at year-end |
The shift to worldwide income reporting is the most significant change. As a resident alien, you must report income from all sources worldwide, and you may also have foreign account reporting obligations. For a full breakdown of what to report, how to avoid double taxation with credits and exclusions, and why your tax record matters for immigration, see our guide on H-1B taxes, worldwide income, and filing rules.
How Do I File Taxes in My First Year on an H-1B?
Your first year in the U.S. on an H-1B visa is often the most complex because you may be a dual-status alien, which means you were a nonresident alien for part of the year and a resident alien for the rest.
Here is how it typically works:
Scenario 1: Arrived mid-year and passed the test that same year
If you arrived in August and remained through December 31, you have about 150 days. Combined with weighted days from prior years (if any), you may pass the substantial presence test. Your residency start date is the first day you were present in the U.S. during that calendar year.
- Nonresident period (before arrival): Only U.S.-source income is taxable
- Resident period (arrival through December 31): Worldwide income is taxable
- File a dual-status return with Form 1040 and Form 1040-NR attached
Scenario 2: Arrived late in the year and did not pass the test until the following year
If you arrived in October and have only 90 days left in the current year, you likely will not pass until the following year. You may be able to make a “first-year choice” election to be treated as a dual-status alien for the arrival year, but only if you meet certain requirements, including being present for at least 31 consecutive days and 75% of the remaining days in the year.
Dual-status returns cannot be e-filed. They must be printed and mailed to the IRS, and they require careful income splitting between your resident and nonresident periods. Getting this right in your first year sets the foundation for clean filings going forward.
Think You May Be a Dual-Status Filer?
Can I Avoid Resident Status With the Closer Connection Exception?
Even if you pass the substantial presence test, you may still be treated as a nonresident alien if you qualify for the “closer connection” exception. To use this exception, all of the following must be true:
- You were present in the U.S. for fewer than 183 days in the current calendar year
- You maintained a tax home in a foreign country for the entire year
- You have a closer connection to that foreign country than to the U.S.
- You have not applied for, or taken steps to obtain, U.S. permanent resident status (Green Card)
If you qualify, you must file Form 8840 (Closer Connection Exception Statement for Aliens) with your tax return by the filing deadline.
Most full-time H-1B workers in the U.S. will not qualify for this exception because they are typically present in the U.S. for more than 183 days in the current year and their tax home is in the U.S. However, if you split significant time between the U.S. and your home country, it may be worth exploring with a tax professional.
How Do Tax Treaties Affect H-1B Holders?
The U.S. has income tax treaties with over 60 countries. Depending on your home country, you may be eligible for benefits such as:
- Reduced withholding rates on dividends, interest, and royalties
- Exemptions for certain types of income (pension provisions, teaching income)
- Tie-breaker rules if you are considered a resident of both the U.S. and your home country
If you claim a treaty benefit that overrides Internal Revenue Code provisions, you may need to file Form 8833 with your return. Common treaty benefits used by H-1B holders, such as reduced withholding rates, are often exempt from the Form 8833 requirement, but less common positions require disclosure.
The “savings clause” in most U.S. tax treaties means that once you become a resident alien, the U.S. can tax you as if the treaty did not exist, with certain narrow exceptions. Treaty benefits are generally more valuable during your nonresident period.
What If I Switch From an F-1 Visa to an H-1B?
Many H-1B holders previously held F-1 student visas. When you switch to H-1B status, two things change immediately for tax purposes:
- Your exempt status ends: F-1 students can exclude up to 5 calendar years of U.S. presence from the substantial presence test. Once you switch to H-1B, that exemption no longer applies, and every day starts counting.
- You may quickly pass the substantial presence test: If you switch to H-1B mid-year, your H-1B days count fully for the current year. Combined with weighted days from prior years (which were exempt under F-1 but still happened), you may become a resident alien sooner than expected.
Example: Priya was on an F-1 visa from 2020 to 2024 (5 exempt years). She switches to H-1B on June 1, 2025, and remains in the U.S. through December 31. Her 214 H-1B days in 2025 alone exceed 183, so she passes the substantial presence test. Her 2025 filing will be a dual-status return.
Learn more about how the substantial presence test works for visa transitions.
What Are the Key Deadlines for First-Year H-1B Filers?
If you are filing for the first time or filing a dual-status return, timing is especially important:
| Deadline | What Is Due | First-Year Relevance |
|---|---|---|
| April 15, 2026 | Tax return or extension request | If you need to confirm you will pass the substantial presence test in 2026 to make the first-year choice for 2025, file an extension |
| April 15, 2026 | FBAR (FinCEN Form 114) | Automatic extension to October 15; required if foreign accounts exceeded $10,000 at any point |
| October 15, 2026 | Extended tax return deadline | Must file Form 4868 by April 15; gives time to confirm residency status for first-year choice |
If you arrived late in the year and plan to make the first-year choice election, you cannot file your return until you confirm you pass the substantial presence test the following year. Request an extension using Form 4868 to buy time. For a complete list of deadlines, including immigration implications, see our H-1B tax filing and compliance guide.
What If I Leave the U.S. Before My H-1B Expires?
If you depart the U.S. before the end of the calendar year, you may need to file a departing alien return (Form 1040-C) before you leave. You will also need to file a regular annual return for that year.
If you leave permanently and want to establish an earlier residency termination date, you must meet specific criteria and file a statement with the IRS. This can reduce the amount of worldwide income subject to U.S. tax in your departure year.
Learn more about optimizing your dual-status year when moving mid-year.
Frequently Asked Questions
Does my H-1B visa automatically make me a resident alien?
No. Your visa type does not determine your tax status. Instead, the IRS uses the substantial presence test (or the Green Card test) to determine whether you are a resident or nonresident alien for tax purposes. However, because H-1B holders are not considered “exempt individuals,” most pass the test within their first full calendar year.
Can I file jointly with my spouse if I am on an H-1B?
It depends. If your spouse is a U.S. citizen or resident alien, you can file jointly once you pass the substantial presence test. If your spouse is a nonresident alien, you can elect to treat them as a resident alien for the entire year under IRC Section 6013(g), which allows joint filing but requires reporting both spouses’ worldwide income.
Do I need to report my foreign bank accounts as an H-1B holder?
Yes. Once you become a resident alien, you have the same foreign account reporting obligations as U.S. citizens. If your foreign accounts exceeded $10,000 total at any point during the year, you must file an FBAR. Higher thresholds apply for FATCA Form 8938. For details on what to report and potential penalties, see our H-1B worldwide income and foreign assets guide.
I was on an F-1 visa before switching to an H-1 B visa. Do my student years count toward the substantial presence test?
No. Days spent in the U.S. as an F-1 student during your exempt period (up to 5 calendar years) do not count. However, once you switch to H-1B status, all days count from the date of the switch. If you had more than 5 years on an F-1 visa, days beyond that 5-year window may count in the weighted formula.
What is the standard deduction for H-1B resident aliens in 2025?
Once you are classified as a resident alien, you have access to the same standard deduction as U.S. citizens: $15,750 for single filers and $31,500 for married filing jointly for the 2025 tax year. Nonresident aliens generally cannot claim the standard deduction unless a specific treaty provision applies.
Can I claim the Foreign Earned Income Exclusion on an H-1B visa?
Not while working in the U.S. The FEIE requires a tax home in a foreign country and passing either the physical presence test or the bona fide residence test. If you are living and working in the U.S. on an H-1B, your income is U.S.-source and does not qualify. The FEIE only becomes relevant if you later move abroad. For strategies to reduce your U.S. tax bill as a resident alien, including the Foreign Tax Credit and treaty benefits, see our H-1B tax filing and compliance guide.
What happens if I did not file in a prior year?
If you missed filing because you were unsure of your status or did not realize you had a filing obligation, the IRS offers the Streamlined Filing Compliance Procedures for non-willful situations. This allows you to file three years of back returns and six years of FBARs with reduced or eliminated penalties.
It is normal for H-1B visa holders to feel uncertain about their tax obligations, especially when tax rules change based on how many days you have been in the country. The good news is that once you pass the substantial presence test and become a resident alien, you gain access to the same deductions, credits, and filing options as U.S. citizens, which often means a lower tax bill than you might expect.
If you are on an H-1B, L-1, or other work visa, Greenback’s accountants specialize in helping foreign nationals with dual-status filing, substantial presence test calculations, and ongoing compliance. Learn more about how we help dual-status filers.
If you’re ready to be matched with a Greenback accountant, click the get started button below. For general questions on taxes or working with Greenback, contact our Customer Champions.
File the Right Return With Confidence
This article is for informational purposes only and does not constitute legal or tax advice. Tax laws are complex and subject to change. Always consult with a qualified tax professional regarding your specific situation.
Related Resources
- H-1B Taxes: Filing Rules, Worldwide Income, and Deadlines
- Resident Alien vs. Nonresident Alien: Tax Differences Explained
- How Do I File My Taxes as a Dual-Status Alien?
- Substantial Presence Test: How the 183-Day Rule Determines U.S. Tax Residency
- Form 1040-NR: Tax Filing Guide for Nonresident Aliens
- Form 8843: Required Statement for F, J, M, Q Visa Holders
- FBAR: What It Is, Who Must File, and How to Report Foreign Accounts
- FBAR vs. FATCA: Which Foreign Account Reporting Do I Need?
- Do I Need to File Form 8833 to Claim Tax Treaty Benefits?
- How Do U.S. Tax Treaties Reduce Your Foreign Tax Burden?