Rule us_income_tax_2026 v1
The 2026 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
| Name | Type | Range | Notes |
| taxable | money[USDc] | 0USDc to 100_000_000_000USDc | up to a billion dollars, in cents |
Outputs
| Name | Type | Rounding | Notes |
| tax | money[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.
| Name | Kind | Expression | Range | Notes |
| excess | Definition | taxable − floor | | |
| tax | Definition | base + excess × rate | | |
Table brackets (policy unique)
| Column | Source |
| taxable | Input |
| → base | (this table only) |
| → rate | (this table only) |
| → floor | (this table only) |
| # | taxable | → base (money[USDc]) | → rate (rate) | → floor (money[USDc]) | Notes |
| 1 | <=1240000USDc (1240000USDc or less) | 0USDc | 10% | 0USDc | |
| 2 | >1240000USDc <=5040000USDc (more than 1240000USDc and 5040000USDc or less) | 124000USDc | 12% | 1240000USDc | Source: irs table1 |
| 3 | >5040000USDc <=10570000USDc (more than 5040000USDc and 10570000USDc or less) | 580000USDc | 22% | 5040000USDc | Source: irs table1 |
| 4 | >10570000USDc <=20177500USDc (more than 10570000USDc and 20177500USDc or less) | 1796600USDc | 24% | 10570000USDc | Source: irs table1 |
| 5 | >20177500USDc <=25622500USDc (more than 20177500USDc and 25622500USDc or less) | 4102400USDc | 32% | 20177500USDc | Source: irs table1 |
| 6 | >25622500USDc <=64060000USDc (more than 25622500USDc and 64060000USDc or less) | 5844800USDc | 35% | 25622500USDc | Source: irs table1 |
| 7 | >64060000USDc (more than 64060000USDc) | 19297925USDc | 37% | 64060000USDc | Source: irs table1 |
What rulec check verified
- Every combination of inputs matches some row (E101 completeness)
- There is no row that can never match (E102 unreachable row)
- No input matches two or more rows at once (E105 overlap). Reordering the rows does not change the meaning
Examples (verified)
| taxable | → tax | Notes |
| 1000000USDc | 100000USDc | $10,000, all of it in the first bracket |
| 1240000USDc | 124000USDc | the top of the first bracket, which is the second one's base |
| 6000000USDc | 791200USDc | $60,000: $5,800 + 22% of $9,600 |
| 100000000USDc | 32595725USDc | $1,000,000: $192,979.25 + 37% of $359,400 |
rulec check ran these 4 examples through the reference evaluator, and every one produced the declared values (E107). The examples are an executable specification.