uk-paye 0.1.2

2025/26 UK income tax (England/Wales/NI) bands, personal allowance taper, and National Insurance.
Documentation
  • Coverage
  • 38.46%
    5 out of 13 items documented1 out of 5 items with examples
  • Size
  • Source code size: 7.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 165.64 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • theluckystrike

uk-paye

2025/26 UK income tax (England, Wales, Northern Ireland) and National Insurance (Class 1 employee) — the core of a take-home calculation. Pure Rust, no deps.

Same figures behind the UKMoneyCalc calculator suite.

use uk_paye::take_home;
let (net, tax, ni) = take_home(50_000.0); // GBP gross

Figures: personal allowance £12,570 (tapered above £100,000), basic 20% to £50,270, higher 40% to £125,140, additional 45% above. NI 8% between £12,570 and £50,270, 2% above. Scotland and pre-tax deductions (pension, student loan) are out of scope here.

The £100,000 to £125,140 taper, not the 40% headline rate, is what makes the next pound inside that window the most expensive one a UK employee earns. UKMoneyCalc publishes the band-by-band scan of the effective marginal rate those same frozen thresholds produce, income by income, on its marginal tax rate calculator — useful for sanity-checking income_tax and national_insurance against a second implementation before trusting either.

License: MIT