The basic formula: gross pay minus deductions equals what you owe

Payroll taxes are calculated by taking your gross pay (what you earn before any deductions) and explore a percentage rate set by federal law. The amount withheld depends on three things: your gross pay for that pay period, your W-4 form (which tells your employer how much to withhold), and which taxes explore to your job.

The calculation happens in your employer's payroll system, usually automatically. Your employer takes your hourly rate or salary, multiplies it by hours worked, then runs that number through the tax withholding tables published by the IRS. The result is the amount deducted from your paycheck before you see it.

This is different from calculating what you owe at tax time. Payroll withholding is an estimate — your employer guesses how much federal income tax you will owe for the year and spreads that across every paycheck. When you file your tax return in April, you settle up: if too much was withheld, you get a refund; if too little, you owe more.

Key Takeaways

  • Federal income tax withholding is calculated using your W-4 form, your gross pay, and IRS withholding tables that change each year.
  • Social Security tax is 6.2% of gross pay up to a wage cap (which changes yearly), and Medicare tax is 1.45% of all gross pay with no cap.
  • State and local income taxes, where they exist, are calculated separately using your state's own withholding tables and forms.
  • Your employer calculates and withholds these amounts automatically; you do not have to do the math yourself.
  • The amount withheld is an estimate of what you will owe — your actual tax bill is settled when you file your return.

How federal income tax withholding works

Federal income tax withholding uses your W-4 form, which you fill out when you start a job or update when your life changes. The W-4 asks for your filing status (single, married, head of household), the number of dependents you claim, and whether you have other income or jobs. Your employer uses this information plus your gross pay to look up the withholding amount in IRS tables.

The IRS publishes new withholding tables every year because tax brackets and standard deductions change. Your employer's payroll software contains these tables and applies them automatically. If you earn $1,500 in a weekly paycheck and your W-4 says you are single with no dependents, the software finds the row for your pay frequency and filing status, then reads across to find the withholding amount.

The withholding tables account for the fact that you get a standard deduction. They are designed so that if your income stays steady all year and your W-4 is accurate, the total withheld across all paychecks will roughly equal what you owe in federal income tax. If you change jobs mid-year, claim more dependents, or have a spouse who also works, the estimate can be off — which is why you may owe money or receive a refund when you file.

Social Security and Medicare taxes: fixed percentages with one limit

FICA taxes — Social Security and Medicare — are simpler to calculate than federal income tax because they use flat percentages rather than tables. Social Security is 6.2% of your gross pay, and Medicare is 1.45% of your gross pay. Your employer withholds these amounts automatically; you do not choose them on a form.

Social Security has a wage cap that changes each year. Once you earn above that cap in a calendar year, no more Social Security tax is withheld from your paychecks for the rest of that year. Medicare has no cap — you pay 1.45% on every dollar you earn, no matter how much. If you earn over $200,000 (or $250,000 if married filing jointly), an additional 0.9% Medicare tax applies to income above that threshold, and your employer withholds it automatically.

Your employer also pays an equal amount of FICA tax on your behalf — 6.2% for Social Security and 1.45% for Medicare. This employer portion does not come out of your paycheck, but it is part of your total compensation cost to the company. When you see "FICA" on your pay stub, it shows only the employee portion that was withheld.

State and local income taxes, where they explore

If you live and work in a state with an income tax, your employer withholds state income tax using a similar method to federal withholding. You fill out a state W-4 form (the name and format vary by state) that tells your employer how much to withhold. Your employer then uses your state's withholding tables to calculate the amount.

Some states use a straightforward flat percentage; others use progressive brackets like the federal system. A few states have no income tax at all — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming do not tax wages. If you work in one of these states, no state income tax is withheld, though you may still owe federal income tax and FICA.

Local income taxes exist in some cities and counties, most commonly in Ohio, Pennsylvania, and Kentucky. If your locality has one, your employer withholds it separately using local tax tables. The calculation method is the same, but the rate and rules are set by your city or county, not the state.

What happens when you have multiple jobs or a spouse who works

