Skip to content

adjusted_net_income doesn't deduct pension contributions, so the Personal Allowance taper is too large #2797

Closed

Description

@terrorhawks

Version: policyengine-uk 2.134.2

adjusted_net_income stays at total income when a person has employee_pension_contributions (net pay) or personal_pension_contributions, although both reduce taxable income through pension_contributions_relief. So personal_allowance tapers as if there were no pension contribution.

GOV.UK, "Personal Allowances: adjusted net income": adjusted net income is total taxable income less, among others, "pension contributions paid gross (before tax relief)" and "pension contributions where your pension provider has already given you tax relief at the basic rate — take off the 'grossed-up' amount": https://www.gov.uk/guidance/adjusted-net-income

Effect: anyone with income between £100,000 and £125,140 who pays into a pension loses Personal Allowance they're entitled to, up to about £2,500 too much tax a year in our tests.

Reproduce:

from policyengine_uk import Simulation
sit = {"people": {"p": {"age": {2026: 35}, "employment_income": {2026: 125_156},
                        "employee_pension_contributions": {2026: 10_012}}},
       "benunits": {"b": {"members": ["p"]}},
       "households": {"h": {"members": ["p"], "country": {2026: "WALES"}}}}
s = Simulation(situation=sit)
s.calculate("adjusted_net_income", 2026)  # 125,156; expected 115,144
s.calculate("personal_allowance", 2026)   # 0; expected 4,998
s.calculate("income_tax", 2026)           # 38,517.60; expected 36,518.40

By contrast, gift_aid does reduce adjusted net income correctly (and widens the bands, which is also how relief-at-source pension contributions work in law).

Found while comparing an independent UK payroll engine with PolicyEngine UK across a few thousand generated payslips. Thanks for making PolicyEngine available.

Activity

  1. MaxGhenis commented on Nov 3, 2026

    @MaxGhenis
    Collaborator

    Thanks for this one too. We fixed it in #2440 on 16 October and released the fix the same day in policyengine-uk 2.134.8. Since then, adjusted_net_income deducts pension_contributions_relief, the relief on employee and personal pension contributions, as well as grossed-up Gift Aid. You tested 2.134.2.

    We're closing this as fixed. Please reopen it if the latest release still differs from your payroll engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions