# Do F-1 students on OPT pay Social Security and Medicare tax?

> Not while they are nonresident aliens. F-1, J-1 and M-1 students are generally nonresidents for their first five calendar years in the US, and during that time wages from on-campus work, CPT and OPT are exempt from Social Security and Medicare tax. Once a student becomes a resident alien — often in the sixth year — or changes to H-1B, the exemption ends.

Last reviewed: 2026-11-13

The exemption covers work allowed by the student's immigration status, including Curricular and Optional Practical Training, on or off campus.

If an employer withholds FICA from an exempt student, ask the employer for a refund first; otherwise claim it from the IRS on Form 843 with Form 8316.

Students still pay federal income tax on wages, file Form 1040-NR if they had income, and file Form 8843 every year — even with no income.

Indian students can claim the standard deduction on Form 1040-NR under Article 21 of the India–US treaty.

## FAQs

### Does the exemption cover STEM OPT?

Yes, while the student is still a nonresident alien.

### Does it cover an F-2 spouse?

No. Spouses and children in F-2 or J-2 status are not covered.

## Related

- [F-1, OPT & CPT student tax returns](https://www.industax.com/services/us-tax/f1-opt-cpt-student-tax-return)
- [US taxation overview](https://www.industax.com/us-taxation)
- [Substantial presence test calculator](https://www.industax.com/calculators/substantial-presence-test)

## Sources

- [IRS — Foreign student liability for Social Security and Medicare taxes](https://www.irs.gov/individuals/international-taxpayers/foreign-student-liability-for-social-security-and-medicare-taxes)

---
Canonical page: https://www.industax.com/answers/f1-opt-social-security-tax
Publisher: Indus Tax — CA-led tax and compliance firm (https://www.industax.com). Contact: info@industax.com, 9059139258.
This is general information, not advice for your specific facts.