Rule japan_income_tax v1
The quick-calculation table of income tax. It multiplies the taxable income by the rate, subtracts the deduction, and adds the special income tax for reconstruction
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[JPY] | 1000JPY to 10_000_000_000JPY | The amount after dropping the fraction below 1,000 yen. The table starts at 1,000 yen |
Outputs
| Name | Type | Rounding | Notes |
|---|---|---|---|
| tax | money[JPY] | down(1JPY) (rounded down to 1JPY) | Taxable income is in units of 1,000 yen and the rates are whole percents, so no fraction arises |
| surtax | money[JPY] | down(1JPY) (rounded down to 1JPY) | 2.1% of the base income tax amount. The page says nothing about a fraction below one yen, so round down is a placeholder |
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 |
|---|---|---|---|---|
| tax | Definition | taxable * rate - deduction | ||
| surtax | Definition | tax * 2.1% | Source: the same page, "2.1 percent of the base income tax amount" |
Table brackets (policy unique)
Source: National Tax Agency, Tax Answer No. 2260, Income tax rates (laws and regulations as of 1 April 2026)
| Column | Source |
|---|---|
| taxable | Input |
| → rate | (this table only) |
| → deduction | (this table only) |
| # | taxable | → rate (rate) | → deduction (money[JPY]) |
|---|---|---|---|
| 1 | <1_950_000JPY (less than 1_950_000JPY) | 5% | 0JPY |
| 2 | >=1_950_000JPY <3_300_000JPY (1_950_000JPY or more and less than 3_300_000JPY) | 10% | 97_500JPY |
| 3 | >=3_300_000JPY <6_950_000JPY (3_300_000JPY or more and less than 6_950_000JPY) | 20% | 427_500JPY |
| 4 | >=6_950_000JPY <9_000_000JPY (6_950_000JPY or more and less than 9_000_000JPY) | 23% | 636_000JPY |
| 5 | >=9_000_000JPY <18_000_000JPY (9_000_000JPY or more and less than 18_000_000JPY) | 33% | 1_536_000JPY |
| 6 | >=18_000_000JPY <40_000_000JPY (18_000_000JPY or more and less than 40_000_000JPY) | 40% | 2_796_000JPY |
| 7 | >=40_000_000JPY (40_000_000JPY or more) | 45% | 4_796_000JPY |
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 | surtax | Notes |
|---|---|---|---|
| 7_000_000JPY | 974_000JPY | 20_454JPY | The same page's worked example: 7,000,000 yen * 0.23 - 636,000 yen = 974,000 yen |
| 1_949_000JPY | 97_450JPY | 2046JPY | The top of the 5% band. 2,046.45 yen, rounded down (a placeholder) |
| 1_950_000JPY | 97_500JPY | 2047JPY | The bottom of the 10% band. Thanks to the deduction it differs from the row above by only 50 yen |
rulec check ran these 3 examples through the reference evaluator, and every one produced the declared values (E107). The examples are an executable specification.