The student FICA exemption’s five-year rule applies to nonresident alien students in the United States on F-1, J-1, M-1, or Q-1 visas: for their first five calendar years in the country, they are treated as “exempt individuals” for the Substantial Presence Test and their wages are excluded from Social Security and Medicare taxes under Internal Revenue Code Section 3121(b)(19). After those five calendar years, most students become resident aliens for tax purposes and lose this particular exemption, though some on-campus wages may still be exempt under a different rule.
How the Five Calendar Years Are Counted
The clock runs on calendar years, not twelve-month periods, and any part of a year counts as a full year. A student who arrives in August 2022 starts the count in calendar year 2022 even though they were only in the country for a few months. Their five calendar years run 2022 through 2026.1Internal Revenue Service. Exempt Individual – Who Is a Student
During those years, the student is an “exempt individual” for the Substantial Presence Test. That test is the mechanism the IRS uses to decide whether a foreign national is a resident or nonresident alien: 183 weighted days of presence generally makes you a resident. As an exempt individual, your days in the U.S. don’t count toward that threshold, so you stay a nonresident alien regardless of how long you’re physically here.1Internal Revenue Service. Exempt Individual – Who Is a Student
The FICA exemption itself sits in Section 3121(b)(19) of the tax code and applies to nonresident aliens temporarily present in the U.S. on F, J, M, or Q visas.2Office of the Law Revision Counsel. 26 USC 3121 – Definitions The two pieces work together: your visa status plus your nonresident alien status equals no FICA.
What the Exemption Covers
Unlike the general student FICA exemption, the five-year rule doesn’t require you to work for your school. Any wages earned while carrying out the purpose of your visa are exempt from Social Security and Medicare taxes, as long as you remain a nonresident alien.3Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes On-campus jobs qualify. So do authorized off-campus positions, including Curricular Practical Training (CPT) and Optional Practical Training (OPT) employment, because those are considered part of the visa’s purpose.
The savings are real. FICA is 7.65% for the employee (6.2% Social Security plus 1.45% Medicare) and another 7.65% matched by the employer.4Social Security Administration. What Is FICA? On $10,000 of wages, that’s $765 you keep that would otherwise leave your paycheck.
One boundary matters: the exemption does not extend to dependents. If your spouse or child is in the U.S. on an F-2, J-2, or M-2 visa and obtains work authorization, their wages are subject to FICA.3Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes
What Happens After the Fifth Calendar Year
Once you’ve been present for any part of more than five calendar years, you lose exempt individual status for the Substantial Presence Test. Your days in the country start counting. If you meet the 183-day threshold, you become a resident alien for tax purposes and the Section 3121(b)(19) exemption no longer applies.3Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes
That doesn’t automatically mean FICA starts coming out of every paycheck. If you’re still enrolled at least half-time and working on campus for your school, you can fall back on the general student FICA exemption under Section 3121(b)(10), which is the same rule domestic students use.3Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes
The catch is scope. Section 3121(b)(10) only covers wages paid by the school where you’re enrolled (or a qualifying affiliate). Off-campus employment, including CPT and OPT work with outside employers, is no longer FICA-exempt. A PhD student in year six who is teaching a section on campus is still exempt on that stipend, but their summer internship at a private company is not.
The Closer-Ties Exception
A student past the five-year mark can try to argue they should still be treated as a nonresident alien by showing they don’t intend to reside permanently in the U.S. and have kept closer ties to their home country. The IRS looks at factors like whether you’ve applied for permanent residency and whether you’ve maintained a foreign home.1Internal Revenue Service. Exempt Individual – Who Is a Student This requires affirmative proof and IRS approval, so it isn’t something to bank on in payroll planning.
Totalization Agreements
The U.S. has totalization agreements with several countries that prevent double taxation of Social Security contributions. Depending on your home country, one of these agreements may affect your FICA liability even after you become a resident alien.3Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes Check whether your country has one before assuming FICA now applies in full.
If FICA Was Withheld During Your Five-Year Window
Payroll offices make mistakes, and international students are a common casualty. If your employer withheld Social Security or Medicare taxes from wages that should have been exempt, start with the employer. The school can repay your share of the over-withheld tax and file Form 941-X with the IRS to correct its own employment tax filings.5Internal Revenue Service. Instructions for Form 941-X (04/2025) This is the fastest path.
If the employer won’t fix it or you can no longer reach them, file directly with the IRS using Form 843, Claim for Refund and Request for Abatement. Attach your W-2 and a statement from your employer showing how much they reimbursed you (or explaining why you can’t get one). As an F, J, or M visa holder, also attach Form 8316, which is designed specifically for nonresident aliens seeking refunds of erroneously withheld Social Security tax, plus a copy of your passport visa stamp and Form I-94.6Internal Revenue Service. Social Security Tax/Medicare Tax and Self-Employment
The refund window closes. You have three years from the date you filed the return reporting the wages, or two years from the date the tax was paid, whichever is later.7Internal Revenue Service. Time You Can Claim a Credit or Refund Waiting until after graduation to sort out four years of paychecks can mean losing the earliest ones entirely.
Checking Your W-2 Each Year
A correctly applied exemption is easy to spot. Box 1 (wages, tips, other compensation) will show your earnings, because exempt student wages are still subject to federal income tax withholding. But Box 3 (Social Security wages) and Box 5 (Medicare wages) should be blank or zero for the exempt portion.8Internal Revenue Service. 2026 Publication 15 (Circular E) If Boxes 1, 3, and 5 all show the same figure, FICA was withheld and you should raise it with payroll before you file your tax return. Look at each W-2 the year it arrives, not after graduation, so you stay inside the refund window and can still walk into the payroll office in person.