H-1B Guide10 min readJuly 1, 2026

H-1B for Recent Graduates: OPT, Cap-Gap, STEM Extension, and Lottery Strategy 2026

For international students graduating from US universities, the path from F-1 student visa to H-1B involves a specific sequence of OPT, potential STEM OPT extension, cap-gap bridge, and H-1B lottery selection. Understanding this timeline — and its risks — is essential for planning your post-graduation US work strategy.

F-1 to H-1B Timeline Overview

Graduate (May/June) → Apply for OPT (file 90 days before graduation) → OPT begins (60-day grace period after graduation) → OPT employment begins → Apply for STEM OPT extension (if eligible, up to 24 additional months) → Register for H-1B lottery (March of the year you want H-1B to begin October 1) → If selected: employer files full petition → H-1B begins October 1 → Cap-gap bridges OPT-to-H-1B gap.

STEM OPT Extension: 24 Extra Months

STEM OPT extends work authorization for 24 months beyond initial 12-month OPT for graduates with US STEM degrees (science, technology, engineering, mathematics) who are employed at an E-Verify employer. This gives STEM graduates up to 36 months total on OPT — effectively 3 chances at the H-1B lottery (though cap-gap rules mean you are protected if selected in your 3rd year). Critical requirement: employer must be enrolled in E-Verify. File I-765 for STEM extension at least 90 days before initial OPT expiration.

Cap-Gap Protection

Cap-gap prevents a gap in work authorization for F-1 students who win the H-1B lottery. If your OPT expires before October 1 (when H-1B begins), cap-gap automatically extends your F-1 status and OPT work authorization from OPT expiration through September 30. Your employer must have a timely filed H-1B petition and a receipt notice to trigger cap-gap. Cap-gap protection is one of the most important provisions for recent graduates.

What to Do If You Lose the H-1B Lottery

Options if not selected: Apply for STEM OPT extension (if STEM degree, buy 2 more years and 2 more lottery chances). Find a cap-exempt employer (university, nonprofit research organization — no lottery needed). Pursue alternative status: O-1A (extraordinary ability — high bar but no lottery), TN (Canadian/Mexican citizens), E-3 (Australians). Return to school for advanced degree (resets OPT eligibility). Consider Canada or other countries as alternative career paths. Some graduates work with multiple employers registering them to theoretically maximize selection odds (note: this does NOT increase per-person odds under beneficiary-centric selection).

Frequently asked questions

How long can I work on OPT before needing H-1B?

Initial OPT is 12 months. If you have a STEM degree (science, technology, engineering, mathematics) and work at an E-Verify employer, you can extend OPT for an additional 24 months (STEM OPT extension), for up to 36 months total. This gives you up to 3 chances at the H-1B lottery before you must find another path or leave the US.

What is cap-gap and how does it protect recent graduates?

Cap-gap is a regulatory provision that automatically extends F-1 student status and OPT work authorization from OPT expiration through September 30 for students who win the H-1B lottery. This bridges the gap between OPT expiration and the October 1 H-1B start date. Without cap-gap, students whose OPT expires in June or July would face months of unauthorized presence before H-1B begins.

What happens if I lose the H-1B lottery as a recent graduate?

Losing the lottery means your F-1/OPT authorization continues until it expires. Options: (1) Apply for STEM OPT extension if you have a STEM degree — adds 24 months. (2) Find a cap-exempt employer. (3) Pursue O-1A, TN, or other visa. (4) Return to school (master's or PhD resets OPT). (5) Consider Canada Express Entry or other countries. Many graduates successfully navigate 2-3 lottery cycles before being selected.

Disclaimer: This article is for informational purposes only and does not constitute legal advice. Immigration law is complex and situation-specific. Always consult a licensed immigration attorney before making decisions about your immigration status.

Track your deadlines automatically

PriorityPath tracks every immigration deadline for you — H-1B renewals, OPT windows, and Visa Bulletin movements — with AI guidance tailored to your case.

Get started free

Free to start. No credit card required.

Related Articles