8 min readUpdated March 12, 2026H1B TaxFile Editorial

Key Takeaways

  • OPT is an extension of F-1 status — your tax treatment does not change automatically
  • FICA exemption continues during OPT if you are within your first 5 calendar years of F-1
  • Most OPT workers file Form 1040-NR as nonresident aliens
  • W-2 income during OPT is reported on Form 1040-NR just like regular employment
  • State tax obligations depend on which state you work in during OPT

File your H-1B return — $49.99

Start free

OPT Tax Filing: What F-1 Students Need to Know

Optional Practical Training (OPT) allows F-1 students to work in their field of study after graduation. While OPT changes your employment situation, it does not automatically change your tax status. You are still on F-1, and the same tax rules continue to apply — including the FICA exemption and nonresident alien classification. This guide covers everything you need to know about filing taxes during OPT.

OPT and Your Tax Status: Still Nonresident?

OPT is an extension of your F-1 status, not a separate visa category. This means the five-calendar-year exemption from the Substantial Presence Test continues to apply during OPT. If you are within your first five calendar years of F-1 status, you remain a nonresident alien for tax purposes and file Form 1040-NR.

However, if your OPT period extends beyond five calendar years of F-1 status (common for students who started with a bachelor's degree and continued to a master's program), your days will begin counting toward the SPT. In that case, you may become a resident alien and need to file Form 1040 instead.

FICA Exemption During OPT: Rules and Limits

One of the most significant tax benefits for F-1 students on OPT is the exemption from FICA taxes (Social Security at 6.2% and Medicare at 1.45%). This exemption saves you 7.65% of your gross wages compared to what a resident alien or U.S. citizen would pay.

The FICA exemption applies as long as you are within your first five calendar years of F-1 status. During this period, your employer should not withhold Social Security or Medicare taxes from your paycheck. If they do, you can request a refund.

Watch out for employer errors

Many employers are unfamiliar with the F-1 FICA exemption and may withhold these taxes automatically. Check your pay stub — if you see Social Security or Medicare deductions during your exempt period, notify your payroll department immediately. If they cannot correct it, you can file Form 843 with the IRS to claim a refund.

Which Tax Form: 1040-NR or 1040?

The form you use depends on your tax residency status, not your visa type:

  • Within 5 calendar years of F-1 status: File Form 1040-NR as a nonresident alien. You cannot use standard consumer tax software like TurboTax for this form.
  • Beyond 5 calendar years and meet SPT: File Form 1040 as a resident alien. At this point, you are taxed on worldwide income and can use standard tax software.

Remember that the five-year count is based on calendar years, not consecutive months. If you entered the U.S. in August 2020 on F-1, your five exempt calendar years are 2020, 2021, 2022, 2023, and 2024. Your days start counting toward the SPT in 2025.

Reporting W-2 Income During OPT

During OPT, you will receive a W-2 from your employer at the end of the year. Report this income on Form 1040-NR. The key boxes to check:

  • Box 1 (Wages): Your total taxable wages for the year.
  • Box 2 (Federal tax withheld): The amount your employer withheld for federal income tax. This becomes a credit on your Form 1040-NR.
  • Boxes 4 and 6 (Social Security and Medicare): These should be zero if your employer correctly applied the FICA exemption. If they are not zero, you may need to claim a refund.

If you worked for multiple employers during OPT (or held a part-time job while on pre-completion OPT), you will have multiple W-2s. Report all of them on your return.

State Tax Obligations During OPT

State income tax is separate from federal tax and depends on where you work, not your visa status. If you work in a state with income tax, you must file a state return. Some key points:

  • Most states require nonresident aliens to file a state return if they earned income in that state.
  • Eight states have no income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming.
  • State tax treaties do not exist — the federal tax treaty benefits you claim on Form 1040-NR do not automatically apply to your state return. Some states honor federal treaty provisions, others do not.

Transitioning from OPT to H-1B: Tax Impact

Many F-1 students transition to H-1B status after OPT. This transition has significant tax implications. Once you are on H-1B, your days in the U.S. count toward the Substantial Presence Test (F-1 exempt days no longer apply). You will likely become a resident alien for tax purposes, which means filing Form 1040 and being taxed on worldwide income.

In the transition year, you may have a split status: part of the year on F-1/OPT and part on H-1B. The FICA exemption ends on the date your H-1B status begins — your employer should start withholding FICA from that date forward. Read more about F-1 student tax obligations for the full picture.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Tax rules vary by individual circumstances. Consult a qualified tax professional for advice specific to your situation.

Frequently Asked Questions

Skip the complexity. We handle all of this for you.

H1B TaxFile supports every form in this guide — FATCA, PFIC, FTC, RSU basis correction, and 22 more H-1B-specific features. Flat price, no surprises.

No credit card to start Printable PDF in 15 minutes 22 H-1B-specific features
File your return — $49.99

H1B TaxFile Team

Written by the H1B TaxFile editorial team — tax professionals and software engineers who specialize in U.S. federal tax filing for H-1B visa holders, F-1 students, and nonresident aliens.

Reviewed by a licensed CPA with international tax experience.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and change frequently. Consult a qualified tax professional for advice specific to your situation.

Recommended Reading