| state | Yes | Two-letter postal code of the state where the employee works and lives: all 50 states and DC (for example CA, NY, TX, DC). | |
| pay_type | No | Whether the employee is paid a yearly salary or an hourly wage. Default salary. | salary |
| local_tax | No | Id of a city or county income tax to include (for example 'nyc' or 'yonkers' for New York). Leave out for none; an unknown id returns the ids that state accepts. | |
| filing_status | No | Filing status on the federal Form W-4, step 1(c): single (or married filing separately), married (filing jointly) or head (head of household). Default single. | single |
| pay_frequency | No | How often the employee is paid: weekly (52 paychecks a year), biweekly (26), semimonthly (24, twice a month) or monthly (12). Default biweekly. | biweekly |
| hourly_rate_usd | No | Hourly wage in US dollars. Required when pay_type is hourly. For example 25. | |
| state_allowances | No | Allowances or exemptions on the state's own withholding form, for states that have one. Leave out to use the typical single worker's number for that state. | |
| annual_salary_usd | No | Yearly gross salary in US dollars. Required when pay_type is salary. For example 60000. | |
| w4_step2_checkbox | No | The 'multiple jobs or spouse works' box in Form W-4 step 2(c). Default false. | |
| w4_other_dependents | No | Other dependents for Form W-4 step 3 (a $500 credit each). Default 0. | |
| hsa_usd_per_paycheck | No | Pre-tax HSA contribution through payroll per paycheck, in US dollars (capped at the 2026 family limit). Default 0. | |
| w4_children_under_17 | No | Qualifying children under 17 for Form W-4 step 3 (a $2,200 credit each in 2026). Default 0. | |
| regular_hours_per_week | No | Regular (straight-time) hours per week, hourly pay only. Default 40. | |
| overtime_hours_per_week | No | Overtime hours per week paid at time and a half, hourly pay only. Default 0. | |
| traditional_401k_percent | No | Pre-tax 401(k) contribution as a percentage of gross pay, 0 to 100 (capped at the 2026 IRS limit). Default 0. | |
| w4_deductions_usd_per_year | No | Deductions above the standard deduction, Form W-4 step 4(b), in US dollars per year. Default 0. | |
| w4_other_income_usd_per_year | No | Other income not from jobs, Form W-4 step 4(a), in US dollars per year. Default 0. | |
| health_premiums_usd_per_paycheck | No | Pre-tax health, dental and vision premiums per paycheck, in US dollars. Default 0. | |
| w4_extra_withholding_usd_per_paycheck | No | Extra federal withholding per paycheck, Form W-4 step 4(c), in US dollars. Default 0. | |