Modules / ghcr.io / i2y

ritsu-japan-social-insurance

A newer version, 1.0.1, is out

The health insurance and employees' pension premiums of Japan, as rules of rulec, in English and in Japanese

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 1 data source pinned by SHA-256
  • Published 2026-11-05
  • Needs ritsu 0.41.0 or later
  • Source

What it holds

NameWhat it isTry it, or read its code
health_insurance_premiumThe health insurance premium of Kyokai Kenpo (the Japan Health Insurance Association). From the monthly pay it takes the standard monthly remuneration, multiplies by the rate and halves it, and gives the amount deducted from salary and the amount paid in cash
pension_insurance_premiumThe employees' pension insurance premium. From the monthly pay it takes the standard monthly remuneration, multiplies by the rate and halves it, and gives the amount deducted from salary and the amount paid in cash
健康保険料協会けんぽの健康保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す
厚生年金保険料厚生年金保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

The health insurance and employees' pension premiums of Japan, as rules of rulec, for a module of ritsu to use. Each rule is here in English and in Japanese, and the two give the same answers. From the monthly pay, a rule takes the standard monthly remuneration by the grade table, multiplies it by the rate and halves it. It then gives the amount deducted from salary and the amount paid in cash, which round a half of a yen differently.

In EnglishIn JapanesePremiumTable
health_insurance_premium.rule健康保険料.ruleThe health insurance of the Japan Health Insurance Association (Kyokai Kenpo)The association's premium table from March 2026 (paid in April), Tokyo branch
pension_insurance_premium.rule厚生年金保険料.ruleThe employees' pension insuranceThe Japan Pension Service's premium table from September 2020 (paid in October), fiscal 2026 edition, pinned

The rates are inputs. The rate of health insurance changes with the prefecture and the fiscal year, and that of a pension with the fund, so a rule does not hold one: pass the rate that applies. The rules transcribe the tables, to be read against them. They are not legal or tax advice.

Use

Add the module, add the line that checks its signature to your ritsu.mod, and fetch it:

$ ritsu mod add japan_social_insurance ghcr.io/i2y/ritsu-japan-social-insurance@1.0.0
signature "ghcr.io/i2y/ritsu-japan-social-insurance" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

Then read it from your own code of kaname or dandori:

use rule pension from "@japan_social_insurance/pension_insurance_premium.rule"

Sources

THIRD_PARTY_NOTICES.md says where the copy under sources/nenkin/ comes from. The health insurance's rule names its table in a comment, and carries no copy.

The rules are under the MIT License or the Apache License, version 2.0, at your option, as ritsu is.

Versions

A version that follows a change in the law raises the minor version. A version that renames a file or removes one, or changes the inputs or outputs of a rule, raises the major version.

4 rules

Each page is drawn by its language from the file at this version.

health_insurance_premium

health_insurance_premium.rulerule

The health insurance premium of Kyokai Kenpo (the Japan Health Insurance Association). From the monthly pay it takes the standard monthly remuneration, multiplies by the rate and halves it, and gives the amount deducted from salary and the amount paid in cash

Inputs
monthly (0 to 10,000,000 JPY); rate (0 to 2,000 %); care_rate (0 to 500 %); care
Outputs
std (58,000 to 1,390,000 JPY); deduct (0 to 173,750 JPY); cash (0 to 173,750 JPY)

pension_insurance_premium

pension_insurance_premium.rulerule

The employees' pension insurance premium. From the monthly pay it takes the standard monthly remuneration, multiplies by the rate and halves it, and gives the amount deducted from salary and the amount paid in cash

Inputs
monthly (0 to 10,000,000 JPY); rate (0 to 300 %)
Outputs
std (88,000 to 650,000 JPY); deduct (0 to 97,500 JPY); cash (0 to 97,500 JPY)
Source
sources/nenkin/R08ryougaku.xlsx

健康保険料

健康保険料.rulerule

協会けんぽの健康保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

Inputs
報酬月額 (0 to 10,000,000 円); 健康保険料率 (0 to 2,000 %); 介護保険料率 (0 to 500 %); 介護該当
Outputs
標準報酬月額 (58,000 to 1,390,000 円); 給与控除額 (0 to 173,750 円); 現金納付額 (0 to 173,750 円)

厚生年金保険料

厚生年金保険料.rulerule

厚生年金保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

Inputs
報酬月額 (0 to 10,000,000 円); 料率 (0 to 300 %)
Outputs
標準報酬月額 (88,000 to 650,000 円); 給与控除額 (0 to 97,500 円); 現金納付額 (0 to 97,500 円)
Source
sources/nenkin/R08ryougaku.xlsx

Try

1.0.0 is the oldest version here

When a new version is published, this tab says which inputs get a different answer, which days become closed or open, and which days the calendar newly knows.

2 versions

VersionPublishedDigestFilesChecked
1.0.1 latest2026-11-07sha256:4ab1676199de10its digests and its signature; passes ritsu check
1.0.02026-11-05sha256:37b2e68974d610its digests and its signature; passes ritsu check

Rules

Data and other files

About the module