7 min readUpdated March 13, 2026H1B TaxFile Editorial

Key Takeaways

  • During the cap-gap period, you remain in F-1 status — FICA exemption continues if within 5 calendar years
  • FICA withholding must change on October 1 when H-1B begins — coordinate with your employer
  • Cap-gap days count as F-1 exempt days for SPT — you likely won't pass the SPT in your first H-1B year
  • Consider the first-year election to file as a resident for the full year and claim standard deduction
  • If you don't elect full-year residency, you may need to file a dual-status or nonresident return

File your H-1B return — $49.99

Start free

Cap-Gap Period Taxes: OPT to H-1B Tax Obligations Explained

The cap-gap period — roughly April 1 through September 30 in your H-1B transition year — creates a unique tax situation. You are technically still on F-1/OPT status during this window, which affects your FICA obligations, your residency status under the Substantial Presence Test, and your ultimate filing choice for the year.

Cap-gap tax issues to watch:

  • FICA withheld during cap-gap: If your employer incorrectly withholds Social Security and Medicare taxes during the cap-gap period (when you are still on F-1/OPT), you are entitled to a refund. You must request it from your employer first, and if they cannot process it, file Form 843 with the IRS.
  • Assuming H-1B days start before October 1: Your H-1B status begins on October 1 — not on the date USCIS approves your petition. Using approval-date days instead of October 1 in your SPT calculation will give you an incorrect result.

What the Cap-Gap Period Is

When a U.S. employer files an H-1B cap petition on your behalf before April 1, and USCIS selects it in the lottery, your F-1 status and Optional Practical Training (OPT) authorization are automatically extended — without any additional action from USCIS — from the expiration of your OPT through September 30. This extension bridge is called the "cap-gap."

Key dates:

  • Before April 1: Your employer files your H-1B cap petition with USCIS.
  • April 1 – ~June: USCIS conducts the H-1B lottery. If selected, your cap-gap begins automatically when your OPT would otherwise expire.
  • April–September 30: Cap-gap period. You are still on F-1/OPT for immigration purposes. You may continue working for the sponsoring employer.
  • October 1: H-1B status begins. You are now on H-1B for immigration and tax purposes.

The critical tax point: throughout the entire cap-gap period, you remain on F-1 status. The IRS follows immigration status for FICA purposes, and F-1 students are exempt from Social Security and Medicare taxes.

FICA Exemption During Cap-Gap (Still F-1)

F-1 students on OPT are exempt from FICA taxes — Social Security (6.2%) and Medicare (1.45%) — as long as they are "nonresident aliens" for tax purposes. See our full guide on the F-1 FICA exemption for the detailed rules. During the cap-gap period, this exemption continues because your immigration status is still F-1/OPT.

What this means in practice:

  • Wages paid April 1 – September 30: No Social Security or Medicare withholding should occur, assuming you are a nonresident alien on F-1/OPT. Your W-2 for the year should reflect FICA taxes only for the October–December period.
  • If FICA was incorrectly withheld: First, ask your employer's payroll department to correct it. They can refund the withheld FICA and file corrected Forms 941. If they refuse or cannot process the correction, you file Form 843 ("Claim for Refund and Request for Abatement") directly with the IRS, along with a statement explaining your F-1 status during the cap-gap.
  • Employer matching: Your employer also owes no employer FICA during the cap-gap. If they mistakenly withheld it, they file an adjusted Form 941 to recover the employer portion.

One important caveat: the FICA exemption applies only while you remain a nonresident alien for tax purposes. If you happened to pass the Substantial Presence Test in a prior year and are already classified as a resident alien, the FICA exemption does not apply even during cap-gap.

FICA Status Change on October 1

The moment your H-1B status begins — October 1 — the FICA exemption ends. From that date forward, your employer must withhold Social Security (6.2% on wages up to the Social Security wage base, $184,500 for TY2026) and Medicare (1.45%, plus 0.9% Additional Medicare Tax on wages above $200,000 single).

This creates a W-2 where:

  • Box 3 (Social Security wages) and Box 5 (Medicare wages): Should reflect only wages paid from October 1 onward. Wages from the cap-gap period (F-1/OPT) should be in Box 1 (federal wages) but not in Boxes 3 or 5.
  • Box 4 (Social Security withheld) and Box 6 (Medicare withheld): Should reflect only the FICA withheld for October–December wages.

