VOLUME 1 · CHAPTER 4 OF 8

Social Security and Medicare: Who Pays and When It Starts

Who owes FICA on a visa, why F-1 and J-1 nonresident students are exempt and the exact point the exemption ends, how to recover tax withheld by mistake, and what US credits and totalization agreements are worth if you leave.

6 min readFoundations1 worked examplesupdated 2026-10-01
TRY IT WITH YOUR NUMBERSOpen the full calculator →
Loading the Social Security for visa holders…
Same formula and engine as the full calculator. Your numbers stay in this browser.

Look at a pay stub and two lines sit beside federal income tax: Social Security and Medicare, together called FICA. Many students on OPT see nothing on those lines, and many H-1B workers wonder whether they will ever see a benefit from what is taken. This chapter explains who pays, why the student exemption exists and exactly when it ends, what to do if it was withheld by mistake, and what the payments are worth if you later leave the US.

What FICA is and what it costs

FICA is the federal payroll tax that funds Social Security (retirement, disability and survivor benefits) and Medicare (health insurance from 65). For an employee in 2026 it has three parts:

  • Social Security tax of 6.2% on wages up to $184,500 in the year;
  • Medicare tax of 1.45% on all wages;
  • Additional Medicare Tax of 0.9% on wages above $200,000, which an employer withholds above that amount whatever your filing status.

Your employer pays a matching share on top. Together the two employee rates come to 7.65% of most paychecks, which is why the exemption described below is worth real money:

EMPLOYEE FICA OF $459 A MONTH, OVER 3 YEARS OF PRACTICAL TRAINING
Per month
$459
Years
3
Per year
$5,508
Over 3 years
$16,524
Computed by the same engine as the calculators. Change the inputs there to see your own.

For a salary on which the employee's 7.65% comes to $459 a month, FICA adds up to $5,508 a year and $16,524 over 3 years. For a student who is exempt, that money stays in the paycheck. For anyone else it is withheld whether or not they ever claim a benefit.

Who pays: the work visas

Publication 519 is direct: Social Security and Medicare taxes apply to wages for work performed as an employee in the US regardless of the citizenship or residence of the employee or the employer, and the employer must withhold them even if you do not expect to qualify for benefits.

So H-1B, L-1, O-1, E-3, TN and similar workers pay FICA from the first paycheck, including in a first year when they are nonresident aliens for income tax. A spouse with work authorization in H-4 or J-2 status also pays: Publication 519 says the student exemption does not reach F-2, J-2, M-2 or Q-3 family members. Being a nonresident for income tax does not, by itself, exempt anyone from FICA.

The one route out for some work-visa holders is a totalization agreement, covered below.

Who does not pay: students and exchange visitors

Publication 519 exempts the pay of a nonresident alien in F, J, M or Q status for work done to carry out the purpose of the visa. In practice that covers:

  • on-campus work, including teaching and research assistantships;
  • practical training: curricular practical training (CPT) and optional practical training (OPT), including the STEM extension;
  • off-campus work allowed for severe economic hardship;
  • for J-1 exchange visitors, work the sponsor has authorized in writing.

Two conditions do the work, and both must hold.

You must still be a nonresident alien. The moment you become a resident alien under the substantial presence test, FICA applies, even though you still hold the same F or J visa. For an F-1 student that is usually January 1 of the sixth calendar year in the US (chapter 2). For a J-1 researcher or teacher it is usually the third calendar year. OPT that runs into your sixth calendar year is therefore subject to FICA from your residency starting date that year, which is January 1 if you are in the US that day.

The work must belong to your status. Work outside what your status allows is not covered by the exemption. When a student changes status, for example from F-1 to H-1B, FICA applies to the pay earned in the new status.

Payroll systems get this wrong in both directions: some withhold from an exempt student, and some keep exempting a student who has become a resident. Check your status each January and your first pay stub after any change.

If it was withheld by mistake

If FICA was withheld from pay that was exempt, Publication 519 sets out two steps:

  1. Ask your employer first. The employer can refund the amount and correct its own filings.
  2. If the employer will not refund it all, file Form 843 with the IRS. Attach a copy of your Form W-2, your visa, your I-94, your I-20 (F-1) or DS-2019 (J-1), your EAD card (Form I-766) if you were on OPT, and a statement from your employer about any refund it gave. If the employer will not provide that statement, explain why, or attach Form 8316.

Claims for a refund have time limits, so do not leave it for years. Additional Medicare Tax withheld in error is claimed differently, on your income tax return.

What you get for the tax: credits and benefits

A US retirement benefit needs 40 credits. In 2026 you earn one credit for each $1,890 of covered earnings, and at most four credits in a year, so qualifying takes at least ten years of covered work. Someone who works in the US for five or six years and leaves usually has no US retirement benefit from that work on its own, and the tax is not refunded when they go. That is the honest cost to weigh.

Two things can change it.

Totalization agreements. The US has Social Security agreements with 31 countries, including Canada, the United Kingdom, Germany, Japan, South Korea, Australia and Brazil. India and China are not on the list as of September 2026. An agreement does two things:

  • it stops double payroll tax: a worker temporarily sent to the US by an employer from an agreement country can usually stay in the home system and be exempt from US FICA, with a certificate of coverage from the home country's agency, which matters most for L-1 transferees;
  • it lets the Social Security Administration add your home-country coverage to your US credits to reach the 40, provided you have at least 6 US credits. The benefit is then a partial one, based on the share of your career worked in the US.

Medicare. Medicare tax pays for Medicare, which you can use only if you are in the US and eligible. If you leave, it is a cost, not a saving.

The Social Security for visa holders calculator shows what your years of US work could be worth and whether your country has an agreement.

YOUR NEXT STEPSDo this now
  1. Find the Social Security and Medicare lines on your latest pay stub. If you are an F-1 or J-1 nonresident and they are not zero, or you have become a resident and they are zero, raise it with payroll now.
  2. Work out the calendar year your FICA exemption ends (the year you become a resident alien) and put January 1 of that year in your calendar.
  3. Run your salary through the H-1B and OPT take-home pay calculator with and without FICA to see the difference in each paycheck.
  4. Check the SSA list of agreement countries. If you were sent here by an employer from one of them, ask whether a certificate of coverage applies to you.
  5. Create an account at ssa.gov to see the earnings and credits recorded under your Social Security number, and correct any missing year early.

This chapter summarizes IRS Publication 519 and Social Security Administration guidance as of 2026. It is not personal tax advice. Questions about whether your work is authorized under your status belong with your school's designated official or an immigration attorney.

KEY TERMS
FICA taxFICA exemption for F-1 and J-1 studentsTotalization agreementResident and nonresident alien (for tax)
SOURCES
Saved in this browser. Sign in to keep it on every device.
WORK IT OUT WITH YOUR NUMBERS
1099 vs W-2 comparison →Is a 1099 contract at $X better than a W-2 salary at $Y?Side hustle take-home and years-sooner-to-FI →What does my side hustle really pay per hour after tax, and how much faster does it get me to FI?Take-home pay, visa-holder variant →What will I actually take home per paycheck, including as an H-1B, F-1 OPT or nonresident alien?
QUICK ANSWERS
What is the substantial presence test? →