Paycheck calculator: take-home pay
calculate_take_home_payCalculates take-home (net) pay for a US employee in any of the 50 states or DC for tax year 2025 or 2026: federal income tax from the IRS Rev. Proc. 2024-40 / 2025-32 bracket tables with the One Big Beautiful Bill Act standard deduction ($15,750 single for 2025, $16,100 for 2026), Social Security with the wage base ($176,100 in 2025, $184,500 in 2026), Medicare plus the 0.9% Additional Medicare tax, and state income tax. State tax is exact from each state's 2026 schedule for CA, NY, NJ, IL, PA, GA, NC; other states return a labeled effective-rate estimate (method: "estimate"). Handles pre-tax 401(k) (not FICA-exempt) and payroll HSA (FICA-exempt), and Pennsylvania/New Jersey rules that tax 401(k) or HSA money. Returns per-period and annual figures. Local taxes (NYC etc.) are out of scope. Figures copied from irs.gov and state revenue sites in Oct 2026.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | US state or DC: two-letter code (CA), name (California) or slug (new-york). | |
| tax_year | Yes | Tax year: 2025 or 2026. | |
| hsa_annual | No | HSA contribution through payroll (cafeteria plan) for the year in USD. Lowers income tax, Social Security and Medicare. | |
| gross_annual | No | Gross annual pay in USD before any deduction. Give this OR gross_per_period. | |
| filing_status | Yes | Federal filing status. Qualifying surviving spouse uses married_filing_jointly. | |
| pay_frequency | No | Pay frequency: weekly (52), biweekly (26, default), semimonthly (24), monthly (12), quarterly (4) or annual (1). | |
| gross_per_period | No | Gross pay for one pay period in USD. Multiplied by the periods in pay_frequency. | |
| pretax_401k_annual | No | Traditional (pre-tax) 401(k) deferral for the year in USD. Lowers income tax, not FICA. Leave out for Roth. | |
| pretax_401k_percent | No | Traditional 401(k) deferral as a percent of gross (e.g. 6). Use instead of pretax_401k_annual. |