入っているもの
日本の所得税と印紙税を、ritsu のモジュールが使える rulec の規則にしたものです。どの規則にも英語の版と日本語の版があり、二つの答えは同じです。
規則は出典を転記したもので、原文と見比べて読むためのものです。税の助言ではありません。令和 8 年度の税制改正で、所得税の上乗せの内訳は 2027 年分から変わります。規則が読んでいるのは、令和 8 年 4 月 1 日時点のページです。
使い方
モジュールを依存に足し、署名を確かめる行を ritsu.mod に書いて、取ってきます。
$ ritsu mod add japan_tax ghcr.io/i2y/ritsu-japan-tax@1.0.1
signature "ghcr.io/i2y/ritsu-japan-tax" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch
あとは、自分の kaname や dandori のコードから読みます。
use rule 印紙税 from "@japan_tax/印紙税.rule"
出典
rulec source outdated <ファイル> で、印紙税の規則が固定している条がその後に改正されたかを e-Gov に問い合わせられます。sources/law/ のコピーの一覧は THIRD_PARTY_NOTICES.md にあります。タックスアンサーを読む規則は、そのページの名前をコメントに書いていて、コピーは持ちません。
規則のファイルは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。
版
法令の変更に合わせる版は、マイナーの版を上げます。ファイルの名前を変える版、ファイルを消す版、規則の入力や出力を変える版は、メジャーの版を上げます。 この README の言葉だけを直す版は、パッチの版を上げます。
規則 6 本
ページは、この版のファイルからそれぞれの言語が描きました。
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 (1,000〜10,000,000,000 JPY)
- 出力
- tax (-4795950〜4,500,000,000 JPY); surtax (-100714〜94,500,000 JPY)
試すコードを読む
The stamp duty on a contract for the transfer of real estate (a Class 1 document). The table of the reduced rate, in force until 31 March 2027, takes precedence over the table of the main rule
- 入力
- amount (0〜1,000,000,000,000 JPY); stated; made (16,161〜22,279)
- 出力
- tax (0〜600,000 JPY)
- 出典
- 342AC0000000023(2026-04-01 時点)
- 出典
- 332AC0000000026(2026-04-01 時点)
試すコードを読む
The stamp duty on a receipt for money or securities received for the price of goods sold (a Class 17, item 1 document). Receipts under 50,000 yen and those not related to business are exempt
- 入力
- amount (0〜1,000,000,000,000 JPY); stated; business
- 出力
- tax (0〜200,000 JPY)
試すコードを読む
不動産の譲渡に関する契約書(第1号文書)の印紙税額。本則の表に、令和9年3月31日までの軽減税率の表が優先する
- 入力
- 契約金額 (0〜1,000,000,000,000 円); 金額の記載あり; 作成日 (16,161〜22,279)
- 出力
- 印紙税額 (0〜600,000 円)
- 出典
- 342AC0000000023(2026-04-01 時点)
- 出典
- 332AC0000000026(2026-04-01 時点)
試すコードを読む
所得税の速算表。課税される所得金額に税率を掛けて控除額を引き、復興特別所得税を上乗せする
- 入力
- 課税所得 (1,000〜10,000,000,000 円)
- 出力
- 所得税 (-4795950〜4,500,000,000 円); 復興特別所得税 (-100714〜94,500,000 円)
試すコードを読む
売上代金に係る金銭又は有価証券の受取書(第17号の1文書)の印紙税額。5万円未満と、営業に関しないものは非課税
- 入力
- 受取金額 (0〜1,000,000,000,000 円); 金額の記載あり; 営業に関する
- 出力
- 印紙税額 (0〜200,000 円)
試すコードを読む