Overview
For many international students finishing their studies in the United States, the H-1B visa represents the most common long-term pathway to continue working legally after Optional Practical Training (OPT) or its STEM extension eventually runs out. Unlike OPT, which is tied directly to a student's F-1 status and school, the H-1B is a separate employer-sponsored work visa category for specialty occupations, and it comes with a critical complication that surprises many first-time applicants: it is subject to an annual numerical cap, and when demand exceeds that cap, selection is decided by a random lottery rather than a first-come, first-served process. Understanding how this lottery actually works — and how it interacts with OPT timing — is essential for realistic planning.
What the H-1B Visa Is
The H-1B is a nonimmigrant visa category for people working in "specialty occupations" — roles that typically require at least a bachelor's degree or its equivalent in a specific field directly related to the job duties. It requires an employer sponsor: an individual cannot self-petition for an H-1B. The employer must file a petition with USCIS on the worker's behalf, and (for capped H-1Bs) must first successfully navigate the annual lottery described below.
Why There's a Cap and a Lottery
Congress sets an annual numerical limit on new H-1B visas — commonly referred to as the "cap" — split between a general category and an additional allocation reserved for individuals holding a U.S. master's degree or higher (often called the "master's cap" or advanced degree exemption). In most years, the number of registrations submitted by prospective employers far exceeds the available slots, sometimes by a very large multiple. Because USCIS cannot process every registration into a full petition, it uses an electronic random selection process — commonly described as a lottery — to determine which registrations are invited to proceed to a full H-1B petition filing.
Certain employers and positions are cap-exempt, meaning they don't go through this lottery at all — this typically includes some universities, certain nonprofit research organizations, and government research organizations, though the specific criteria are technical and should be confirmed with the employer's immigration counsel.
How the Process Works, Step by Step
The modern H-1B cap process happens in stages. First, during a designated registration period (typically in the early spring), prospective employers electronically register each candidate they wish to sponsor, paying a modest registration fee per candidate — this does not require a full petition yet. Second, USCIS runs the electronic random selection among all valid registrations, first selecting enough registrations to fill the advanced-degree allocation, then combining unselected advanced-degree registrations with the general pool for a random selection to fill the remaining general-category slots (this design is meant to give master's and higher degree holders two chances at selection). Third, employers whose registrations are selected then have a window of time to file the complete H-1B petition, with supporting evidence, on behalf of that specific worker. Only after that full petition is properly filed and approved does the worker actually have H-1B status (typically effective October 1 of that fiscal year, for cap-subject petitions).
Because it is registration-based selection rather than petition-based, being selected does not automatically mean approval — the employer must still file a complete, properly documented petition afterward, and it can still be denied or require additional evidence.
How This Interacts With OPT and the "Cap-Gap"
A student's standard OPT and STEM OPT extension periods matter a great deal here, because they determine how many chances a student effectively gets at the lottery before their work authorization runs out. A student with a full 36 months of combined OPT and STEM OPT eligibility (thanks to the STEM OPT extension) could potentially be entered in the lottery multiple years in a row by different employers, while a student close to the end of a single 12-month OPT period may only get one realistic attempt. There is also a specific protection called the "cap-gap" extension, which can automatically extend a student's F-1 status and work authorization to bridge the period between the end of OPT and the official October 1 start date of H-1B status, for students who were timely selected and have a petition filed on their behalf — but the specific conditions for cap-gap protection are detailed and should be reviewed carefully with a school's international office or an immigration attorney rather than assumed.
| Stage | What Happens | Who Acts |
|---|---|---|
| Electronic registration | Employer submits basic candidate registration with a fee | Employer (on candidate's behalf) |
| Random selection ("the lottery") | USCIS randomly selects registrations up to the annual caps | USCIS (automated, random) |
| Full petition filing | Selected employers file complete H-1B petitions with evidence | Employer, with candidate's documentation |
| Adjudication | USCIS approves, denies, or requests more evidence | USCIS |
| Status begins | Typically October 1 of the relevant fiscal year for new cap cases | Automatic upon approval and start date |
What Happens If You're Not Selected
Not being selected in a given year is common — many qualified candidates go multiple years without selection given how oversubscribed the lottery typically is. Students in this situation often continue on OPT or STEM OPT if time remains, explore other visa categories their situation might support, or have their employer try again in a future year's registration cycle. Some employers also explore alternative categories (such as certain treaty-based visas for nationals of specific countries, intracompany transfer visas for multinational companies, or extraordinary ability categories) depending on the individual's specific background, though these have their own distinct and often narrower eligibility requirements.
H-1B Portability: Changing Employers After Approval
A detail that surprises many first-time H-1B holders is that, once you have an approved H-1B petition and have started working, you are not permanently locked to that one employer for the full validity of the visa. Under a provision generally referred to as H-1B portability (or H-1B transfer), a new employer can file a new H-1B petition on your behalf, and in most cases you're permitted to begin working for that new employer as soon as the new petition is properly filed with USCIS — you do not have to wait for it to be approved first, provided you were maintaining valid H-1B status at the time the new petition was filed. This is a meaningfully different process from the original cap-subject petition: a portability filing is not subject to the annual lottery at all, since you already hold H-1B status: the cap and lottery only apply to a worker's very first (or otherwise new "cap-subject") H-1B petition, not to a subsequent transfer between employers once status has already been obtained.
That said, portability comes with real risk if the new petition is later denied, since work authorization tied to that filing can be retroactively affected, so most candidates coordinate closely with an immigration attorney before resigning from a current position to start a new one on a pending transfer. This is also a common point where former OPT or STEM OPT students transitioning employers ask whether their original work-authorization history matters — it generally doesn't for portability purposes once H-1B status itself has been granted, though the underlying OPT and CPT rules remain relevant for anyone who hasn't reached H-1B status yet.
Common Mistakes and Misunderstandings
- Believing you can apply for an H-1B directly without an employer sponsor — you cannot; it is always employer-initiated.
- Assuming selection in the lottery means the visa is guaranteed — a complete, approvable petition still has to be filed and adjudicated.
- Not tracking how much OPT/STEM OPT time remains relative to how many lottery cycles that allows for.
- Confusing the registration fee (a small administrative fee at the registration stage) with the full petition filing fees, which are considerably higher and paid later.
- Assuming cap-gap protection is automatic in every case rather than confirming eligibility specifics with a DSO or attorney.
FAQ
Can I register myself for the H-1B lottery without an employer?
No. Only a prospective U.S. employer can submit a registration and later a petition on your behalf; the H-1B is fundamentally an employer-sponsored visa.
How many times can I enter the lottery?
There's no fixed personal limit, but each entry requires a willing employer sponsor and generally a period of valid status (such as remaining OPT time) during which it makes sense to keep trying.
Does having a master's degree improve my chances?
It can, because advanced-degree holders from a U.S. institution generally get considered in both the master's allocation and, if not selected there, the general pool as well, effectively giving two selection opportunities in most designs of the process.
What is "cap-gap" and do I automatically get it?
Cap-gap is a mechanism that can extend F-1 status and work authorization to bridge the period between OPT expiration and the H-1B start date for certain timely-selected candidates. Eligibility has specific conditions, so confirm your situation directly with your DSO.
What if my employer's H-1B petition is denied after I was selected?
Selection only allows the employer to file a petition — it does not guarantee approval. If denied, you would need to rely on any remaining OPT time or explore other options with an immigration attorney.
Practical Tips
- Start conversations with potential sponsoring employers well before the registration period opens each year.
- Track exactly how much OPT/STEM OPT time you have left relative to upcoming lottery cycles.
- Understand that a job offer alone does not guarantee your employer will sponsor an H-1B — confirm sponsorship willingness explicitly and early.
- Keep all your immigration documents (I-20s, EAD cards, prior petition notices) organized and accessible.
- Consult your school's international student office or a qualified immigration attorney for guidance specific to your situation rather than relying solely on general information.
Always confirm current deadlines, award amounts, wages, and eligibility directly on the official program or university website (uscis.gov) before applying — these details change from year to year.