The Complete OPT to H-1B Transition Guide 2026: Timeline, STEM Extension, and Cap-Gap
For most international students, the transition from F-1 student status to H-1B work visa status is the single most consequential period of their early career in the United States, packed with overlapping deadlines, unfamiliar terminology, and real risk of falling out of status if handled incorrectly. This guide walks through the entire OPT-to-H-1B journey step by step, including what happens if you are not selected in the lottery on your first or second try.
Understanding Standard OPT
Optional Practical Training (OPT) allows F-1 students to work in a field directly related to their degree for up to 12 months, available at both the undergraduate and graduate level (meaning you can use OPT once after a bachelor's and again after a master's or PhD). You apply by filing Form I-765 with USCIS, generally starting up to 90 days before your program end date and no later than 60 days after, and you must have a job (or qualifying job search activity) to maintain status during OPT, since more than 90 cumulative days of unemployment during the standard 12-month period puts your status at risk. OPT employment authorization documents (EAD cards) typically take 2-4 months to process, so timing your application correctly relative to your graduation date is critical to avoid a gap in authorization.
The STEM OPT Extension
Students who graduated with a degree in a qualifying STEM field (a specific list maintained by the Department of Homeland Security, covering fields like computer science, engineering, mathematics, and various physical and biological sciences) can apply for a 24-month STEM OPT extension after their initial 12-month OPT period, for a total of up to 36 months of OPT work authorization. To qualify, your employer must be enrolled in E-Verify, and you and your employer must complete Form I-983, a formal training plan documenting how the position will enhance your practical skills related to your STEM degree. The STEM extension raises your cumulative unemployment allowance to 150 days total across the full OPT period (12-month plus 24-month STEM extension combined), and USCIS conducts site visits and requires periodic self-evaluations to ensure the training plan is being followed.
How Cap-Gap Coverage Works
Cap-gap is the automatic extension of your F-1 status and OPT/STEM OPT work authorization designed to bridge the period between when your OPT expires and when H-1B status begins on October 1. If your employer timely files an H-1B petition requesting a change of status (not consular processing) before your OPT expires, and the petition is filed on your behalf while you are the beneficiary of a cap-subject H-1B registration that was selected in the lottery, cap-gap automatically extends your F-1 status and any current OPT/STEM OPT authorization until October 1 (or until the H-1B petition is denied, withdrawn, or revoked, if that happens first). This prevents a gap where you would otherwise fall out of status and lose work authorization while waiting for your H-1B start date. Note that cap-gap only applies if your H-1B petition requests a change of status; if it requests consular processing, cap-gap does not apply and you would need to depart the US and re-enter on the H-1B visa.
The H-1B Registration Timeline Relative to OPT
The H-1B registration period typically runs in March, with selection results announced shortly after, and selected registrants have a window (typically April through June) to file the full H-1B petition, requesting an October 1 start date for the following fiscal year. This means OPT students need to plan their OPT timing carefully: if your OPT (or STEM OPT) expires before October 1 of the year you are selected, cap-gap bridges that specific gap, but if you are not selected at all, you need a separate plan since there is no cap-gap protection without a pending, timely-filed cap-subject petition.
What to Do If Not Selected in the Lottery
Not being selected does not mean your only option is leaving the country immediately, though your options depend heavily on how much OPT time you have remaining. If you still have unused standard OPT or STEM OPT time, you can continue working and try again in the next annual lottery cycle. If your OPT is expiring and you are not STEM-eligible or have already used your STEM extension, options include: transferring to a new academic program (restarting the F-1 timeline with a new OPT period eventually), pursuing another visa category if you qualify (O-1 for extraordinary ability, certain TN or E-3 categories depending on nationality), having your employer consider a cap-exempt H-1B route if they have any affiliation with a qualifying university or nonprofit research entity, or in some cases returning home and reapplying for jobs and visas from abroad. Some students also explore change of status to a dependent visa (H-4, for example, if married to an H-1B holder) as a bridge while planning next steps.
Common Mistakes During the OPT-to-H-1B Transition
The most damaging mistakes include: allowing unemployment days to accumulate past the 90-day (or 150-day with STEM extension) limit during OPT, which triggers a status violation; assuming cap-gap applies automatically without confirming your employer filed a change-of-status (not consular processing) petition before your OPT expired; failing to track the specific STEM OPT reporting and self-evaluation requirements (6-month and 12-month evaluations, prompt reporting of any material changes to your training plan or employment); and not having a backup plan if not selected in the lottery, leading to a scramble as OPT expiration approaches. Because so many deadlines interact, many students benefit from tracking every date (OPT start/end, STEM extension deadlines, H-1B registration window, cap-gap expiration) in a single place well before the relevant deadline arrives.
Frequently asked questions
How long can I stay on OPT if I have a STEM degree?
Standard OPT provides 12 months of work authorization. If you qualify for the STEM OPT extension (STEM degree, E-Verify employer, completed Form I-983 training plan), you can extend for an additional 24 months, for a combined total of up to 36 months of OPT work authorization across both periods.
What happens if my H-1B petition is filed but not yet approved when my OPT expires?
If your employer filed a timely H-1B petition requesting a change of status before your OPT expired, and you were selected in the cap-subject lottery, cap-gap automatically extends your F-1 status and current work authorization until October 1 or until the petition is denied, withdrawn, or revoked. This bridges the gap without you falling out of status while the petition remains pending.
Can I apply for H-1B multiple times if not selected during OPT?
Yes, as long as you remain in valid F-1 status with remaining OPT or STEM OPT time, or find another way to maintain status, you can have an employer register you again in subsequent annual H-1B lotteries. There is no limit on how many years you can attempt registration.
Does cap-gap apply if my H-1B petition requests consular processing instead of change of status?
No. Cap-gap protection only applies when the H-1B petition requests a change of status from within the United States. If the petition requests consular processing instead, cap-gap does not extend your F-1 status, and you would generally need to depart the US and later re-enter on the H-1B visa once it is approved and the validity period begins.
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.