Work visas

OPT to H-1B: the steps, the cap-gap and a month-by-month timeline

On an F-1 visa, the usual path to an H-1B is: 12 months of OPT after graduation, a 24-month STEM OPT extension if your degree qualifies, and an employer that registers you in the H-1B lottery each March while you work. If you are selected and the employer files a change-of-status petition on time, the cap-gap extension keeps you working until the H-1B starts on October 1. Below: each step with its USCIS filing window, and a timeline for a May 2027 graduate.

By Yağız Ergil · How we write · Updated December 1, 2026

On this page8 sections
General information, not legal advice. Every rule here links to the USCIS page it comes from; we read each one on December 1, 2026. Your designated school official (DSO) and an immigration attorney or your employer's counsel have the final word on your case.

The four steps from F-1 to H-1B

  1. Post-completion OPT: up to 12 months of work directly related to your major, after you graduate.
  2. STEM OPT extension: 24 more months, if your degree is on the DHS STEM Designated Degree Program List and your employer uses E-Verify.
  3. H-1B registration and petition: a cap-subject employer registers you in March; if you are selected, it files the H-1B petition from April 1.
  4. Cap-gap and the H-1B start: if the petition asks for a change of status, your F-1 status and work authorization carry over until the H-1B starts on October 1.

Step 1: post-completion OPT

The rules from the USCIS OPT page: you can receive up to 12 months of OPT employment authorization (time used on pre-completion OPT is deducted). For post-completion OPT you file Form I-765 after your DSO enters the recommendation into your SEVIS record:

  • No earlier than 90 days before you complete your degree and no later than 60 days after.
  • Within 30 days after your DSO enters the recommendation.
  • You may not start work until USCIS approves the I-765 and you have the Employment Authorization Document (EAD).

During initial post-completion OPT you may be unemployed for up to 90 days in total, according to the USCIS STEM OPT page. Plan the start date with that in mind: a job that starts three months after the EAD would use the whole allowance.

Step 2: the 24-month STEM OPT extension

From the USCIS STEM OPT page:

  • File Form I-765 up to 90 days before your current OPT EAD expires, and within 60 days of the date your DSO enters the recommendation.
  • The employer must be enrolled in E-Verify and remain a participant in good standing. Your application names the employer as listed in E-Verify and its E-Verify company ID.
  • You and the employer complete Form I-983, the training plan for STEM OPT students. Material changes need a modified I-983, and the employer must tell your DSO within 5 business days if you leave.
  • If you file on time and your OPT expires while the application is pending, your work authorization is extended automatically for 180 days, until USCIS decides.
  • Unemployment: an additional 60 days, so 150 days in total across OPT and STEM OPT.
  • Reporting: tell your DSO about changes (name, address, email, employer name and address) within 10 days, and confirm your information every 6 months.

Why it matters for the H-1B: STEM OPT adds two more March registrations without leaving your job. The STEM OPT Hub on Study in the States has guidance for students and employers who have not done this before.

Step 3: the March registration and the petition

Most private employers are cap-subject: they can only file an H-1B petition for you after you are selected in the annual registration. The cycle, from the USCIS registration and cap season pages:

  1. March: the employer registers you online and pays $215 per registration. For FY 2027 the period ran from noon Eastern on March 4 to 5 p.m. Eastern on March 19, 2026. USCIS sets the dates each year; none were posted for FY 2028 when we checked.
  2. Selection: USCIS selects among registrations for unique people. From FY 2027 the selection is weighted by the OEWS wage level the offer meets: level IV is entered four times, level III three, level II twice, level I once. For FY 2027 USCIS intended to notify selected registrants by March 31.
  3. From April 1: the employer files the petition during the 90-day window on your selection notice. A petition for an F-1 student who wants the cap-gap must ask for a change of status, not consular processing.
  4. October 1: the earliest start date. A cap petition must ask for Oct. 1 or later and be filed no more than six months before the start date.

The numbers: 65,000 new H-1Bs a year plus 20,000 for people with a U.S. master's degree or higher, so a U.S. master's on OPT can also count toward that extra 20,000. The registration and selection counts for recent years are on the USCIS registration page, and our H-1B sponsorship guide summarizes them along with the fees the employer pays.

Step 4: the cap-gap extension

OPT often ends before October 1. The cap-gap rule closes that gap. From the USCIS cap-gap page:

  • Who qualifies: an F-1 student who is the beneficiary of a cap-subject H-1B petition that is properly and timely filed and requests a change of status. The petition has to be based on a valid, selected registration for the same person, and filed while your F-1 status (including OPT or the 60-day grace period) is in effect.
  • What you get: your F-1 status and OPT work authorization are extended until April 1 of the fiscal year requested or the start date of the approved petition, whichever is earlier. With an October 1 start, that is October 1.
  • When it ends early: if the petition is denied, withdrawn, revoked or rejected, or the change of status is denied or withdrawn. You then get the standard 60-day grace period, unless the denial was for a status violation, misrepresentation or fraud.
  • Grace period: if you are already in your 60-day grace period when the petition is filed, your status is extended but you are not authorized to work.
  • Cap-exempt petitions do not get the cap-gap.

OPT to H-1B timeline, month by month

An example: a STEM master's student graduating in May 2027, with OPT starting in June 2027. The months come from the USCIS rules above; registration months follow the March schedule USCIS has used recently, and the agency sets each year's exact dates.

