Students and exchange visitors in their exempt period are outside the definition of
employment for Social Security and Medicare purposes — the tax never applied. Payroll systems
withhold it anyway, because a student's tax status is not something a payroll system infers. Small
per pay cheque; substantial across a degree.
Your status
The rulebook, verified
The service is excluded from “employment” altogether verified
The statute excludes from employment SERVICE WHICH IS PERFORMED BY A NONRESIDENT ALIEN INDIVIDUAL FOR THE PERIOD HE IS TEMPORARILY PRESENT IN THE UNITED STATES AS A NONIMMIGRANT UNDER SUBPARAGRAPH (F), (J), (M), OR (Q) of the immigration definitions, AND WHICH IS PERFORMED TO CARRY OUT THE PURPOSE SPECIFIED IN that subparagraph. Social Security and Medicare tax attach to employment; service outside that definition is outside the tax. This is not a deduction or a credit that has to be claimed — the liability does not arise in the first place.
It only holds while you are a NONRESIDENT for tax — which is its own test verified
The exclusion opens with 'a nonresident alien individual', so it lasts exactly as long as nonresident status does. That is a tax question decided by the day count and by the exempt-individual rules, not by the visa: a student's days generally do not count for a limited number of calendar years, and when that period runs out the day count starts and residence can follow. The exemption ends on the same day, quietly, and payroll will not tell anybody. Somebody in later years of a long degree should check which side of that line they are on rather than assume the first year's answer still holds.
26 U.S.C. §3121(b)(19), with the residence tests in the presence-test rulebookprimary sourceverified 2026-08-26
The work has to be the kind the visa exists for verified
The exclusion applies to service PERFORMED TO CARRY OUT THE PURPOSE of the immigration subparagraph the person is present under. It is not a blanket exemption on any earnings while holding the visa — the work has to be the kind the status contemplates. Employment authorised as part of the programme is the ordinary case; anything outside it is a different question, and one worth asking before assuming the exclusion covers it.
Payroll withholds it anyway, and that is the point of this page verified
Employers run payroll on a default that assumes the tax applies, and a student's status is not something a payroll system infers. The result is that the tax is withheld from people who never owed it. The route back begins with the EMPLOYER — they can usually correct it and are the faster path — and only where they will not is there a claim to be made directly. The specific form and sequence for that claim are NOT stated on this page: they were not read from a primary source when it was verified, and sending somebody to the wrong form on a refund claim costs them the time they have least of.
Practice under 26 U.S.C. §3121(b)(19)primary sourceverified 2026-08-26
This page does not tell you which form to file. A form number and a sequence
exist for recovering tax withheld in error, they were not read from a primary source
when this page was verified, and sending somebody to the wrong form on a refund claim costs them the
one thing they are short of. What it does say is that the first step is the employer rather
than the government, because an employer can usually correct it and is the faster path. It also
carries no figure for what is at stake — that is a currency amount this surface does not render, and
it depends entirely on what somebody earned. Whether you were still a nonresident in a given year is
the question everything here turns on, and it is answered at Am I a US Tax
Resident?
We already computed the public version — it is complete and stays free.
Keep your status dates in one place and the Square knows which years to check: Join DesiSquare and the Square remembers your dates, re-runs this
when the rules change, and puts a credentialed human one message away.