Federal · SPT

H-1B Holders & the Substantial Presence Test: Day-Counting for Skilled Workers

The H1B substantial presence test trips up skilled workers: H-1B days are not exempt. Learn how the IRS counts US days, transfers, and the dual-status year.

10 min read

H-1B holders are not exempt individuals. Unlike students on F visas or scholars on J visas, every day you spend in the US on an H-1B counts toward the Substantial Presence Test (SPT). Most H-1B workers become US resident aliens for tax purposes within their first year, taxed on worldwide income, so day-counting matters from the moment you land.

That distinction trips up a lot of skilled workers. The visa category that lets you work in the US is not a tax exemption. The IRS treats H-1B time exactly like any other counted presence, and once you cross the SPT threshold you file like a US resident. This guide walks through how the counting works, how entry and exit days are handled, what happens when you transfer employers, and the dual-status math of your arrival year.

Why H-1B is not an exempt category

The IRS lets a narrow set of visa holders exclude their US days from the SPT, those are exempt individuals: students (F, J, M, Q), teachers and trainees (J, Q), foreign-government workers (A, G), and a few others. The H-1B is a work visa and appears nowhere on that list.

The practical effect is large. An F-1 student can spend five calendar years in the US without becoming a tax resident. An H-1B worker who arrives mid-summer is often a resident alien by year-end of the very next year, sometimes the same year. If you switched from F-1 to H-1B, see our F-1/OPT to H-1B transition guide, because your exempt years end the moment your H-1B status begins.

Keep in mind that resident alien is a tax status, not an immigration status. You can be a nonimmigrant for USCIS purposes and a full resident alien for IRS purposes in the same year. The two systems use different rules, and crossing the SPT threshold changes only how the IRS taxes you, not your visa.

How the Substantial Presence Test counts your days

The SPT is a weighted three-year formula. You are a resident alien for the year if you are present in the US at least 31 days in the current year and 183 days under the weighted count below. Run your own numbers with the Substantial Presence Test calculator.

YearWeight per US dayExample: 120 days/year
Current year1 (full day)120 days
First prior year1/3 of a day40 days
Second prior year1/6 of a day20 days
Weighted total180 days (not a resident)

In that example, 120 actual days a year still falls just under 183 weighted days. But an H-1B worker living in the US full-time blows past 183 in the current year alone. The weighting mostly matters for people who split time across borders, frequent business travelers, cross-border commuters, and those in their first or last year of US presence. For the underlying math, see our deep dive on the three-year weighted formula.

Entry days, exit days, and partial days

Any part of a day in the US generally counts as a full day. Your arrival day counts; your departure day counts. A weekend conference, a layover where you clear immigration, a same-day border crossing, each is typically a counted day. There is no half-day proration.

  • Arrival day, counts in full, even if you land at 11:58 PM.
  • Departure day, counts in full, even on an early-morning flight out.
  • Transit / layover, a layover under 24 hours where you stay in the international transit area generally does not count; if you clear customs or leave the airport, it usually does.
  • Days commuting from Canada or Mexico, regular commuting days under a specific rule can be excluded, but ordinary travel days are not.

Because H-1B workers travel, visa stamping abroad, home-country visits, conferences, those edge days add up. We cover the gray areas in layovers and partial days. The safest habit is to log every entry and exit as it happens rather than reconstructing a year of travel from memory at filing time.

Keep boarding passes, passport stamps, and entry/exit records. The IRS can request proof of your day count, and CBP travel history is the cleanest source. A running log beats a year-end scramble every time.

Employer transfers and status gaps

Changing employers on an H-1B (a transfer, or H-1B portability) does not reset or pause your SPT clock. The test counts physical presence in the US, not which employer sponsors you. If you stay in the country between jobs, those days keep counting.

What can change your day count is leaving the country, for example, if a transfer falls through and you depart, or you spend an extended stretch abroad. Only days physically present count, so a long trip home reduces your current-year total. But if you remained a resident under the SPT, you are generally taxed on worldwide income for the full year you are a resident, regardless of employer changes. A short gap in employment does not, by itself, change your residency status.

