What counts as federal tax on your paycheck

Federal tax and Social Security/Medicare taxes are separate deductions. When you see your paycheck stub, federal income tax goes to the U.S. Treasury, while Social Security and Medicare taxes go to those specific programs. They are withheld at different rates and for different purposes, even though they all come out of your gross pay.

Federal income tax is based on your tax bracket and filing status — it funds general government operations. Social Security and Medicare are payroll taxes, meaning they are tied directly to your earnings and fund those two programs only. Your employer withholds both, but they are tracked separately by the IRS and reported on different parts of your tax return.

When you file your annual tax return, you report all three types of withholding. Federal income tax is what you owe or get back as a refund. Social Security and Medicare taxes are not refundable — they are permanent contributions to your account, whether or not you ever use the benefits.

Key Takeaways

  • Federal income tax and Social Security/Medicare taxes are withheld separately from your paycheck and serve different purposes.
  • Social Security and Medicare are payroll taxes that fund only those programs, not general government spending.
  • In 2024, you pay 6.2% for Social Security and 1.45% for Medicare; your employer matches both amounts.
  • Self-employed workers pay both the employee and employer share, totaling 12.4% for Social Security and 2.9% for Medicare.
  • Social Security and Medicare taxes are not refundable, even if you overpay or never use the benefits.

Social Security and Medicare tax rates

If you are a W-2 employee, your employer withholds 6.2% of your gross pay for Social Security, up to a wage cap that changes yearly. For 2024, that cap is $168,600 — once you earn above that, Social Security tax stops. Medicare has no wage cap: you pay 1.45% on all earnings, no matter how much you make.

Your employer matches both amounts dollar for dollar. So if you earn $50,000 a year, you contribute $3,100 to Social Security and $725 to Medicare, and your employer contributes the same. The total going into those programs is $6,200 and $1,450 respectively, though you only see your half deducted from your paycheck.

If you are self-employed, you pay both the employee and employer share yourself. That means 12.4% for Social Security (up to the wage cap) and 2.9% for Medicare on all net self-employment income. You can deduct half of this as a business expense on your tax return, but you still owe the full amount.

How these taxes appear on your tax return

On your Form 1040, Social Security and Medicare taxes appear in the "Payments" section, listed as "Social Security tax withheld" and "Medicare tax withheld." These are separate from federal income tax withheld. The IRS uses these numbers to verify that your employer reported your earnings correctly to the Social Security Administration.

You cannot reduce the amount of Social Security or Medicare tax you owe by claiming deductions or credits. Unlike federal income tax, which can be reduced or eliminated through deductions, these payroll taxes are a fixed percentage of your earnings. They are mandatory and non-negotiable.

If you had multiple jobs during the year, you may have overpaid Social Security tax (because each employer withholds up to the wage cap independently). In that case, you can claim a refund of the overage on your tax return. Medicare overpayment cannot happen in the same way, but if you earned over $200,000 as a single filer (or $250,000 married filing jointly), you owe an additional 0.9% Medicare tax that you may need to pay when you file.

The difference between income tax and payroll tax

Federal income tax is progressive — the more you earn, the higher your tax rate, up to 37% at the top bracket. Social Security and Medicare taxes are flat — everyone pays the same percentage regardless of income (except for the Social Security wage cap). This is why someone earning $200,000 pays far more in total federal tax than someone earning $50,000, but the Social Security tax difference is smaller.

Federal income tax funds the general operations of government: defense, roads, courts, federal agencies, and so on. Social Security and Medicare taxes fund only those two programs. The money does not go into a general fund — it goes into trust accounts managed by the Social Security Administration and the Centers for Medicare & Medicaid Services.

Federal income tax is withheld based on a W-4 form you fill out with your employer, which lets you adjust how much is taken out. Social Security and Medicare withholding is automatic and cannot be adjusted — it is always the same percentage. You cannot claim exemption from payroll taxes the way some people claim exemption from federal income tax withholding.

What happens to Social Security and Medicare taxes you pay

Social Security tax you pay goes into the Social Security Trust Fund. When you turn 62, you can begin drawing benefits based on your earnings record. The amount you receive depends on how much you earned and how long you worked, not on how much tax you paid. Someone who earned more receives a higher benefit, but the relationship is not one-to-one.

Medicare tax you pay goes into the Medicare Trust Fund. At age 65, you become may be able to access for Medicare Part A (hospital insurance) and Part B (medical insurance), regardless of whether you worked long enough to earn Social Security. You do not have to "earn back" your Medicare taxes — may be able to access is based on age and work history, not on the amount you contributed.

If you die before reaching retirement age, your family may be may have access to to survivor benefits from Social Security, funded by the taxes you paid. Your Medicare taxes do not transfer — if you do not live to age 65, that money stays in the trust fund and is not refunded to your estate.

Additional Medicare tax for high earners

If you earn above a certain threshold, you owe an extra 0.9% Medicare tax on the amount over that threshold. For single filers, the threshold is $200,000. For married couples filing jointly, it is $250,000. For married filing separately, it is $125,000. This additional tax is withheld by your employer if you cross the threshold during the year.

Unlike the standard 1.45% Medicare tax, the additional 0.9% is not matched by your employer — you pay it all yourself. It is also treated as part of your income tax liability, not as a separate payroll tax, though it still funds Medicare.

If you have multiple jobs or are self-employed and also work as a W-2 employee, you may overpay this additional tax. You can claim a refund on your tax return if your total additional Medicare tax withheld exceeds what you actually owe based on your combined income.

Self-employed workers and payroll taxes

If you are self-employed, you report your net self-employment income on Schedule C and calculate your Social Security and Medicare taxes on Schedule SE. You owe 12.4% for Social Security (up to the wage cap) and 2.9% for Medicare on your net earnings, minus half of your self-employment tax.

You pay self-employment tax when you file your tax return or make quarterly estimated tax payments. Unlike W-2 employees, you do not have an employer to withhold these taxes automatically, so you must set aside money throughout the year or pay a penalty.

You can deduct half of your self-employment tax as an adjustment to income on your Form 1040, which reduces your taxable income slightly. This deduction recognizes that the employer's share of payroll taxes is a business expense, even though you are paying both shares yourself.

Frequently Asked Questions

Can I opt out of paying Social Security and Medicare taxes?

No. These are mandatory payroll taxes for all W-2 employees and self-employed workers. The only exceptions are certain religious groups that have obtained IRS approval to be exempt, and some government employees hired before specific dates who are covered by alternative pension systems.

If I pay Social Security tax my whole life, am I may provide to get it back?

No. Social Security is not a savings account — it is a social insurance program. Your benefits depend on your age when you claim, your earnings record, and how long you live. Some people receive more than they paid in; others receive less. It is not a one-to-one return on your contributions.

Why do I pay Medicare tax if I do not turn 65 until years from now?

Medicare tax funds the program for all beneficiaries, not just you. Your taxes help pay for current retirees' care. When you turn 65, current workers' taxes will help pay for yours. This is how social insurance programs work — they are intergenerational, not individual savings accounts.

What if I paid too much Social Security tax because I had two jobs?

You can claim a refund on your tax return. When you have multiple employers, each withholds Social Security tax up to the wage cap independently, which can result in overpayment. The IRS will refund the excess when you file, or explore it to other taxes you owe.

Is the additional 0.9% Medicare tax the same as regular Medicare tax?

No. The standard 1.45% Medicare tax applies to all workers and is matched by employers. The additional 0.9% applies only to high earners, is not matched, and is treated as income tax rather than payroll tax. Both fund Medicare, but they are calculated and withheld differently.