Study

Cap-Gap Explained: Bridging OPT to H-1B as an AI Graduate

How the cap gap bridges the wait between your OPT end date and an approved H-1B, and what happens if the petition falls through.

July 14, 20266 min readInformational only
An empty university campus quad at dawn with a glass academic building and a distant city skyline in morning haze

If you are an AI or CS graduate on OPT and your employer just filed an H-1B for you, the cap gap is the rule that keeps you legally in the country and working while you wait for that H-1B to start. Here is the short version: when you have a timely filed, cap-subject H-1B petition that requests an October 1 start date, your F-1 status and, if it has not already expired, your OPT work authorization are automatically extended to bridge the gap until the H-1B begins. It exists because the H-1B fiscal year starts October 1, but many graduates run out of OPT before that date, which would otherwise leave them stuck with no status and no way to work. Rules change often, so treat this as a map, not a guarantee, and confirm your case with your DSO and the official sources below. This is informational, not legal, immigration, tax, or financial advice.

What the cap gap actually is

The cap gap is the stretch of time between the day your F-1 status or OPT would normally end and October 1, when a new fiscal year of H-1B status can begin. Without a bridge, a graduate whose OPT ended in, say, July would fall out of status for two or three months before the H-1B kicked in. The regulations close that gap. As the official USCIS cap-gap page explains, an eligible F-1 student with a pending or approved cap-subject H-1B petition gets an automatic extension of both status and, where applicable, employment authorization. You do not file a separate application for the extension itself. It flows from the H-1B petition your employer already filed, and your school updates your SEVIS record to reflect it.

One detail trips people up: the extension of your work authorization only continues if your OPT was still valid on the day the H-1B was filed. If your OPT had already expired before filing, your status can still be extended, but your permission to work does not resume until October 1.

The cap gap from graduation to your H-1B startSpringGraduationF-1 status, OPT clock starts~12 to 36 moOPT windowStandard OPT, plus STEM OPT if your degree qualifiesSpringH-1B filed and selectedEmployer files a timely cap-subject petition, Oct 1 startSummerCap gap bridgeF-1 and valid OPT auto extended past the OPT end dateOct 1H-1B beginsNew fiscal year status starts, backstop runs to Apr 1 if delayedIf denied60-day graceExtension ends, time to depart or change statusAutomatic for eligible students; ends if the petition is denied, withdrawn, or not selected.
How an eligible F-1 graduate's status and OPT bridge the gap to an Oct 1 H-1B start. See the USCIS cap-gap page.

Who qualifies, and how STEM OPT fits in

The cap gap is not automatic for everyone who files an H-1B. A few conditions have to line up, and they are worth checking carefully because a small timing miss can void the whole thing. Generally you qualify when all of the following are true:

  • You are maintaining valid F-1 status on the date the H-1B petition is filed.
  • You are in an authorized period of post-completion OPT, which explicitly includes the STEM OPT extension, on that filing date.
  • Your employer files a timely, cap-subject H-1B petition requesting a start date of October 1.
  • USCIS receives the petition and issues a receipt, and it is later selected and not rejected.

The STEM OPT piece matters for AI and CS graduates specifically. Because a qualifying STEM degree can give you up to 24 extra months of OPT on top of the standard 12, you are far more likely to still be inside an authorized OPT window when H-1B filing season arrives, which is exactly the state the cap gap requires. If you are still sorting out whether your degree qualifies and how that extra runway works, our walkthrough of the STEM OPT extension for AI and CS graduates covers the CIP code and employer rules in detail. The cap gap sits on top of that OPT foundation; it does not replace it.

The updated backstop date: October 1 to April 1

For years the cap gap had a hard limit: if your H-1B was still pending on October 1, or something went sideways, your bridge simply ran out. A rule that took effect in early 2025 pushed that backstop later. As the DHS Study in the States announcement describes it, eligible F-1 students can now have their status and work authorization extended until April 1 of the relevant fiscal year, rather than cutting off at October 1. The change was built to absorb USCIS processing delays, so a graduate whose petition is approved but slow does not lose their job while they wait.

In practice, most people whose H-1B is approved cleanly will simply flip into H-1B status on October 1 and never touch the April backstop. The later date is insurance for the cases where adjudication drags on. As of 2026 this is the current framing, but exact dates and eligibility windows are the kind of thing that gets revised, so read the official page rather than trusting a number you saw in a forum.

What to do before your OPT runs out

The cap gap rewards people who plan a few months ahead. Here is a rough order of operations for an AI graduate hoping to bridge OPT into H-1B:

  1. Confirm your OPT end date now. Know the exact day printed on your EAD, because whether your work authorization bridges forward depends on OPT being valid on the H-1B filing date.
  2. Line up an H-1B sponsor early. Registration usually happens in the spring, so talk to your employer well before then about filing a cap-subject petition with an October 1 start.
  3. Keep your F-1 status spotless. Report address and employer changes to your DSO on time; a status lapse before filing can disqualify you from the bridge entirely.
  4. Ask your DSO for an updated I-20. Once your H-1B is filed and selected, your school annotates SEVIS and can issue a cap-gap I-20 showing the extension, which is what you show an employer as proof you can keep working.
  5. Have a fallback ready. Because selection is a lottery, know what you will do if you are not picked, whether that is another OPT year, a different visa, or a move abroad.

You can verify the mechanics against the DHS cap-gap explainer for students, which walks through the status and work-authorization pieces in plain language.

If the petition is denied or withdrawn

The cap gap is only as durable as the H-1B behind it. If your petition is denied, withdrawn, revoked, rejected, or not selected in the lottery, the automatic extension ends. When that happens, you are no longer authorized to work under the extended F-1, and you generally enter the standard 60-day grace period that F-1 students get after their program or OPT ends. That window is meant for wrapping up and preparing to depart, transferring to a new program, or filing a timely change of status if you have another option lined up. It is short, so the moment you learn a petition failed, talk to your DSO the same week rather than waiting to see what happens.

This is the part that makes a plan B more than a nice-to-have. The lottery odds mean plenty of qualified AI graduates do not get selected in a given year, and the cap gap does nothing to change those odds. It only smooths the runway for the people who are selected.

The honest takeaway

The cap gap is one of the more forgiving pieces of the US immigration system for graduates: it is automatic, it flows from a petition your employer already filed, and the 2025 rule made it more generous by extending the backstop toward April. If your degree is STEM, your status is clean, and your employer files on time, it usually does its job quietly and you barely notice it. But it is a bridge, not a destination. It assumes an H-1B selection you cannot control, and it collapses the instant that petition fails.

For an AI graduate, the smart move is to treat the cap gap as a reason to stay meticulous about dates and status, while being honest that your whole US timeline still hinges on a lottery. If that uncertainty is wearing on you, it is worth pricing out the alternatives before you are forced to. Countries like Canada, Germany, and the UK offer work-then-residency paths that do not run through an annual draw, and the differences in after-tax pay and years to permanent residency are large. That side-by-side is exactly what the AI Relocation Guide is built for, and you can compare all 21 countries before you bet everything on one outcome. If you are specifically weighing whether the US path is still worth it, our take on a US master's in CS after the H-1B changes goes deeper on that decision.

The cap gap keeps you working while you wait for an H-1B you have already won; it does nothing for the one you have not, so build the bridge and keep a boat.

This guide is informational and educational only. It is not legal, immigration, tax, or financial advice. Rules, salaries, and timelines change often, so confirm the current details with official government sources and a qualified professional before you act on anything here.