How the Paycheck Calculator Works
One calculation engine produces every number on this site, from the paycheck calculator to the salary tables on each state page. This page writes out what it does so you can check it against a pay stub.
Gross pay
salary: gross a year = salary
hourly: gross a year = (wage x regular hours + 1.5 x wage x overtime hours
+ 2 x wage x double-time hours + other rates x their hours) x 52
both: + (tips + bonus or commission each paycheck) x paychecks a year
one paycheck = gross a year / paychecks a year (52, 26, 24 or 12) Pre-tax deductions
- Traditional 401(k): a percent of gross pay or a dollar amount each paycheck, capped at the $24,500 2026 limit. It lowers federal and most state taxable wages, but not Social Security or Medicare wages. Pennsylvania taxes it.
- Health, dental and vision premiums, FSA contributions, HSA contributions through payroll and pre-tax commuter benefits: they lower federal, Social Security, Medicare and state taxable wages. California and New Jersey tax HSA contributions, New Jersey also taxes health premiums and FSA contributions, and New Jersey and Pennsylvania tax commuter benefits.
- Your own deductions: "before tax, like a 401(k)" is treated as a retirement deferral, "before tax, like health insurance" as a cafeteria plan deduction, and "after tax" changes no tax.
- After-tax deductions such as a Roth 401(k) come out last and do not change any tax.
- No deduction can be larger than what is left of gross pay.
Federal income tax withholding
The calculator uses the annual percentage method for Forms W-4 from 2020 or later, from IRS Publication 15-T (2026), Worksheet 1A.
adjusted wages = federal taxable wages a year + W-4 Step 4(a) - W-4 Step 4(b)
tax = 2026 rate schedule applied to (adjusted wages - standard deduction)
withholding = max(0, tax - W-4 Step 3 credits) / paychecks + W-4 Step 4(c) The IRS tables subtract $8,600 ($12,900 for married filing jointly) on the worksheet and start their brackets at the rest of the standard deduction. Subtracting the full $16,100 standard deduction gives the same result. When the W-4 Step 2 box is checked, the tables use half the brackets and half the standard deduction, and so does the calculator.
Social Security and Medicare
Social Security = 6.2% x min(wages, $184,500)
Medicare = 1.45% x wages + 0.9% x wages over $200,000 Social Security and Medicare wages exclude section 125 premiums and HSA contributions but include 401(k) contributions. Wage base: Social Security Administration.
State income tax
State tax is what your employer withholds, not what you end up owing on your return. Each state publishes a withholding formula for employers, and the calculator follows the 2026 version for every state with a wage income tax: the state's own deductions, allowance values, rate tables and credits, which often differ from the return. North Carolina, for example, withholds at 4.09% though its tax rate is 3.99%, and California's withholding tables run 1.1 times its return rates. Each formula was checked against the worked examples the state prints in its instructions. The difference between withholding and your actual tax is settled when you file, as a refund or a balance due.
The calculator works with the yearly formula and divides it evenly across paychecks, so a real check can differ by a few cents from a state's per-period tables or rounding rules. Washington, D.C. has not published a 2026 withholding formula, so its figures use the return's 2026 deductions and brackets. Each state page links to the state's own source.
State payroll deductions
Disability insurance, paid family leave and similar programs are applied at each state's 2026 employee rate and wage limit: California SDI, New York disability and paid family leave, New Jersey, Rhode Island and Hawaii disability insurance, paid leave in Washington, Massachusetts, Oregon, Colorado, Connecticut, Delaware, Minnesota and Maine, WA Cares, the Oregon transit tax, and employee unemployment tax in Alaska, New Jersey and Pennsylvania.
State withholding forms
Many states have their own version of the W-4, such as California's DE 4 or Illinois' IL-W-4. Unless you enter a different number, the calculator assumes the allowances that match your federal filing status and dependents. Each allowance you add or remove changes state taxable wages by that state's 2026 allowance value, or changes the tax itself in states where allowances are credits (Arkansas, California, Delaware, Iowa and Oregon). Arizona's A-4 is a percent of gross pay, and choosing one replaces the estimate with that percent. Extra state withholding is added to every paycheck.
Local income taxes
The calculator includes 216 city, county and school district taxes. Most are a percent of wages, and some apply only to residents. Ohio city and Pennsylvania earned income taxes apply to wages before 401(k) deferrals, and Kentucky occupational taxes to gross pay. Michigan city taxes follow federal taxable wages less a small exemption per person. Maryland and Indiana county taxes follow state taxable income. New York City uses the brackets in its withholding tables, and Yonkers charges residents a percent of their state tax. Choose "Other" to apply any rate to your wages.
No tax on tips and overtime
For 2025 through 2028, workers can deduct qualified tips, up to $25,000, and the overtime premium, up to $12,500 ($25,000 on a joint return). Each limit drops by $100 for every $1,000 of modified adjusted gross income over $150,000 ($300,000 joint).
overtime premium = 0.5 x hourly wage x (overtime + double-time hours) x 52
tax saved = federal tax on income - federal tax on (income - deduction) The calculator treats every overtime and double-time hour as required by federal overtime law. State-only overtime, such as California's daily overtime, does not qualify. The deduction changes withholding only if you check the box that adds it to W-4 Step 4(b). It never changes Social Security, Medicare or state tax.
Bonuses and gross-up
flat method: federal = 22% x bonus (37% on supplemental pay over $1,000,000 in a year)
aggregate method: federal = withholding on (regular pay + bonus) - withholding on regular pay
gross-up: the smallest bonus whose take-home is at least the amount wanted State tax on a bonus uses the state's flat supplemental rate where it has one, or regular withholding on the combined check where it does not.
Tax exemptions
Each exemption box sets that tax to zero. Use them only when your employer does not withhold the tax at all.
What the calculator assumes
- Pay is the same every paycheck for the whole year.
- You live and work in the same state.
- Tips and bonus or commission entered in the paycheck calculator come with every paycheck and are withheld on like regular wages. For a one-time bonus, use the bonus tax calculator.
- Ohio and Pennsylvania residents who work in another city may get a credit for the work city's tax. The calculator charges the tax for the place you choose and does not combine two cities.
- Results are rounded to the cent for display only.