How to Split Social Security and Medicare Tax When Switching F-1 OPT to H-1B in One Year

Learn how to manage F-1 to H-1B tax transitions, separate exempt FICA wages, and file for Social Security refunds using paystubs and IRS Form 843 in 2026.

How to Split Social Security and Medicare Tax When Switching F-1 OPT to H-1B in One Year
Key Takeaways
  • Students transitioning from F-1 to H-1B face a split payroll tax problem requiring careful wage tracking.
  • A W-2 alone is insufficient; workers must analyze individual paystubs based on work performance dates.
  • Refund claims for FICA must exclude all wages earned after the H-1B status officially begins.

Students who move from F-1 OPT or STEM OPT to H-1B in the same calendar year often face a split payroll tax problem: Social Security and Medicare tax may apply one way before the H-1B start date and another way after it.

The practical result is that a worker cannot look at a year-end W-2, see FICA withheld, and assume the whole amount is refundable. Any FICA refund claim has to track the period when the person still qualified for exemption and exclude wages that were properly taxed after H-1B status began.

How to Split Social Security and Medicare Tax When Switching F-1 OPT to H-1B in One Year
How to Split Social Security and Medicare Tax When Switching F-1 OPT to H-1B in One Year

That issue comes up often in years when a student works on OPT from January through September and then changes status on October 1, a common H-1B cap start date. Some workers stay with one employer for both periods, some change employers, and many receive a single W-2 combining wages and withholding for the entire year.

FICA refers to two payroll taxes: Social Security tax and Medicare tax. On Form W-2, those items usually appear in Box 3, Social Security wages; Box 4, Social Security tax withheld; Box 5, Medicare wages and tips; and Box 6, Medicare tax withheld.

Those taxes are separate from federal income tax withholding. Federal income tax can be reconciled on an annual return, but Social Security and Medicare tax withheld from student wages that were exempt usually follows a different correction route.

IRS guidance says foreign students in F-1 status are generally exempt from Social Security and Medicare taxes on wages paid for services allowed by USCIS and performed to carry out the purpose for which they were admitted. That does not create an automatic exemption for every person who once held F-1 status.

Eligibility during the OPT period turns on several facts drawn from the same set of payroll and immigration records. The worker must still have valid F-1 status, the employment must be authorized as OPT or STEM OPT, the work must connect to the course of study, the person must be a nonresident alien for tax purposes during that period, and the services must have been performed before H-1B status began.

Tax residency can change the result. Some students become resident aliens for tax purposes before or during OPT, and resident aliens generally have the same Social Security and Medicare tax liability as U.S. citizens.

The IRS substantial presence test generally requires at least 31 days in the current year and 183 weighted days over the current year and prior two years. A worker reviewing possible FICA exemption during OPT has to check prior calendar years in F-1 status, whether student days were still excludable, whether `Form 8843` was filed, and whether the person filed `Form 1040` or `Form 1040-NR`.

Once the worker changes to H-1B, payroll treatment usually changes as well. The employee is no longer working under F-1 OPT authorization, and wages paid under H-1B employment are generally subject to Social Security and Medicare tax unless a specific exception applies.

That is why the split matters. In a year with an H-1B start date of October 1, wages before that date call for a review of possible F-1 OPT exemption, while wages from October through December generally belong in the taxable H-1B bucket.

A refund claim should not include H-1B-period wages if those wages were properly subject to FICA. Filing for the full amount shown in W-2 Boxes 4 and 6 can trigger rejection or further IRS questions because the year may include both exempt and nonexempt periods.

The W-2 often creates the confusion because it may not separate pre-H-1B and post-H-1B wages. One form can show total wages for January through December, Social Security wages for the full year, Medicare wages for the full year, and total Social Security and Medicare tax withheld, even though the worker spent part of the year in F-1 status and part in H-1B status.

Payroll records, not the W-2 alone, usually provide the answer. The safest method is to collect every paystub for the year and split wages into two buckets: the F-1 OPT or STEM OPT period and the H-1B period.

That review should record the pay period start date, pay period end date, payment date, gross wages, Social Security wages, Medicare wages, Social Security tax withheld, Medicare tax withheld, employer name, and work authorization status for each period. The claim amount should then match the paystubs and the year-end W-2 rather than an estimate.

Pay-period dates matter more than many workers expect. A paycheck issued after H-1B begins can still cover services performed before the status change.

One example shows a pay period of September 16 to September 30, a pay date of October 5, and an H-1B start date of October 1. Even though the paycheck arrived after H-1B began, the wages may still relate to the F-1 OPT period, which means the worker has to sort wages by when the work was performed, not simply by when the check was cut.