Your first year: dual-status returns

The year you arrive on an H-1B is often a dual-status year: you are a nonresident alien for the part of the year before your residency starts, and a resident alien from your residency starting date through year-end. Under the SPT, your residency starting date is generally your first day of US presence in the year you meet the test.

As a dual-status filer, you are taxed as a nonresident on the early part of the year (US-source income only) and as a resident on the later part (worldwide income). Dual-status returns have quirks, you generally cannot claim the standard deduction, and certain filing statuses are restricted. The IRS explains the mechanics in its dual-status guidance.

  • If you arrive and immediately meet the 31-day / 183-day thresholds, you may be a resident from your first US day that year.
  • If you arrive late in the year and don't hit 183 weighted days, you may be a nonresident for year one and a full resident in year two.
  • First-Year Choice can let some arrivals elect resident treatment earlier, useful if filing jointly with a spouse saves tax. See First-Year Choice and dual status.

Don't assume you file Form 1040 like everyone else in your arrival year. Filing a full-year resident return when you were actually dual-status, or vice versa, is one of the most common H-1B filing errors. Map your residency starting date before you pick a form.

What changes once you're a resident alien

Once you pass the SPT and your residency period begins, the US taxes your worldwide income, not just your US salary. That includes foreign bank interest, rental income, dividends, and capital gains. It also brings foreign-account reporting obligations such as the FBAR and FATCA into play.

Resident aliens generally cannot use the same treaty benefits a nonresident could, though a tax treaty between the US and your home country may still offer relief from double taxation. If you split a calendar year across two countries, the tie-breaker rules in your treaty (modeled on OECD Article 4) can decide which country gets primary taxing rights. For planning around reporting duties, see FBAR and FATCA residency planning.

The bottom line for skilled workers: your visa lets you work, but the SPT decides your tax world. Count every day from arrival, know your residency starting date, and use Tax Days to track the weighted formula so you know your status before the IRS does.

FAQ

Frequently asked questions

Are H-1B visa holders exempt from the Substantial Presence Test?

No. H-1B is a work visa and is not on the IRS exempt-individual list. Every day you are present in the US on an H-1B counts toward the SPT, so most H-1B workers become resident aliens within their first year or two.

Does the day I arrive or leave the US count toward the SPT?

Yes. Any part of a day spent in the US generally counts as a full day, including your arrival and departure days. There is no proration for partial days. See our guide on layovers and partial days at /blog/tax-residency-edge-cases-layovers-partial-days.

Does transferring H-1B employers reset my tax residency clock?

No. The SPT counts physical presence in the US, not your sponsoring employer. Changing jobs or a short gap between them does not pause or reset your day count or change your residency status.

What is a dual-status year for an H-1B holder?

It is the year you transition from nonresident to resident. You are a nonresident alien (US-source income only) before your residency starting date and a resident alien (worldwide income) after it. Dual-status returns have special filing rules and usually no standard deduction.

When does an H-1B worker start being taxed on worldwide income?

From your residency starting date, generally your first day of US presence in the year you meet the SPT. From that date through year-end, the US taxes your worldwide income, and foreign-account reporting like FBAR and FATCA may apply.

Can I count F-1 student years toward my H-1B substantial presence test?

No. Days you were an exempt student on an F-1 visa are excluded from the SPT. Your counting effectively starts when your exempt status ends and your H-1B (or non-exempt) presence begins.

Sources & further reading

Every rule on this page is drawn from primary sources. Verify the current law before making a residency decision.

  1. [1]Substantial Presence TestIRS
  2. [2]Publication 519, U.S. Tax Guide for AliensIRS
  3. [3]Exempt Individual, Who Is a Student or Teacher/TraineeIRS
  4. [4]Taxation of Dual-Status IndividualsIRS
  5. [5]First-Year ChoiceIRS