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
| 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 | <=1192500USDc (1192500USDc or less) | 0USDc | 10% | 0USDc | |
| 2 | >1192500USDc <=4847500USDc (more than 1192500USDc and 4847500USDc or less) | 119250USDc | 12% | 1192500USDc | Source: irs table1 |
| 3 | >4847500USDc <=10335000USDc (more than 4847500USDc and 10335000USDc or less) | 557850USDc | 22% | 4847500USDc | Source: irs table1 |
| 4 | >10335000USDc <=19730000USDc (more than 10335000USDc and 19730000USDc or less) | 1765100USDc | 24% | 10335000USDc | Source: irs table1 |
| 5 | >19730000USDc <=25052500USDc (more than 19730000USDc and 25052500USDc or less) | 4019900USDc | 32% | 19730000USDc | Source: irs table1 |
| 6 | >25052500USDc <=62635000USDc (more than 25052500USDc and 62635000USDc or less) | 5723100USDc | 35% | 25052500USDc | Source: irs table1 |
| 7 | >62635000USDc (more than 62635000USDc) | 18876975USDc | 37% | 62635000USDc | 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 |
| 1192500USDc | 119250USDc | the top of the first bracket, which is the second one's base |
| 5000000USDc | 591400USDc | $50,000: $5,578.50 + 22% of $1,525 |
| 100000000USDc | 32702025USDc | $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.