How to Calculate Federal Income Tax, Social Security, and Medicare
Use this premium payroll tax calculator to estimate annual federal income tax, employee Social Security tax, Medicare tax, additional Medicare tax, and take-home pay based on 2024 federal rules.
Your results will appear here
Enter your wages and deductions, then click Calculate Taxes.
Expert Guide: How to Calculate Federal Income Tax, Social Security, and Medicare
Learning how to calculate federal income tax, Social Security, and Medicare is one of the most useful personal finance skills you can develop. Whether you are reviewing your paycheck, forecasting annual tax liability, comparing job offers, or planning retirement contributions, understanding the moving parts behind payroll taxes helps you make smarter decisions. Many workers see taxes withheld on every paycheck, but the exact logic behind each line item is often unclear. Federal income tax is progressive and depends on your taxable income and filing status. Social Security tax is a flat percentage up to a wage cap. Medicare tax is a flat percentage with an additional surtax above certain earnings thresholds. While these all appear together on a pay stub, they are calculated differently.
This page simplifies the process by separating each component. First, you identify wages. Next, you account for deductions that reduce federal taxable income, plus any deductions that also reduce FICA wages. Then you apply the standard deduction and federal bracket structure. Finally, you calculate Social Security and Medicare using their own rules. Once you know those pieces, you can estimate annual withholding and approximate take-home pay with much more confidence.
The three major payroll tax categories
- Federal income tax: Based on taxable income after certain pre-tax deductions and either the standard deduction or itemized deductions. For quick payroll estimates, the standard deduction is the most common assumption.
- Social Security tax: Employee rate is 6.2% on covered wages up to the annual wage base limit.
- Medicare tax: Employee rate is 1.45% on all covered wages, with an additional 0.9% on wages above the applicable threshold.
These taxes are related but not identical. A person can have a low federal income tax bill because of deductions and credits, yet still owe full Social Security and Medicare tax on wages. That is because FICA taxes often apply to a broader wage base than federal taxable income. For example, traditional 401(k) salary deferrals generally reduce current federal taxable income but usually do not reduce Social Security or Medicare wages. By contrast, some cafeteria plan deductions may reduce both federal and FICA wages.
Step 1: Determine your annual gross wages
Start with your annual gross wages. This is your total compensation from wages before withholding. If you know your hourly pay, multiply your hourly rate by hours worked per week and then by weeks worked per year. If you know your salary, use your annual salary directly. If your compensation includes bonuses, commissions, or overtime, include a realistic annual estimate. The calculator above assumes one annual wage figure, which makes it easy to model full-year tax exposure.
Step 2: Subtract relevant pre-tax deductions
Before calculating taxes, identify which payroll deductions lower taxable income. This is where many people get confused. Different deductions affect different taxes:
- Federal-income-tax-only deductions: Traditional 401(k) contributions typically reduce federal taxable income now, but Social Security and Medicare still apply.
- Deductions exempt from both federal tax and FICA: Some employer-sponsored benefits, including certain Section 125 plan deductions and some HSA payroll contributions, may reduce both federal income tax wages and FICA wages.
That distinction matters. If you make $85,000 and defer $5,000 into a traditional 401(k), your federal taxable wages may fall, but your Social Security and Medicare wages often stay the same unless part of the deduction also qualifies for FICA exclusion. On the other hand, if you also contribute to a qualifying pre-tax health plan through payroll, that amount may reduce both federal income tax and FICA wages.
Step 3: Calculate federal taxable income
Once you have federal-taxable wages, you still are not at taxable income for federal income tax. You generally subtract the standard deduction for your filing status unless you itemize. For a broad estimate, the standard deduction is the practical choice.
For 2024, commonly used standard deductions are:
- Single: $14,600
- Married Filing Jointly: $29,200
- Head of Household: $21,900
- Married Filing Separately: $14,600
The simplified federal taxable income formula is:
If the result is negative, treat it as zero for income tax calculation purposes.
Step 4: Apply the federal income tax brackets
Federal income tax uses a progressive system. That means your entire income is not taxed at one rate. Instead, each portion of taxable income is taxed at the rate assigned to that bracket. This is one of the most important concepts in tax planning. Moving into a higher tax bracket does not mean all your income is taxed at that higher rate. Only the amount above the bracket threshold is taxed there.
| 2024 Filing Status | 10% Bracket | 12% Bracket | 22% Bracket | 24% Bracket | 32% Bracket | 35% Bracket | 37% Bracket Starts |
|---|---|---|---|---|---|---|---|
| Single | $0 to $11,600 | $11,600 to $47,150 | $47,150 to $100,525 | $100,525 to $191,950 | $191,950 to $243,725 | $243,725 to $609,350 | Over $609,350 |
| Married Filing Jointly | $0 to $23,200 | $23,200 to $94,300 | $94,300 to $201,050 | $201,050 to $383,900 | $383,900 to $487,450 | $487,450 to $731,200 | Over $731,200 |
| Head of Household | $0 to $16,550 | $16,550 to $63,100 | $63,100 to $100,500 | $100,500 to $191,950 | $191,950 to $243,700 | $243,700 to $609,350 | Over $609,350 |
| Married Filing Separately | $0 to $11,600 | $11,600 to $47,150 | $47,150 to $100,525 | $100,525 to $191,950 | $191,950 to $243,725 | $243,725 to $365,600 | Over $365,600 |
To calculate federal income tax manually, you stack the income through each bracket. For example, if a single taxpayer has $60,000 of taxable income, the first $11,600 is taxed at 10%, the next portion up to $47,150 is taxed at 12%, and only the amount above $47,150 up to $60,000 is taxed at 22%.
Step 5: Calculate Social Security tax
Social Security tax is simpler than federal income tax. The employee rate is 6.2% of Social Security wages up to the annual wage base. For 2024, the wage base is $168,600. That means wages above $168,600 are not subject to employee Social Security tax for that year. If your covered wages are below the cap, multiply by 0.062. If your covered wages exceed the cap, the maximum employee Social Security tax for 2024 is $10,453.20.
Step 6: Calculate Medicare tax
Medicare tax applies at 1.45% to all covered wages without a wage cap. In addition, high earners may owe Additional Medicare Tax of 0.9% on wages above the applicable threshold. Unlike Social Security, Medicare continues on all covered wages indefinitely.
| Payroll Tax Item | 2024 Employee Rate | Threshold or Wage Base | Key Rule |
|---|---|---|---|
| Social Security | 6.2% | Up to $168,600 | Stops after covered wages exceed the wage base |
| Medicare | 1.45% | No cap | Applies to all covered wages |
| Additional Medicare | 0.9% | Single and HOH over $200,000; MFJ over $250,000; MFS over $125,000 | Applies only to wages above threshold |
So the Medicare formulas are:
- Regular Medicare tax = FICA wages multiplied by 1.45%
- Additional Medicare tax = Wages above threshold multiplied by 0.9%
Putting it all together with a practical example
Assume you earn $85,000 annually, file as single, contribute $5,000 to a traditional 401(k), and have $2,000 in deductions exempt from both federal tax and FICA. First, federal-taxable wages are $85,000 minus $5,000 minus $2,000, or $78,000. Then subtract the 2024 single standard deduction of $14,600 to get $63,400 of taxable income. That taxable income is run through the single brackets to estimate federal income tax.
Now calculate FICA wages. Since 401(k) deferrals generally remain subject to FICA, only the deductions exempt from both federal and FICA are removed for this step. FICA wages become $85,000 minus $2,000, or $83,000. Social Security tax is 6.2% of $83,000, and Medicare tax is 1.45% of $83,000. Because $83,000 is below the Additional Medicare threshold for a single filer, no extra 0.9% tax applies. Add the federal income tax estimate, Social Security tax, and Medicare tax together, then subtract from gross wages to estimate annual take-home pay before any state taxes or after-tax deductions.
Why paycheck withholding may not equal your exact annual tax
It is important to distinguish between tax liability and tax withholding. This calculator estimates annual tax based on straightforward assumptions, but your actual paycheck withholding may differ for several reasons:
- Your employer uses IRS withholding tables and payroll frequencies rather than a simple annualized model.
- Tax credits, dependents, multiple jobs, and spouse income can change final liability.
- Supplemental wages like bonuses may be withheld differently.
- Some benefits affect federal and FICA wages differently.
- State and local income taxes are not included here.
That is why the calculator should be used as a strong planning estimate, not a substitute for a full tax return or payroll system. Still, for budgeting, salary negotiations, and contribution planning, it is extremely useful.
Common mistakes people make
- Confusing marginal and effective tax rates. Your top bracket is not your tax rate on every dollar earned.
- Ignoring the Social Security wage base. High earners often overestimate Social Security tax once wages exceed the cap.
- Forgetting Additional Medicare Tax. This can matter once wages cross the applicable threshold.
- Applying the standard deduction incorrectly. Use the correct filing status and current-year amount.
- Treating all pre-tax deductions the same. Some reduce only federal taxable income, while others reduce both federal and FICA wages.
How to use this calculator effectively
If you are comparing job offers, enter each salary and keep the filing status and deductions constant. If you are planning retirement contributions, increase the federal-income-tax-only deduction to see how a traditional 401(k) affects federal tax and take-home pay. If you are evaluating health plan or HSA payroll elections, adjust the deduction exempt from both federal and FICA to estimate how those benefits may reduce payroll taxes more broadly. You can also change pay periods to estimate a rough per-paycheck net amount.
Authoritative sources for tax rules
For official and educational references, review these high-quality sources:
- IRS.gov for official federal tax guidance, withholding resources, and annual tax updates.
- Social Security Administration wage base information for current Social Security payroll tax limits.
- IRS Topic No. 560 on Additional Medicare Tax for threshold rules and reporting details.
Final takeaway
To calculate federal income tax, Social Security, and Medicare correctly, treat them as three separate systems. Begin with gross wages. Reduce wages by the correct categories of pre-tax deductions. Apply the standard deduction and progressive brackets for federal income tax. Apply the 6.2% Social Security rate only up to the wage base. Apply the 1.45% Medicare rate to all covered wages and add the 0.9% Additional Medicare Tax where required. Once you break the process into these clear steps, payroll taxes become far less intimidating.
The calculator above automates that structure and provides a visual chart showing how your wages are allocated among federal income tax, Social Security, Medicare, and estimated take-home pay. It is a practical way to answer one of the most common payroll questions: how much of my pay actually goes to each tax, and how do deductions change the result?