Study

The STEM OPT Extension for AI and CS Graduates

A practical look at what the STEM OPT extension requires from employers and students, and how it can bridge toward H-1B.

July 6, 20265 min readInformational only
An American university campus walkway with red-brick halls and autumn trees at golden hour

If you just finished a computer science or AI degree on an F-1 visa, the STEM OPT extension for AI and CS graduates is the reason you might get close to three years of US work authorization instead of one. Standard Optional Practical Training gives most F-1 graduates about 12 months to work in their field. If your degree qualifies as STEM, which most CS, AI, data science, and engineering degrees do, you can add a STEM OPT extension of up to 24 months on top of that, roughly 36 months total, enough time to try the H-1B lottery more than once. Rules shift and nothing here is guaranteed, so confirm your situation with your school's DSO and the official sources below. This is not legal advice.

How Standard OPT Works First

Before STEM OPT enters the picture, there is regular OPT. Most F-1 students finishing a bachelor's, master's, or PhD can apply for about 12 months of Optional Practical Training in a job related to their field of study. You apply through your school after your DSO recommends it in SEVIS, and USCIS issues an Employment Authorization Document once approved. The USCIS OPT for F-1 students page is the primary source for eligibility and filing. This first year is where most people start their US career, in a research role, a software job, or something adjacent to their AI degree.

Work authorization after a STEM degreeYear 0Graduate on F-1CS or AI degree+12 moOPTwork in your field+24 moSTEM OPT extensionE-Verify employer, Form I-983~36 moH-1B or other statusseveral lottery triesIllustrative; durations and rules change.
OPT plus the STEM extension gives roughly three years of work authorization and several H-1B tries. Confirm with your DSO and the STEM OPT Hub.

Which AI and CS Degrees Qualify for the STEM OPT Extension

The STEM OPT extension adds up to 24 months of work authorization, but only if your degree carries a STEM CIP code the government recognizes. CIP stands for Classification of Instructional Programs, the coding system schools use to categorize degrees. Most computer science, computer engineering, data science, machine learning, and applied math programs already qualify, but the list changes over time, and some AI adjacent degrees, like interdisciplinary or business analytics tracks, sit in gray areas. Your registrar or DSO can confirm the CIP code attached to your specific degree. Don't assume it qualifies. A mislabeled or borderline CIP code is a common reason an extension application gets delayed or denied.

The E-Verify Employer Requirement

STEM OPT comes with a condition regular OPT does not have. Your employer has to be enrolled in E-Verify, the federal system that checks work eligibility electronically. This is not optional, and you cannot work around it by finding any willing employer. A small startup or research lab that has not enrolled in E-Verify cannot legally sponsor your extension until it does. If you're job hunting with the extension in mind, ask early whether a prospective employer is E-Verify enrolled, since plenty of smaller companies have not bothered. The STEM OPT Hub lays out the employer obligations.

Form I-983: The Training Plan Behind the Extension

The other piece that separates STEM OPT from regular OPT is Form I-983, a training plan your employer fills out and signs alongside you before you file. It has to describe real learning objectives tied to your STEM degree, how your employer will supervise and evaluate you, and how the role builds on what you studied. This is not paperwork to rush through. Immigration officers and your DSO expect the I-983 to reflect a genuine training relationship, not just a job title with your degree name attached. You and your employer also revisit the form partway through the extension, since a self-evaluation is generally required around the midpoint and again near the end. The STEM OPT Hub hosts the current form and instructions.

Reporting Duties You Cannot Skip

STEM OPT also comes with reporting duties that catch people off guard. You are generally expected to confirm your employment and personal information at set intervals, and to report changes, such as a new employer, a changed address, or a layoff, within a short window, often cited as around 10 business days. Miss these and your SEVIS record can fall out of status even if you are still employed. Your DSO manages that record, so loop them in whenever your job or address changes. The SEVP practical training page covers reporting for both regular and STEM OPT.

The STEM OPT extension buys you time, not certainty. It stretches your work authorization window, but every extra month depends on paperwork, an eligible employer, and a degree that actually qualifies, so treat the process as something to manage closely rather than something that runs on autopilot.

How STEM OPT Bridges to H-1B and Beyond

The real value of stacking OPT and STEM OPT is the extra tries at the H-1B lottery. With roughly 36 months of authorized work, a CS or AI graduate can enter the cap lottery across multiple years instead of once, and a cap-gap provision can extend your F-1 status if you are selected while still on OPT waiting for H-1B to start. That said, the lottery is still a lottery. STEM OPT does not guarantee an outcome. It buys more chances and more runway to weigh other paths, including O-1 status, an employer-sponsored option outside the US, or deciding a different country fits your career better. If you are already weighing whether staying in the US makes sense, our breakdown of whether a US master's in CS is still worth it after H-1B changes covers that in more depth.

STEM OPT only solves the US side of the decision. If you are weighing the US against Canada, Germany, the UK, or somewhere else, what matters is after-tax salary, years to permanent residency, and how stable the visa system actually is, not just how many months of OPT you get. That is the comparison the AI Relocation Guide is built to make across 21 countries side by side, so you are not guessing from one forum thread or one country's rules alone. It is worth taking the time to compare all 21 countries before committing to a single path.

The Honest Takeaway

The STEM OPT extension is real, and it can add up to two more years of US work authorization on top of standard OPT, which matters for AI and CS graduates building a career or trying the H-1B lottery. But it comes with real conditions: an E-Verify employer, a properly filed Form I-983, periodic evaluations, and reporting duties that do not forgive mistakes. This is not legal advice, and the rules around CIP codes, filing windows, and fees change often enough that anything written today should be checked against current guidance. Talk to your DSO and check the official sources before you file anything. They can confirm your degree qualifies and your paperwork is right.

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.