Expand description
§us-paycheck-tax
2025 US federal income tax (progressive brackets + standard deduction) and FICA (Social Security + Medicare), the core of a paycheck/take-home calculation. Same figures behind the StateWage paycheck calculator.
use us_paycheck_tax::{take_home, FilingStatus};
// $75,000 single: fed tax on (75000-15000) + FICA
let (net, fed, fica) = take_home(75_000.0, FilingStatus::Single);
assert!(net < 75_000.0 && fed > 0.0 && fica > 0.0);Enums§
Constants§
- ADDL_
MEDICARE_ RATE - MEDICARE_
RATE - SS_RATE
- 2025 FICA.
- SS_
WAGE_ BASE - STD_
DEDUCTION_ MARRIED - STD_
DEDUCTION_ SINGLE - 2025 federal standard deductions.
Functions§
- brackets
- 2025 federal brackets as (ceiling, rate); ceiling = f64::INFINITY for the top bracket.
- federal_
income_ tax - Progressive federal income tax on a taxable income (after deductions).
- fica
- FICA: Social Security (capped) + Medicare (+ additional Medicare above threshold).
- standard_
deduction - Standard deduction for the filing status.
- take_
home - Take-home = gross - federal income tax (on taxable) - FICA. Returns (net, federal, fica).