The reverse can also happen depending on the payroll cycle. That is why pay-period dates, not just paycheck dates, are central when separating exempt wages from taxable wages in a split-status year.

Workers who believe FICA was withheld in error during the exempt OPT period should first contact payroll. The request should ask for a written breakdown of wages and tax withholding during the F-1 OPT or STEM OPT period and during the H-1B period, along with confirmation of whether payroll can refund FICA for the exempt period and whether it can issue a corrected W-2, using `Form W-2c` if needed.

Supporting records matter here. Payroll may ask for the F-1 visa page, I-20 with OPT recommendation, EAD card, I-94, H-1B approval notice, H-1B start date, paystubs, W-2, and a written explanation of the FICA issue.

The employer-first step is the main correction path. IRS guidance says that if Social Security or Medicare tax was withheld in error from pay not subject to those taxes, the employee should contact the employer for reimbursement, and if the employer cannot provide a full refund, the employee may file a refund claim with the IRS.

An employer that agrees an error occurred may correct payroll records and issue a corrected W-2. That can matter where Box 3 or Box 5 includes exempt OPT wages, or where Box 4 or Box 6 reflects Social Security or Medicare tax withheld in error.

If payroll refuses or cannot refund the amount, the worker may turn to the IRS and file `Form 843`, Claim for Refund and Request for Abatement, together with `Form 8316`, Information Regarding Request for Refund of Social Security Tax Erroneously Withheld on Wages Received by a Nonresident Alien on an F, J, or M Type Visa. Supporting documents should show exactly which wages were exempt and how the amount was calculated.

That package can include the W-2, all paystubs for the year, the wage breakdown by pay period, the F-1 visa copy, `Form I-20`, EAD card for OPT or STEM OPT, `Form I-94`, H-1B approval notice, evidence of the H-1B start date, payroll correspondence, `Form 1040-NR` if filed, `Form 8843` if applicable, and an explanation of how the refund amount was computed.

The amount claimed should be limited to Social Security and Medicare taxes withheld during the exempt F-1 OPT period. A practical calculation starts by identifying all pay periods before the H-1B start date, confirming those wages were earned during valid OPT or STEM OPT, confirming nonresident alien status during that period, adding Social Security tax withheld for those periods, adding Medicare tax withheld for those periods, and excluding all H-1B-period FICA.

That distinction also explains why some workers may not need any refund at all. If payroll did not withhold FICA during OPT but started withholding only after H-1B began, that may be correct, even if the W-2 still shows Social Security and Medicare tax for the year.

In that situation, the worker should check whether Boxes 3 and 5 correspond only to H-1B wages, whether Boxes 4 and 6 reflect only H-1B-period withholding, and whether payroll excluded OPT wages from Social Security and Medicare wages while still combining federal wages on the same W-2. If that split was handled properly, a refund claim may not be appropriate.

Several examples show how the same worker can produce different outcomes depending on status dates and tax residency. A student on STEM OPT from January through September who moved to H-1B on October 1 and had FICA withheld all year may claim a refund only for January through September if the OPT wages were exempt, while a student whose payroll started FICA only from October wages may already have the correct result.

Another example involves a long-term F-1 student on OPT who became a resident alien for tax purposes before H-1B started. That worker should not assume OPT wages were FICA-exempt, because tax residency can reduce or eliminate refund eligibility for the period before the H-1B change.

Income tax filing remains a separate issue throughout. A worker may still need to file `Form 1040-NR` or `Form 1040`, along with a state income tax return and local tax return where applicable, but federal income tax withholding is not the same as FICA and should not be mixed into a Social Security and Medicare refund claim.

The cleanest approach in a split F-1 and H-1B year is narrow and document-heavy: confirm the OPT or STEM OPT period, confirm the H-1B start date, determine whether the worker remained a nonresident alien during the claimed period, split wages by pay period, ask payroll to correct any exempt-period withholding first, and limit any IRS filing to the portion of Social Security and Medicare tax tied to wages that were actually exempt.

US flag
United States
Americas · Washington, D.C. · Passport Rank #41
What do you think? 0 reactions
Useful? 0%
Sai Sankar

Sai Sankar is a law postgraduate with over 30 years of extensive experience in various domains of taxation, including direct and indirect taxes. With a rich background spanning consultancy, litigation, and policy interpretation, he brings depth and clarity to complex legal matters. Now a contributing writer for Visa Verge, Sai Sankar leverages his legal acumen to simplify immigration and tax-related issues for a global audience.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments