How to Calculate Payroll Tax on Your Paycheck
What payroll tax is and where it comes from
Payroll tax is money withheld from your paycheck by your employer and sent to federal and state tax agencies. It covers Social Security, Medicare, and income tax. Your employer also pays a matching amount on your behalf — that part does not come out of your check, but it is part of the total payroll tax system.
The amount withheld depends on three things: your gross pay (what you earn before deductions), your filing status, and the information you provided on your W-4 form. The W-4 tells your employer how many allowances to claim, which directly changes how much tax is taken out. If you claim more allowances, less is withheld. If you claim fewer, more is withheld.
Your employer uses IRS tax tables and your state's tax tables to calculate the exact amount. You do not calculate this yourself — your payroll department does. But understanding how the calculation works helps you know whether the right amount is being withheld.
Key Takeaways
- Payroll tax has three parts: Social Security (6.2% of gross pay), Medicare (1.45% of gross pay), and federal income tax (varies based on your W-4 and income level).
- Your employer uses your W-4 form, filing status, and the IRS tax tables to calculate federal income tax withholding each pay period.
- State income tax withholding (where applicable) is calculated separately using your state's tax tables and the information on your state W-4 form.
- The amount withheld is not final — you may owe more or receive a refund when you file your tax return, depending on your actual tax liability for the year.
- Changing your W-4 mid-year affects only future paychecks, not past ones.
Social Security and Medicare withholding (FICA taxes)
These two taxes are straightforward because the rate is fixed and does not change based on your income level or filing status. Social Security tax is 6.2% of your gross pay, up to a wage cap. In 2024, the cap is $168,600, meaning once you earn that much in a year, no more Social Security tax is withheld from that year's paychecks. Medicare tax is 1.45% of all your gross pay with no cap.
If you earn over $200,000 (single) or $250,000 (married filing jointly), an additional 0.9% Medicare tax applies to the income above that threshold. This is called the Additional Medicare Tax and is withheld automatically by your employer once your year-to-date earnings cross the threshold.
To calculate these yourself: multiply your gross pay by 0.062 for Social Security, and by 0.0145 for Medicare. If you are subject to Additional Medicare Tax, multiply the income over the threshold by 0.009 and add that too. Your pay stub will show each of these separately.
Federal income tax withholding using the W-4
Federal income tax withholding is more complex because it depends on your personal situation. Your employer uses the information from your Form W-4 — which you fill out when you start a job or update during the year — to determine how much to withhold from each paycheck.
The W-4 asks for your filing status (single, married filing jointly, head of household, or married filing separately), the number of dependents you claim, and any additional income or adjustments. Based on this information and your gross pay, your employer looks up the withholding amount in IRS tax tables published each year. These tables account for the standard deduction, tax brackets, and credits.
You cannot easily calculate this yourself without access to the exact IRS tables your employer uses, which vary by pay frequency (weekly, biweekly, monthly, etc.). The IRS provides a Tax Withholding Estimator on its website (irs.gov) that lets you estimate whether your withholding is correct. If you find you are having too much or too little withheld, you can submit a new W-4 to your employer, and the change takes effect on the next paycheck.
State income tax withholding
If you live in a state with income tax, your employer also withholds state income tax using a similar process. You complete a state W-4 form (the name and format vary by state) that provides your filing status, dependents, and other adjustments. Your employer then uses your state's tax tables to calculate the withholding amount.
Nine states have no income tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (which taxes only dividends and interest, not wages). If you live in one of these states, no state income tax is withheld.
Some states also have local income taxes in certain cities or counties. If you work or live in one of these areas, a third withholding may appear on your pay stub. The calculation follows the same principle: your employer uses local tax tables and your local tax form to determine the amount.
Reading your pay stub to verify withholding
Your pay stub breaks down every deduction and withholding. At the top, you will see your gross pay — the total you earned before anything is taken out. Below that, you should see line items for Social Security, Medicare, federal income tax, and state income tax (if applicable). Each shows the amount withheld for that pay period and often a year-to-date total.
To verify the withholding is roughly correct, add up the Social Security and Medicare amounts (these should match the percentages described above). For federal and state income tax, there is no single "correct" amount — it depends on your W-4 and your actual tax situation. But if the amount seems very high or very low compared to your gross pay, it may signal that your W-4 needs updating.
If you received a large refund last year, you likely had too much withheld. If you owed money at tax time, you likely had too little. Either situation means your W-4 should be adjusted. The IRS Tax Withholding Estimator can help you decide what to change.
How changes to your W-4 affect your paycheck
If you submit a new W-4 mid-year — because you got married, had a child, took a second job, or for any other reason — the change applies only to paychecks issued after your employer processes the form. Past paychecks are not recalculated. This is why it matters to update your W-4 as soon as your situation changes: the sooner you do, the sooner the correct amount is withheld for the rest of the year.
Claiming more allowances on your W-4 reduces withholding and increases your take-home pay. Claiming fewer allowances increases withholding and decreases your take-home pay. There is no "right" number of allowances — it depends on your personal tax situation and whether you prefer a larger paycheck or a larger refund at tax time.
Self-employment tax and quarterly estimated tax
If you are self-employed, you do not have an employer to withhold payroll tax. Instead, you calculate and pay self-employment tax yourself, which covers both the employee and employer portions of Social Security and Medicare. Self-employment tax is 15.3% of your net self-employment income (12.4% for Social Security, 2.9% for Medicare, plus the Additional Medicare Tax if applicable).
Self-employed people usually pay federal income tax through quarterly estimated tax payments rather than through withholding. You calculate your expected income and tax for the year, divide it by four, and send payments to the IRS on April 15, June 15, September 15, and January 15. If you do not pay enough through these quarterly payments, you may owe a penalty when you file your return.
Frequently Asked Questions
Why is my federal income tax withholding different from my coworker's if we earn the same?
Because your W-4 forms are different. Your filing status, number of dependents, and other adjustments determine withholding. Two people earning the same gross pay can have very different amounts withheld based on their personal situations. Your coworker may also have updated their W-4 more recently than you have.
Can I claim zero allowances on my W-4 to have more withheld?
Yes. Claiming zero allowances results in the maximum withholding. However, the W-4 form now uses a different system than "allowances" — it asks directly about dependents, other income, and adjustments. If you want more withheld than the standard calculation produces, you can enter an additional amount on the form.
What happens if my employer withholds the wrong amount?
You will find out when you file your tax return. If too much was withheld, you receive a refund. If too little was withheld, you owe the difference. You can also update your W-4 during the year if you notice the withholding is off, and the change will affect future paychecks.
Do I have to file a W-4 every year?
No. Your W-4 stays in effect until you change it. However, major life changes — marriage, divorce, birth of a child, second job, significant income change — are good times to review and update it using the IRS Tax Withholding Estimator.
Is the amount withheld from my paycheck my final tax bill?
No. Withholding is an estimate based on the information on your W-4. Your actual tax bill depends on your total income for the year, deductions, credits, and other factors. When you file your return, the IRS compares what you owed to what was withheld and either refunds the difference or bills you for what you still owe.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.