How to Become a Software Engineer as an International Student: OPT, STEM OPT, H-1B Guide 2026

The visa path from F-1 to full-time SWE is achievable but demands precise timing — here is the exact roadmap for OPT, STEM OPT, and H-1B in 2026.

By F1Jobs Team · 2026-07-02 · 11 min read
An international student working at a laptop in a university library with code visible on the screen and a campus quad visible through floor-to-ceiling windows

You spent four years grinding problem sets, building projects, and competing for internships — all while managing F-1 status, DSO meetings, and the looming question every international student in CS knows too well: what happens after graduation? The answer is not as simple as "get a job." It is get a job, then get OPT, then get STEM OPT, then survive the H-1B lottery — ideally multiple times — and eventually secure a path to permanent residency. None of that is impossible, but each stage has rules, deadlines, and traps that end careers when they catch people off guard.

This guide maps the complete path from F-1 student to employed software engineer with long-term US authorization. It covers the visa timeline, what the 2026 rule changes actually mean for SWEs, how to pick employers strategically, and the mistakes that derail otherwise strong candidates.

The visa timeline every SWE international student must know

Software engineering is one of the best fields for international students precisely because the STEM OPT extension applies broadly and H-1B sponsorship is common at tech companies. But the window is not infinite.

Stage 1 — OPT (12 months)

OPT is your first authorization to work after graduation. Key facts:

File early. If you are graduating in May 2027, you should be talking to your DSO in February 2027 at the latest.

Stage 2 — STEM OPT Extension (24 months)

If your degree is a qualifying STEM major (CS, software engineering, electrical engineering, computer engineering, and most closely related fields — verify your CIP code with your DSO), you can extend OPT by 24 months.

STEM OPT gives you a total of 36 months of authorized work — three H-1B lottery cycles. That is the runway you are working with.

Stage 3 — H-1B (3 + 3 years, up to 6)

H-1B is the standard long-term work visa for software engineers. It requires employer sponsorship, a certified Labor Condition Application (LCA) from the Department of Labor, and an approved I-129 petition from USCIS. The cap is 65,000 per fiscal year plus a 20,000 master's cap exemption — the FY2027 cap was already reached, meaning registration for FY2027 is closed as of this writing.

The lottery runs in March each year for petitions effective October 1. You need to be registered by your employer before the lottery closes.

The full timeline at a glance

StageDurationKey ActionDeadline Trap
F-1 (student)Duration of programGraduate, apply for OPT earlyMiss 90-day filing window = no OPT
OPT12 monthsLand first job; track unemployment days90 cumulative days without employer = violation
STEM OPT24 monthsI-983 with employer; semi-annual DSO reportEmployer must be E-Verify enrolled
H-1B Year 1–33 yearsEmployer files lottery + petitionMiss lottery registration = wait another year
H-1B extension3 more yearsExtend or port to green card track6-year cap unless I-140 approved

What the 2026 H-1B changes mean for software engineers specifically

The wage-weighted H-1B lottery, effective February 27, 2026, fundamentally changed the math for new grads. Under this rule, USCIS assigns 2–4 times more lottery entries to petitions at higher wage levels relative to the DOL prevailing wage for the role and location.

What this means for SWEs:

For a deeper breakdown of how to reverse-engineer your way to a Level III or IV offer, see our guide on software engineer wage level III and IV tactics for the H-1B lottery.

