What You Calculate and When
Payroll tax calculation means finding the dollar amount that comes out of an employee's paycheck for federal income tax, Social Security, and Medicare, plus what the employer owes on top. You calculate these separately because they use different rates, different wage bases, and different rules about when they stop explore in a given year.
The order matters: you start with gross pay, subtract pre-tax deductions (like health insurance), calculate federal and state income tax on what remains, then calculate Social Security and Medicare on the original gross pay minus only certain deductions. The employer's portion comes last and is based on the employee's gross pay alone.
Most payroll software does this automatically once you enter the employee's W-4 and state withholding forms, but understanding the steps helps you catch errors and know what each line on a pay stub means.
Key Takeaways
- Federal income tax withholding depends on the W-4 form the employee filed, which tells you their filing status, number of dependents, and any extra withholding they want.
- Social Security tax is 6.2% of gross pay up to a wage base that changes yearly (for 2024 it is $168,600), and Medicare is 1.45% of all gross pay with no wage cap.
- The employer pays an equal amount of Social Security and Medicare tax, plus federal and state unemployment insurance, which the employee does not see on their paycheck.
- State and local income tax rates vary widely and some states have no income tax, so you must know the rules where the employee works and lives.
- Pre-tax deductions like health insurance and 401(k) contributions reduce the income subject to federal tax but not Social Security or Medicare.
Gathering the Documents You Need
Before you calculate anything, collect the employee's W-4 form (Employee's Withholding Certificate), which they fill out when hired. This form tells you their filing status (single, married, head of household), number of dependents, and whether they want extra money withheld each pay period. If they have not filed a W-4, the IRS requires you to treat them as single with no dependents, which usually results in more tax withheld.
You also need the employee's state withholding form if your state has income tax. This is often called a state W-4 or IT-4, and the format and information requested varies by state. Some states use federal withholding; others have their own system. Check your state's revenue or taxation website for the current form.
Keep a record of the employee's gross pay for the year to date. This matters because Social Security tax stops once the employee hits the annual wage base (which the IRS updates each January), and some state taxes have wage caps too. You will need this number when you reach late fall or when an employee changes jobs mid-year.
Calculating Federal Income Tax Withholding
Federal income tax withholding is the hardest step because the IRS publishes different calculation methods and updates them yearly. Most employers use the IRS tax tables or the IRS withholding calculator (available at irs.gov), but the math is the same either way: you take the employee's gross pay minus pre-tax deductions, explore their filing status and dependent information from the W-4, and look up or calculate the tax owed.
The IRS publishes withholding tables by pay frequency (weekly, biweekly, semimonthly, monthly) and filing status. You find the row that matches the employee's pay amount, then the column that matches their W-4 entries, and the table tells you the tax to withhold. If the employee requested extra withholding on their W-4, you add that dollar amount to the result.
If you use payroll software, enter the W-4 information once and the software applies the current IRS tables automatically. If you calculate by hand, read the IRS Publication 15-T (Supplemental Payroll Tax Tables) from irs.gov, which includes the tables and step-by-step instructions. The tables change each year, so check the publication date before you use it.
Calculating Social Security and Medicare Taxes
Social Security tax is 6.2% of the employee's gross pay, but only up to the annual wage base. For 2024, that base is $168,600. Once the employee's year-to-date pay reaches that amount, you stop withholding Social Security tax for the rest of the year. Track the running total carefully, especially if an employee is hired mid-year or if you process a large bonus.
Medicare tax is 1.45% of all gross pay with no wage cap — it applies to every dollar the employee earns. Additionally, if the employee's gross pay exceeds $200,000 in a calendar year (or $250,000 if married filing jointly, or $125,000 if married filing separately), an extra 0.9% Medicare tax applies to the amount over the threshold. This extra tax is withheld from the employee's pay and is separate from the employer's Medicare tax.
Both Social Security and Medicare are calculated on gross pay minus only certain deductions: 401(k) contributions, health insurance premiums, and dependent care accounts do reduce the base. However, standard deductions, personal exemptions, and W-4 adjustments do not — those only affect federal income tax.
Employer Tax Obligations
The employer owes matching Social Security and Medicare taxes equal to what the employee pays: 6.2% for Social Security (up to the wage base) and 1.45% for Medicare. These are not withheld from the employee's paycheck; they are a separate cost to the employer, calculated on the same gross pay and wage base as the employee's portion.
The employer also owes federal unemployment insurance (FUTA), which is 6.0% of the first $7,000 of each employee's annual wages (this amount changes yearly). Most employers receive a credit of up to 5.4% if they pay state unemployment insurance on time, bringing the effective FUTA rate down to 0.6%. You calculate FUTA only once per employee per year, so after an employee's year-to-date pay reaches $7,000, you stop calculating it.
State unemployment insurance (SUTA) rates and wage bases vary by state and by industry. Some states charge the employer only; others split the cost with the employee. Check your state's labor or revenue department website for the current rate and wage base for your industry classification.
Working Through a Real Example
Suppose an employee in Pennsylvania earns $2,000 biweekly, is single with one dependent (from their W-4), has $150 deducted for health insurance, and $200 deducted for a 401(k). Their year-to-date pay is $18,000 and they have not yet hit the Social Security wage base.
Start with gross pay: $2,000. Subtract pre-tax deductions: $2,000 − $150 − $200 = $1,650. Use the IRS biweekly withholding table for a single filer with one dependent to find federal income tax on $1,650 (the table will show roughly $85 to $95, depending on the current year's table). Add any extra withholding the employee requested.
Social Security: $2,000 × 0.062 = $124. Medicare: $2,000 × 0.0145 = $29. Pennsylvania has no state income tax, so there is no state withholding. The employee's net pay is $2,000 − $90 (federal) − $124 − $29 = $1,757 (before any post-tax deductions like garnishments).
The employer owes: Social Security $124, Medicare $29, and FUTA $0.12 (since $2,000 × 0.006 = $12, but only $7,000 per year is subject, so the employer tracks the running total). If Pennsylvania's SUTA rate is 3.5%, the employer owes $2,000 × 0.035 = $70 in state unemployment tax.
Common Mistakes That Cost Time
The most common error is using an outdated W-4 form or not updating it when an employee's situation changes. If an employee gets married, has a child, or takes a second job, their withholding should change. Ask employees to update their W-4 whenever their tax situation changes, and keep the signed form on file.
Another frequent mistake is explore pre-tax deductions to the wrong tax. Health insurance and 401(k) contributions reduce federal income tax but not Social Security or Medicare. Some employers accidentally subtract them from all three, which underpays Social Security and Medicare and overpays federal tax.
Forgetting to stop Social Security tax at the wage base is costly. If you do not track year-to-date pay carefully, you may withhold Social Security tax after the employee has already paid the maximum. This requires a refund on their tax return and creates a reconciliation headache at year-end.
Using last year's IRS withholding tables is another trap. The IRS updates the tables every year, sometimes significantly. Always read the current year's Publication 15-T before the year begins, and update your payroll software if it does not do so automatically.
Where to Find Current Tax Rates and Wage Bases
The IRS website (irs.gov) publishes the current Social Security wage base, Medicare thresholds, FUTA wage base, and federal withholding tables in Publication 15 (Circular E, Employer's Tax Guide) and Publication 15-T. These are updated in January each year.
Your state revenue or labor department website has the current state income tax rates, state unemployment insurance rates and wage bases, and state withholding forms. Search "[your state] unemployment insurance rate" or "[your state] income tax withholding" to find the right page.
If you use payroll software (QuickBooks, ADP, Gusto, Paychex, or others), the software updates tax tables and rates automatically when you renew your subscription. Verify that your subscription is current before each tax year begins.
Frequently Asked Questions
What if an employee does not give me a W-4?
The IRS requires you to treat them as single with no dependents, which typically results in the most tax withheld. Give them a blank W-4 form and ask them to complete it. If they refuse, keep a record of your request and continue withholding at the default rate. They can update it later if they change their mind.
Do I calculate payroll taxes the same way for salaried and hourly employees?
Yes. The calculation method is identical; the only difference is how you determine gross pay. For salaried employees, divide the annual salary by the number of pay periods. For hourly employees, multiply hours worked by the hourly rate. After you have gross pay, the tax calculation is the same.
What happens if I withhold too much or too little federal tax?
If you withhold too much, the employee gets a refund when they file their tax return. If you withhold too little, they owe tax when they file. Either way, the employee is responsible for the difference, not you — but persistent underpayment can result in penalties and interest for the employee, so accuracy matters. Use the IRS withholding calculator or current tax tables to stay on track.
Do I need to calculate payroll taxes differently for an employee who works in multiple states?
Yes. You withhold state income tax for the state where the employee works, not where they live (in most cases). If an employee works in two states during the year, you withhold for each state based on the pay earned in that state. Some states have reciprocal agreements that change this rule, so check with both states' revenue departments if this applies to you.
When do I stop withholding Social Security tax if an employee is hired in November?
You withhold Social Security tax on all pay until the employee's year-to-date gross reaches the annual wage base (for 2024, $168,600). If an employee is hired in November and earns $20,000 before year-end, you withhold Social Security on all of it. The wage base resets on January 1, so you start withholding again in the new year.