Rule us_income_tax_2025 v1

The 2025 federal income tax of an unmarried individual, transcribed from the IRS rate table

Try a case

Enter the inputs: the rows that match light up and the outputs appear. What runs is the generated code itself, and the line it would write to a log is shown as it is.


Inputs

NameTypeRangeNotes
taxablemoney[USDc]0USDc to 100_000_000_000USDcup to a billion dollars, in cents

Outputs

NameTypeRoundingNotes
taxmoney[USDc]down(1USDc) (rounded down to 1USDc)

Derived Values and Definitions

Intermediate values that can be placed in a table column. The expressions are as written in the source file, and the ranges are the declared ones.

NameKindExpressionRangeNotes
excessDefinitiontaxable − floor
taxDefinitionbase + excess × rate

Table brackets (policy unique)

ColumnSource
taxableInput
→ base(this table only)
→ rate(this table only)
→ floor(this table only)
#taxable→ base (money[USDc])→ rate (rate)→ floor (money[USDc])Notes
1<=1192500USDc (1192500USDc or less)0USDc10%0USDc
2>1192500USDc <=4847500USDc (more than 1192500USDc and 4847500USDc or less)119250USDc12%1192500USDcSource: irs table1
3>4847500USDc <=10335000USDc (more than 4847500USDc and 10335000USDc or less)557850USDc22%4847500USDcSource: irs table1
4>10335000USDc <=19730000USDc (more than 10335000USDc and 19730000USDc or less)1765100USDc24%10335000USDcSource: irs table1
5>19730000USDc <=25052500USDc (more than 19730000USDc and 25052500USDc or less)4019900USDc32%19730000USDcSource: irs table1
6>25052500USDc <=62635000USDc (more than 25052500USDc and 62635000USDc or less)5723100USDc35%25052500USDcSource: irs table1
7>62635000USDc (more than 62635000USDc)18876975USDc37%62635000USDcSource: irs table1

What rulec check verified

Examples (verified)

taxable→ taxNotes
1000000USDc100000USDc$10,000, all of it in the first bracket
1192500USDc119250USDcthe top of the first bracket, which is the second one's base
5000000USDc591400USDc$50,000: $5,578.50 + 22% of $1,525
100000000USDc32702025USDc$1,000,000: $188,769.75 + 37% of $373,650

rulec check ran these 4 examples through the reference evaluator, and every one produced the declared values (E107). The examples are an executable specification.