Example OPT, STEM OPT and H-1B timeline for a May 2027 STEM graduate
WhenStepRule behind it
Feb. 2027Apply for post-completion OPT (Form I-765)Up to 90 days before you complete the degree, after your DSO enters the recommendation in SEVIS, and within 30 days of it.
May 2027GraduateThe last day to apply is 60 days after you complete the degree (July 2027 here).
June 2027Start work on OPTOnly once the EAD is approved and in hand. Up to 90 days of unemployment are allowed during OPT.
Jan.-Feb. 2028Your employer decides whether to register youAsk in writing who handles the registration and what wage level the role is.
March 2028Registration 1 (FY 2029)The employer registers you and pays $215. From FY 2027, selection is weighted by the OEWS wage level of the offer.
March 2028Apply for STEM OPTUp to 90 days before the OPT EAD expires (June 2028 here), within 60 days of the DSO recommendation. Employer must use E-Verify and sign a Form I-983.
By March 31, 2028Selection resultsUSCIS notifies selected registrants (FY 2027's date was March 31).
April-June 2028If selected: petition with change of statusFiled during the 90-day window on the selection notice, from April 1. A timely change-of-status petition starts the cap-gap.
June 2028OPT EAD expiresIf the STEM OPT application was filed on time and is still pending, work authorization is extended automatically for 180 days.
Oct. 1, 2028H-1B starts (if selected and approved)Cap-gap carries F-1 status and work authorization to the petition start date, at the latest April 1.
March 2029Registration 2 (FY 2030), if not selected in 2028Still on STEM OPT. Unemployment limit across OPT and STEM OPT: 150 days in total.
March 2030Registration 3 (FY 2031)STEM OPT runs to June 2030 here, so a petition filed by then is still timely and cap-gap bridges to Oct. 1, 2030.

Without the STEM extension the same graduate's OPT ends in June 2028, which covers one registration (March 2028). If an employer you interned with offers to register you in March 2027, before you graduate, ask your DSO how the cap-gap would apply to you.

Finding an employer that will register you

  • Check the employer's record first. The H-1B sponsor checker shows a company's USCIS approvals; an employer with many initial approvals registers people every year.
  • For STEM OPT, the employer has to be in E-Verify. Ask HR early; a company that is not enrolled can enroll, but it is one more step.
  • Ask about the registration before you accept: will the company register you in March, at what wage level, and who handles it?
  • Consider cap-exempt employers: universities, their affiliated nonprofits and nonprofit or government research organizations can file an H-1B at any time, with no lottery.

Search an employer in the H-1B sponsor checker, browse the top sponsors near you in H-1B jobs by state, and use the scripts in how to ask about visa sponsorship for the recruiter conversation.

Questions

How many H-1B lottery chances do I get on OPT?

It depends on your OPT start date and whether you qualify for STEM OPT; it is a matter of dates, not a rule. In the example on this page, a STEM graduate whose OPT starts in June 2027 has work authorization until June 2030, which covers registrations in March 2028, 2029 and 2030. Without the STEM extension, OPT ends in June 2028, which covers one.

Can I keep working if my OPT ends while my H-1B petition is pending?

Yes, if the cap-gap applies: your employer filed a cap-subject H-1B petition on time, based on a selected registration, asking for a change of status, while your OPT was valid. USCIS then extends your F-1 status and work authorization until April 1 of the fiscal year requested or the petition's start date, whichever is earlier.

What if I am in my 60-day grace period when the petition is filed?

USCIS says students who have entered the 60-day grace period are not authorized to work. If a cap-subject petition is properly filed for you then, your F-1 status is extended, but you still cannot work until the H-1B starts.

What happens if I am not selected in the lottery?

Nothing changes in your status: you keep working on OPT or STEM OPT until your EAD ends, and your employer can register you again the next March. A cap-exempt employer (a university, its affiliated nonprofit, or a nonprofit or government research organization) can file an H-1B at any time without the lottery.

Does cap-gap work if I travel and get the visa abroad?

No. Cap-gap applies to petitions that request a change of status in the United States, not consular processing, and only to cap-subject petitions, not cap-exempt ones.

Does my employer need E-Verify for regular OPT?

USCIS lists E-Verify enrollment as a condition of the STEM OPT extension: your application has to name the employer as listed in E-Verify and its E-Verify company ID. It is not listed as a condition for the initial 12 months of OPT.

Sources

Official pages read on December 1, 2026 and linked where each is used above.

  1. USCIS, Optional Practical Training (OPT) for F-1 Students. Up to 12 months; apply up to 90 days before and no later than 60 days after completing the degree, within 30 days of the DSO recommendation; no work before the EAD
  2. USCIS, Optional Practical Training Extension for STEM Students (STEM OPT). 24-month extension; filing window; E-Verify employer; Form I-983; 90 and 150 days of unemployment; 180-day automatic extension while a timely application is pending; reporting every 6 months and changes within 10 days
  3. USCIS, Extension of Post-Completion OPT and F-1 Status for Eligible Students (cap-gap). Who qualifies; extension until April 1 or the petition start date, whichever is earlier; when it ends; 60-day grace period rules; not for cap-exempt petitions
  4. USCIS, H-1B Cap Season. 65,000 + 20,000 caps; weighted selection by wage level; Oct. 1 start date and six-month filing rule
  5. USCIS, H-1B Electronic Registration Process. $215 registration fee; FY 2027 registration dates and timeline; 90-day filing window
  6. USCIS, H-1B Specialty Occupations. Cap-exempt employers; change of status vs consular processing
  7. DHS Study in the States, STEM OPT Hub. Resource for students, schools and employers (linked, not relied on)

See where your own resume stands

Check my resume