How we calculate
Federal income tax withholding
We follow IRS Publication 15-T, Worksheet 1A, for a Form W-4 from 2020 or later.
| Line | What it does |
|---|---|
| 1a to 1c | Taxable wages this period, times the number of pay periods in the year |
| 1d, 1e | Add W-4 Step 4(a) other income |
| 1f to 1h | W-4 Step 4(b) deductions plus $12,900 (married filing jointly) or $8,600 (others); the second amount is zero when the Step 2 box is checked |
| 1i | 1e minus 1h, not below zero: the adjusted annual wage |
| 2a to 2g | Find the row of the annual table: tentative amount plus the row's percentage of the wages above the row's start |
| 2h | Divide by the number of pay periods |
| 3a to 3c | Subtract the W-4 Step 3 amount divided by the number of pay periods, not below zero |
| 4a, 4b | Add W-4 Step 4(c) extra withholding |
Rounding
The calculator works in whole cents with exact arithmetic and rounds federal withholding once, at the end of Step 3, to the nearest cent, half up. Publication 15-T lets employers round wages (to the nearest dollar, or by setting the last digit to zero) and may round the withheld tax to whole dollars, so a real pay stub can differ from this line by about $0.50 or slightly more. Social Security, Medicare and Additional Medicare Tax are each rounded to the cent, half up, on every paycheck.
Pay frequencies and salary
Weekly means 52 paychecks, every two weeks 26, twice a month 24 and monthly 12. An annual salary is split evenly and the last paycheck of the year takes the remainder, so the year adds up to the cent. The single-paycheck result shows the first one. Extra 27th or 53rd pay dates are not modeled.
Social Security and Medicare
Social Security is 6.2% of Social Security wages up to a yearly wage base of $184,500, counting what you enter as already paid this year. Medicare is 1.45% with no wage base. An employer withholds a further 0.9% on Medicare wages above $200,000 in the calendar year, whatever the filing status.
Bonus pay
Flat method: 22% of the bonus, ignoring Form W-4 except an exemption claim, and only if income tax was withheld from regular wages this year or last year. Aggregate method: withholding on regular pay plus bonus, minus withholding on regular pay alone, not below zero. Supplemental wages above $1,000,000 in the year are withheld at 37% on the excess in both methods, even with an exemption claim. Social Security and Medicare apply as usual.
Qualified tips and overtime
Federal law now allows income tax deductions for some qualified tips and qualified overtime pay. Payroll does not apply them by itself and the calculator does not either. A worker who expects the overtime deduction may claim it on W-4 Step 4(b); only the "and-a-half" part of time-and-a-half pay counts and income limits apply. Social Security and Medicare are always computed on full pay.
Hand-worked test cases
These were worked by hand from the 2026 tables. The calculator's tests must reproduce them to the cent.
| Case | Inputs | Working | Result |
|---|---|---|---|
| H1 | Single, every two weeks, $2,500 | 1c 65,000; 1i 56,400; 1,240.00 + 12% x 36,500 = 5,620.00; / 26 | Federal 216.15, Social Security 155.00, Medicare 36.25, net 2,092.60 without state tax |
| H2 | Married jointly, monthly, $8,000, Step 3 $4,000, 401(k) $400 | 1i 78,300; 2,480.00 + 12% x 34,200 = 6,584.00; (6,584 - 4,000) / 12 | Federal 215.33, net 6,772.67 |
| H3 | Head of household, weekly, $1,000, Step 2 checked | 1i 52,000; 3,870.00 + 22% x 6,200 = 5,234.00; / 52 | Federal 100.65, net 822.85 |
| H4 | Single, twice a month, $3,000, 4(a) $2,400, 4(b) $6,000, 4(c) $25 | 1i 59,800; 5,800.00 + 22% x 1,900 = 6,218.00; / 24 = 259.08; + 25 | Federal 284.08, net 2,486.42 |
| H5 | Single, every two weeks, $250 | 1i is zero | Federal 0.00, Medicare 3.625 rounds to 3.63, net 230.87 |
| H6 | Single, $260,000 salary, every two weeks | Social Security stops during paycheck 19; Additional Medicare starts with paycheck 21 | Year: Social Security 11,439.00, Additional Medicare 540.00 |
| H7 | As H6 with the wage base changed to $192,300 (a test of the wage-base cut-off, not a 2026 figure) | 19 full amounts plus 142.60 | Year: Social Security 11,922.60 |
| H8 | Bonus $5,000, flat method; then $20,000 after $990,000 of earlier bonuses | 22% of 5,000; then 22% of 10,000 plus 37% of 10,000 (0 + 3,700 when exempt) | 1,100.00; 5,900.00; 3,700.00 |
| H9 | $20 an hour, 40 regular hours, 5 overtime hours at 1.5 | 800.00 + 150.00 | Gross 950.00 |
A full year, computed by the calculator
| Paycheck | Gross | Federal income tax | Social Security | Medicare | Additional Medicare | Net |
|---|---|---|---|---|---|---|
| 1 | $10,000.00 | $2,096.31 | $620.00 | $145.00 | $0.00 | $7,138.69 |
| 18 | $10,000.00 | $2,096.31 | $620.00 | $145.00 | $0.00 | $7,138.69 |
| 19 | $10,000.00 | $2,096.31 | $279.00 | $145.00 | $0.00 | $7,479.69 |
| 20 | $10,000.00 | $2,096.31 | $0.00 | $145.00 | $0.00 | $7,758.69 |
| 21 | $10,000.00 | $2,096.31 | $0.00 | $145.00 | $90.00 | $7,668.69 |
| 26 | $10,000.00 | $2,096.31 | $0.00 | $145.00 | $90.00 | $7,668.69 |
| Year, all 26 | $260,000.00 | $54,504.06 | $11,439.00 | $3,770.00 | $540.00 | $189,746.94 |
Assumptions
One W-2 job, a Form W-4 from 2020 or later, and a pay date in the tax year shown. Year-to-date fields start at zero unless you fill them in.
Not included
- State income tax and state payroll taxes outside the state calculators
- Form W-4 from 2019 or earlier (withholding allowances) and nonresident alien adjustments
- Tipped-wage and tip-credit rules, self-employment and 1099 income
- Working in more than one state, state daily or weekly overtime rules, and regular-rate blending
- Local (city, county or school district) taxes and wage garnishments
- Employer-side taxes, your annual tax return or a refund estimate
- An extra 27th or 53rd pay date, catch-up contribution logic, and commuter or other pre-tax benefits
- Pre-tax deductions taken from a bonus: here they come out of regular pay only