Modules / ghcr.io / i2y

ritsu-uk-rates

A newer version, 1.0.1, is out

Income Tax, Stamp Duty Land Tax and the minimum wage of the United Kingdom, as rules of rulec

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 3 data sources 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
uk_income_taxThe UK Personal Allowance and the Income Tax band an income falls in, for England, Wales and Northern Ireland. Transcribed from GOV.UK
uk_minimum_wageThe UK hourly minimum wage from 1 April 2026, transcribed from GOV.UK
uk_stamp_dutyThe SDLT rate band a residential purchase falls in, and the surcharge on a second home. Transcribed from GOV.UK

Income Tax, Stamp Duty Land Tax and the minimum wage of the United Kingdom, as rules of rulec, for a module of ritsu to use. Each rule reads a page of GOV.UK, kept beside it and pinned by its SHA-256.

FileRuleWhat it answersAs of
uk_income_tax.ruleuk_income_taxThe Personal Allowance, and the Income Tax band an income falls in, for England, Wales and Northern IrelandThe tax year 6 April 2026 to 5 April 2027
uk_stamp_duty.ruleuk_stamp_dutyThe SDLT rate band of a residential purchase in England or Northern Ireland, with the relief for first-time buyers and the surcharge on a second homeThe page on 21 September 2026
uk_minimum_wage.ruleuk_minimum_wageThe hourly minimum wage by age, and the rate of an apprenticeFrom 1 April 2026

The rules transcribe the pages, to be read against them. They are not tax or legal advice. The first gives the band an income falls in and not the tax, and the second the band a price falls in and not the duty, as the tax is worked out slice by slice and the pages tabulate no total.

Use

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

$ ritsu mod add uk_rates ghcr.io/i2y/ritsu-uk-rates@1.0.0
signature "ghcr.io/i2y/ritsu-uk-rates" 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 income_tax from "@uk_rates/uk_income_tax.rule"

Sources

THIRD_PARTY_NOTICES.md lists the copies under sources/, taken on 21 September 2026. Contains public sector information licensed under the Open Government Licence v3.0.

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.

3 rules

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

uk_income_tax

uk_income_tax.rulerule

The UK Personal Allowance and the Income Tax band an income falls in, for England, Wales and Northern Ireland. Transcribed from GOV.UK

Inputs
income (0 to 10,000,000 GBP)
Outputs
allowance (-4937430 to 62,570 GBP); in_band (personal_allowance, basic, higher, additional); rate (0 to 45 %)
Source
sources/uk-income-tax.md

uk_minimum_wage

uk_minimum_wage.rulerule

The UK hourly minimum wage from 1 April 2026, transcribed from GOV.UK

Inputs
age (16 to 70); apprentice; first_year
Outputs
hourly (800 to 1,271 GBPc)
Source
sources/uk-nmw.md

uk_stamp_duty

uk_stamp_duty.rulerule

The SDLT rate band a residential purchase falls in, and the surcharge on a second home. Transcribed from GOV.UK

Inputs
price (0 to 20,000,000 GBP); first_time; additional
Outputs
band (0 to 12 %); surcharge (0 to 5 %)
Source
sources/uk-sdlt.md

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:546f38d9de1f14its digests and its signature; passes ritsu check
1.0.02026-11-05sha256:add9eabf045a14its digests and its signature; passes ritsu check

Rules

Data and other files

About the module