The master's cap exemption (20,000 additional slots) still applies — a US master's in CS or a related STEM field gives you two bites at the lottery each registration cycle (regular cap + master's cap), which statistically improves odds.

Picking your first employer: the sponsorship reality for new grad SWEs

Not every company that posts a software engineering role will sponsor an H-1B. Some will happily hire you on OPT and then decline to file when lottery season arrives. Here is how to evaluate companies before you accept an offer.

Use public LCA data to find real sponsors

Every H-1B petition requires a Labor Condition Application filed with the Department of Labor. LCA filings are public record. You can search the DOL's Foreign Labor Certification Data Center or third-party aggregators like MyVisaJobs to see which employers have actually sponsored engineers recently, at what wage levels, and in which locations. Amazon, for instance, filed approximately 15,500 LCAs in FY2025 at an average offered salary of around $157,000 per public LCA data — a signal of both scale and wage level.

This matters because volume alone does not tell the whole story. A large company that sponsors thousands of petitions is more likely to have an established immigration process, in-house immigration counsel, and a budget for H-1B fees. A startup that has never sponsored before may have good intentions but no infrastructure.

For a systematic approach to building a company target list using LCA data, see our comparison of FAANG vs mid-market H-1B sponsorship odds for software engineers.

Red flags in offer conversations

Ask these questions during the process:

  1. Does your company sponsor H-1B for this role and at this level?
  2. Has your company sponsored software engineers at my level before?
  3. Will the company cover H-1B filing fees, including premium processing?

A company that hedges, says "we'll look into it," or refers you to HR without a clear answer deserves more scrutiny before you accept.

Cap-exempt employers as an alternative

Universities, qualifying nonprofit research organizations, and government research entities are cap-exempt — they can sponsor H-1B at any time, without going through the lottery. If you work in a university's IT department, a research software role at a nonprofit lab, or a federal research facility, you are outside the lottery system entirely. This is a genuine path, though it typically comes with lower compensation than industry roles.

Building a portfolio that gets you hired and sponsored

Landing a sponsorship-willing employer starts with being competitive enough to get the offer in the first place.

Technical skills that matter most for new grad SWE roles in 2026

Skill AreaWhy It Matters for Sponsorship
Data structures and algorithmsRequired for FAANG-style interviews, which are at the highest wage levels
System designSeparates L4/L5 candidates; directly tied to Level III+ wage offers
Cloud platforms (AWS, GCP, Azure)Nearly universal in enterprise SWE roles; strengthens LCA wage level
Backend frameworks (Go, Java, Python)High volume of sponsored roles in backend engineering
Distributed systemsIncreases offer value, which improves lottery odds

Projects and internships

US internship experience is disproportionately valuable because it signals to employers that you have been vetted, you understand the US work environment, and — critically — that an employer already found you worth the overhead of hiring an international student. If you have had a US internship and received a return offer, treat that as a strong sponsorship signal.

Open-source contributions, personal projects with real users, and published technical writing all help when you lack US work experience. The goal is to make your candidacy strong enough that the sponsorship cost is a rounding error, not a reason to pass.

The H-1B lottery: how to maximize three attempts

On 36 months of STEM OPT, you have three possible lottery cycles. Most candidates who make it through need only one or two, but planning for all three is prudent.

Attempt 1 (OPT year 1 lottery)

Register in March of your first post-graduation year. Your OPT is still running, so a lottery miss does not immediately create a crisis. Use this attempt to get your process started and learn your employer's immigration workflow.

Attempt 2 (STEM OPT year 1 lottery)

If you missed Attempt 1, you are now in STEM OPT. File again. Between attempts, consider whether your current employer is the right sponsor or whether switching to a higher-wage employer would improve your lottery weighting.

Attempt 3 (STEM OPT year 2 lottery)

This is your last lottery on OPT authorization. If you miss, you need either a cap-exempt bridge employer, an alternative visa (O-1 extraordinary ability, TN for Canadians and Mexicans, E-3 for Australians), or to pursue graduate school for another OPT cycle.

For the full sequencing logic including the 4-year rule interaction with STEM OPT, read our guide on OPT to STEM OPT to H-1B sequencing and the 4-year rule.

Green card planning: starting early on the long track

The H-1B is a temporary visa. For most software engineers, the real goal is a green card. The EB-2 (Advanced Degree or Exceptional Ability) and EB-3 (Skilled Workers) categories are the standard paths. For candidates from India and China, wait times can be very long due to per-country backlogs — starting PERM labor certification early matters enormously.

Steps in the green card process for SWEs

  1. PERM labor certification — Your employer files with the DOL proving no qualified US workers are available for your role. This process typically takes 8–18 months.
  2. I-140 immigrant petition — Employer (or you, in the case of EB-2 NIW) files with USCIS. Once approved, your priority date is set.
  3. Adjustment of status (I-485) or consular processing — When your priority date becomes current, you file for the green card itself.

For candidates with Indian citizenship, the EB-2 India backlog is severe. Some candidates strategically downgrade to EB-3 when that category's priority dates are more favorable — a move worth discussing with an immigration attorney.

Start PERM conversations with your employer in your first or second year on H-1B. The earlier your priority date, the better your long-term position.

Common mistakes

Waiting until graduation to apply for OPT. OPT processing takes 3–5 months. Apply 90 days before your program end date. Missing your filing window can leave you in a gap with no work authorization.

Not tracking OPT unemployment days. The 90-day cumulative limit is enforced. Days between jobs count. Keep a simple spreadsheet with employment start and end dates and calculate running totals.

Joining a company without confirming they sponsor H-1B at your level. Some companies hire freely on OPT and then decline to sponsor when the time comes. Get a clear, written answer — ideally a standard policy statement — before signing.

Ignoring the wage-level effect on lottery odds. A lower offer salary does not just mean less money — it means fewer lottery entries under the 2026 wage-weighted system. Negotiating a higher offer has direct, concrete visa benefits. Do not underestimate this.

Not having a backup plan after a lottery miss. Cap-exempt employers, a second master's degree, and the O-1 visa (for candidates who can document extraordinary ability through publications, open-source impact, or competitive recognition) are all real options. Think through them in year 1, not after year 3 misses.

Leaving STEM OPT compliance to memory. The I-983 training plan, semi-annual self-evaluations, and 10-day reporting requirements for employment changes are compliance obligations. Missing them can invalidate your STEM OPT status.

Frequently asked questions

Can I work as a software engineer in the US immediately after graduating on F-1?

Yes, through OPT (Optional Practical Training). You can apply for OPT up to 90 days before graduation and begin work after your EAD card arrives. The OPT period is 12 months, but STEM-qualifying CS and engineering degrees unlock a 24-month STEM OPT extension — giving you up to 36 months total to find an H-1B sponsor.

How hard is it to get H-1B sponsorship as a new grad software engineer in 2026?

Harder than it was five years ago but still the most realistic long-term path for most SWEs. The FY2027 H-1B cap of 65,000 plus the 20,000 master's exemption was reached. With wage-weighted selection effective February 27 2026, roles at higher wage levels (III and IV) receive 2 to 4 times more lottery entries than lower-wage roles — so targeting higher-paying companies and negotiating strong offers directly improves your odds.

What does the wage-weighted H-1B lottery mean for software engineering new grads?

Under the rule effective February 27 2026, USCIS assigns lottery entries based on the offered wage relative to the DOL prevailing wage for the role and location. A Level III or IV offer at a well-paying company gives your petition a multiplied chance of selection. New grads at wage Level I or II are at a disadvantage compared to candidates at Levels III and IV at identical companies.

Does software engineering qualify for STEM OPT extension?

Almost always yes. CS, computer engineering, electrical engineering, software engineering, and most related STEM majors qualify for the 24-month STEM OPT extension. You need a degree from an accredited institution and an employer willing to sign the I-983 Training Plan. Confirm your specific CIP code with your DSO before applying.

What is the OPT application fee in 2026?

The OPT fee (Form I-765 filing) increased to $1,780 in 2026. File as early as 90 days before your program end date to avoid gaps, and budget for this fee alongside your job search costs.


The path from F-1 to employed software engineer with long-term US authorization is well-traveled. Thousands of international students make it through every year — not by luck but by understanding the rules, picking the right employers, and executing the paperwork without costly mistakes. Your technical skills got you this far. Pair them with visa literacy and you will be in a strong position.

If you want help identifying sponsoring employers, tracking your OPT compliance timeline, or preparing for H-1B lottery cycles, F1Jobs works with international SWEs at every stage of this path.

Frequently asked questions

Can I work as a software engineer in the US immediately after graduating on F-1?

Yes, through OPT (Optional Practical Training). You can apply for OPT up to 90 days before graduation and begin work after your EAD card arrives. The OPT period is 12 months, but STEM-qualifying CS and engineering degrees unlock a 24-month STEM OPT extension — giving you up to 36 months total to find an H-1B sponsor.

How hard is it to get H-1B sponsorship as a new grad software engineer in 2026?

Harder than it was five years ago but still the most realistic long-term path for most SWEs. The FY2027 H-1B cap of 65,000 plus the 20,000 master's exemption was reached. With wage-weighted selection effective February 27 2026, roles at higher wage levels (III and IV) receive 2 to 4 times more lottery entries than lower-wage roles — so targeting higher-paying companies and negotiating strong offers directly improves your odds.

What does the wage-weighted H-1B lottery mean for software engineering new grads?

Under the rule effective February 27 2026, USCIS assigns lottery entries based on the offered wage relative to the DOL prevailing wage for the role and location. A Level III or IV offer at a well-paying company gives your petition a multiplied chance of selection. New grads at wage Level I or II are at a disadvantage compared to candidates at Levels III and IV at identical companies.

Does software engineering qualify for STEM OPT extension?

Almost always yes. CS, computer engineering, electrical engineering, software engineering, and most related STEM majors qualify for the 24-month STEM OPT extension. You need a degree from an accredited institution and an employer willing to sign the I-983 Training Plan. Confirm your specific CIP code with your DSO before applying.

What is the OPT application fee in 2026?

The OPT fee (Form I-765 filing) increased to $1,780 in 2026. File as early as 90 days before your program end date to avoid gaps, and budget for this fee alongside your job search costs.