規則 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
試してみる
入力を入れると、当てはまった行に色が付き、結果が出ます。動くのは生成コードそのもので、ログに書かれる一行もそのまま出ます。
入力
| 名前 | 型 | 範囲 | 注記 |
|---|---|---|---|
| taxable | money[JPY] | 1000JPY 〜 10_000_000_000JPY | The amount after dropping the fraction below 1,000 yen. The table starts at 1,000 yen |
出力
| 名前 | 型 | 丸め | 注記 |
|---|---|---|---|
| tax | money[JPY] | down(1JPY)(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)(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 |
導出と定義
表の列に置ける中間の値です。式はもとの規則のとおりで、範囲は宣言されたものです。
| 名前 | 種類 | 式 | 範囲 | 注記 |
|---|---|---|---|---|
| tax | 定義 | taxable * rate - deduction | ||
| surtax | 定義 | tax * 2.1% | Source: the same page, "2.1 percent of the base income tax amount" |
表 brackets(policy unique)
Source: National Tax Agency, Tax Answer No. 2260, Income tax rates (laws and regulations as of 1 April 2026)
| 列 | 出どころ |
|---|---|
| taxable | 入力 |
| → rate | (この表の中だけ) |
| → deduction | (この表の中だけ) |
| # | taxable | → rate(rate) | → deduction(money[JPY]) |
|---|---|---|---|
| 1 | <1_950_000JPY(1_950_000JPY未満) | 5% | 0JPY |
| 2 | >=1_950_000JPY <3_300_000JPY(1_950_000JPY以上 3_300_000JPY未満) | 10% | 97_500JPY |
| 3 | >=3_300_000JPY <6_950_000JPY(3_300_000JPY以上 6_950_000JPY未満) | 20% | 427_500JPY |
| 4 | >=6_950_000JPY <9_000_000JPY(6_950_000JPY以上 9_000_000JPY未満) | 23% | 636_000JPY |
| 5 | >=9_000_000JPY <18_000_000JPY(9_000_000JPY以上 18_000_000JPY未満) | 33% | 1_536_000JPY |
| 6 | >=18_000_000JPY <40_000_000JPY(18_000_000JPY以上 40_000_000JPY未満) | 40% | 2_796_000JPY |
| 7 | >=40_000_000JPY(40_000_000JPY以上) | 45% | 4_796_000JPY |
rulec check が確かめたこと
- どの入力の組合せも、いずれかの行に当てはまります(E101 完全性)
- どの入力にも当てはまらない行はありません(E102)
- 二つ以上の行に同時に当てはまる入力はありません(E105 重なり)。行の並べ替えは意味を変えません
例(検証済み)
| taxable | → tax | surtax | 注記 |
|---|---|---|---|
| 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 |
この 3 件は rulec check が参照評価器で実行し、すべて宣言どおりの値になりました(E107)。例は実行される仕様です。