US paycheck / take-home pay
us_paycheckCompute US take-home pay per pay period, including federal withholding, Social Security, Medicare, and state tax for salaried or hourly workers.
Instructions
Computes US take-home pay per pay period: federal withholding, Social Security, Medicare (+ Additional Medicare), state tax, and net pay, for salaried or hourly workers. Example: { payType: "salary", annualSalary: 80000, payFrequency: "biweekly", filingStatus: "single", stateCode: "TX" }. Estimate for guidance — 2026 rates from official sources (IRS/Tax Foundation/CRA/ATO/state revenue offices/HMRC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payType | Yes | Whether pay is a fixed annual salary or an hourly rate. | |
| stateCode | No | Optional two-letter state code to also withhold state tax. Omit to skip. | |
| dependents | No | Number of dependents (informational, not withheld via CTC in this engine). | |
| hourlyRate | No | Hourly rate in USD (used when payType is "hourly"). | |
| annualSalary | No | Annual salary in USD (used when payType is "salary"). | |
| filingStatus | Yes | IRS filing status used for federal withholding. | |
| hoursPerWeek | No | Hours worked per week (used when payType is "hourly", or to derive an hourly-equivalent when salaried). | |
| payFrequency | Yes | Pay period frequency. | |
| preTaxHealth | No | Pre-tax health/HSA (section 125) contribution PER PAY PERIOD (reduces federal/state AND FICA taxable income). | |
| extraWithholding | No | Additional federal withholding requested PER PAY PERIOD (W-4 line 4c). | |
| preTaxRetirement | No | Pre-tax 401(k) contribution PER PAY PERIOD (reduces federal/state taxable income, not FICA). |