Method Deck / tax

US federal income tax, by tax year

Computes US federal income tax owed on taxable income using the published IRS tax rate table for a chosen tax year and filing status.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.
Disclaimer: General federal tax formula only, using the officially published IRS brackets for the chosen tax year. Not tax advice. State tax, credits, alternative minimum tax, and other adjustments are not included. Consult a licensed tax professional or the IRS for your actual return.

Try it

Inputs

Outputs

Steps

  1. The visitor supplies tax_year (which published IRS bracket table to use) plus tax_year_source and tax_year_date, the citation for that table; this method never looks up or fetches a table itself.
  2. Select the bracket table for tax_year and filing_status.
  3. Find the bracket row where taxable_income falls between the row's lower and upper bounds. Boundaries are inclusive of the upper bound: income exactly at a bracket's upper threshold is taxed in that (lower) bracket, matching the IRS table's 'not over' wording; the next bracket applies only to income strictly greater than the threshold.
  4. tax_owed = the row's base amount plus its marginal rate times (taxable_income minus the row's lower bound).
  5. Round tax_owed to 2 decimals (money to cents).

Constants

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"filing_status":"single","taxable_income":75000,"tax_year":"2026","tax_year_source":"IRS Rev. Proc. 2025-32, Section 4.01","tax_year_date":"2026-09-30"}$11,212.00
test vector: married filing jointly top bracket{"filing_status":"married_filing_jointly","taxable_income":900000,"tax_year":"2026","tax_year_source":"IRS Rev. Proc. 2025-32, Section 4.01","tax_year_date":"2026-09-30"}$255,164.50
test vector: single filer exactly at a bracket boundary{"filing_status":"single","taxable_income":50400,"tax_year":"2026","tax_year_source":"IRS Rev. Proc. 2025-32, Section 4.01","tax_year_date":"2026-09-30"}$5,800.00

Published card