Review your W-2 carefully when it arrives. If FICA was withheld for the cap-gap months, the Social Security and Medicare boxes will be inflated, and you will need to pursue a refund as described above.

SPT Implications: 92 H-1B Days ≠ Pass SPT

This is where many cap-gap/H-1B transition filers get confused. Even though you have been present in the U.S. all year — January through December — you do not automatically pass the Substantial Presence Test.

Under the SPT:

  • F-1 student days are exempt for the first 5 calendar years of F-1 status. This includes all of your cap-gap days, because cap-gap is still F-1 immigration status.
  • H-1B days count toward the SPT. If H-1B begins October 1, you have 92 H-1B days in the year (Oct 1 – Dec 31).
  • 92 days is far below 183. The weighted three-year SPT calculation (current year + ⅓ prior year + ⅙ two-years-ago) using only H-1B days — with prior years all at zero because those were F-1/OPT years — gives you 92, not 183.
  • Result: You fail the SPT for the year and are technically a nonresident alien.

For a full worked example, see the F-1 to H-1B transition guide.

Filing Options: NRA, Dual-Status, or First-Year Election

Because you fail the SPT in the cap-gap/H-1B transition year (assuming you are still within your first 5 F-1 calendar years), you have three filing options:

Option 1: File Form 1040-NR

File as a nonresident alien for the full year. Report only U.S.-source income. No standard deduction. You may still benefit from the India-U.S. tax treaty for certain income categories.

Best if: Your H-1B income October–December is modest, and you have significant pre-October foreign income you want to exclude.

Option 2: Dual-Status Return

Form 1040 for the H-1B period (Oct–Dec) with 1040-NR attached as a statement for the F-1/OPT period (Jan–Sep). No standard deduction — must itemize. Cannot file jointly.

Best if: You have significant deductible expenses that exceed the standard deduction, which is rare for most new H-1B holders.

Option 3: First-Year Election

Elect resident alien status from October 1 onward under IRC §7701(b)(4). File Form 1040 as a full-year resident. Claim the full $16,100 standard deduction. File jointly with a spouse.

Best if: You want maximum deductions and credits. This is the right choice for most cap-gap/H-1B filers.

For the vast majority of cap-gap/H-1B transitioners, the first-year election is the optimal choice. The standard deduction alone ($16,100 single or $32,200 MFJ for TY2026) typically exceeds any itemized deductions available and produces a lower tax bill than the NRA or dual-status options.

How the Cap-Gap Affects Your Specific Tax Year

Beyond FICA and residency status, the cap-gap period creates a few other tax nuances worth noting:

  • Form 8843: You should file Form 8843 to document your F-1 exempt days — covering the entire January 1 through September 30 period. This protects you from the IRS recounting those days as non-exempt H-1B or other days.
  • Estimated tax payments: If you make the first-year election, you become a resident alien and may have estimated tax obligations if your withholding is insufficient. The Q4 estimated tax payment (due January 15) may be relevant if your October–December H-1B income is substantial.
  • Foreign account reporting triggered: Making the first-year election means you become a U.S. tax resident and must evaluate FBAR and FATCA obligations for your Indian accounts.
  • India income during cap-gap: If you received income from India during January–September (OPT/cap-gap period), that income is generally not U.S.-taxable under the NRA rules for that period — unless you make the first-year election, in which case your worldwide income is included from the residency start date.

Frequently Asked Questions

Skip the complexity. We handle all of this for you.

H1B TaxFile supports every form in this guide — FATCA, PFIC, FTC, RSU basis correction, and 22 more H-1B-specific features. Flat price, no surprises.

No credit card to start Printable PDF in 15 minutes 22 H-1B-specific features
File your return — $49.99

H1B TaxFile Team

Written by the H1B TaxFile editorial team — tax professionals and software engineers who specialize in U.S. federal tax filing for H-1B visa holders, F-1 students, and nonresident aliens.

Reviewed by a licensed CPA with international tax experience.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and change frequently. Consult a qualified tax professional for advice specific to your situation.

Recommended Reading