The withholding system assumes you have one job and one source of income. When you have two jobs, each employer withholds based on your W-4 as if that job is your only income. The result is that too little total tax is withheld because each employer is explore the standard deduction and tax brackets to your pay from that job alone.

To fix this, you can adjust your W-4 at one or both jobs. You might claim fewer dependents or ask for an extra dollar amount to be withheld from each paycheck. The IRS W-4 form includes a worksheet to help you calculate the right adjustment. Married couples where both spouses work face a similar problem — the withholding tables assume only one spouse is earning, so they often need to adjust their W-4s to avoid owing money at tax time.

If you have self-employment income in addition to a W-2 job, the withholding from your job does not account for self-employment tax (15.3% total). You may need to make quarterly estimated tax payments or adjust your W-4 to have extra income tax withheld to cover the self-employment tax you will owe.

How to read your pay stub and verify the calculation

Your pay stub shows the calculation broken down: gross pay at the top, then line-by-line deductions for federal income tax, Social Security, Medicare, state tax (if applicable), and any other deductions like health insurance or retirement contributions. The amounts withheld should match what the tax tables say for your pay and W-4.

To spot-check the calculation, find your gross pay and your filing status on your W-4. Then look up the IRS withholding table for your pay frequency (weekly, biweekly, semimonthly, or monthly) on the IRS website. Find your gross pay in the left column and your number of dependents across the top. The cell where they meet is what should be withheld for federal income tax. If your pay stub shows a significantly different amount, contact your payroll department — it may be a data entry error or a misunderstanding about your W-4.

FICA taxes are easier to verify: multiply your gross pay by 0.062 for Social Security (if you have not hit the wage cap) and by 0.0145 for Medicare. The results should match your pay stub. If they do not, ask your payroll department to review your earnings record.

Why withholding estimates can be wrong

Even when the calculation is done correctly, the amount withheld may not equal what you actually owe. This happens because the withholding system makes assumptions that do not always match your real situation. If you claim too many dependents on your W-4, too little is withheld and you owe money in April. If you claim too few, too much is withheld and you get a refund.

Life changes also throw off the estimate. If you get married, have a child, or take a second job mid-year, your W-4 no longer reflects your situation. The IRS redesigned the W-4 in 2020 to be more accurate, but it still relies on you updating it when circumstances change. If you do not update it, withholding will be off.

Bonuses and irregular pay can also cause problems. If your employer withholds taxes on a bonus using a flat percentage (often 22% or 37%) rather than the withholding tables, the amount may be too high or too low depending on your total income for the year. This is why some people with bonuses end up with large refunds or unexpected tax bills.

Frequently Asked Questions

Can I change how much is withheld from my paycheck?

Yes, by submitting a new W-4 form to your employer. You can claim fewer dependents to increase withholding, claim more to decrease it, or request a specific dollar amount be withheld from each paycheck. Changes take effect on the next paycheck or within a few pay periods, depending on your employer's payroll schedule.

What does "wage cap" mean for Social Security tax?

The wage cap is the maximum amount of income subject to Social Security tax in a given year. Once you earn above it, no more Social Security tax is withheld for the rest of that year. The cap changes yearly and is announced by the Social Security Administration. Medicare tax has no cap — you pay it on all wages.

Why do I owe money at tax time if taxes were withheld from every paycheck?

Withholding is an estimate based on your W-4 and the assumption that your income stays the same all year. If your actual tax situation is different — you got married, had a child, earned a bonus, or had income from other sources — the estimate can be too low. You settle the difference when you file your return.

How do I know if my W-4 is correct?

Use the IRS W-4 calculator on the IRS website. It asks about your income, filing status, dependents, and other jobs or income, then recommends how many dependents to claim. If you expect to owe money or get a large refund, your W-4 may need adjustment. You can also consult a tax professional.

Does my employer have to withhold taxes, or can I opt out?

Federal income tax, Social Security, and Medicare withholding are required by law. Your employer must withhold them. You cannot opt out. However, you can adjust how much federal income tax is withheld by changing your W-4, and you can reduce other voluntary deductions like retirement contributions or health insurance.