Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/state-pension-weekly-rate-rounding.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Round projected State Pension weekly rates as each Up-rating Order does. Each April the model now raises the previous year's full new State Pension and basic State Pension rates by the triple lock and rounds them to the nearest 5p (`gov.dwp.state_pension.weekly_rate_rounding`). It used to multiply the last published rate by the index's growth and leave the product unrounded. On the October 2026 forecast the full new State Pension becomes £250.70, £259.20 and £265.70 a week in 2027-28 to 2029-30 (from £250.71, £259.24 and £265.72). The Pension Tax Allowance threshold, 52 weeks of that rate, moves to £13,036.40 in 2027-28, the figure in HM Treasury's explainer, and in 2028-29 the full allowance falls from £183 to £182. The model no longer rounds the triple lock index to five decimal places.
12 changes: 10 additions & 2 deletions docs/book/programs/gov/dwp/state-pension.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,17 @@ eligibility from `is_SP_age` or the individual threshold from `state_pension_age
State Pension flat-rate parameters live in
`gov/dwp/state_pension/basic_state_pension/amount.yaml` and
`gov/dwp/state_pension/new_state_pension/amount.yaml`. Published rates run
to 2026-27; later years are uprated by
to 2026-27. Each later April, `create_rate_projection.py` raises the
previous year's rate by that year's growth in
`gov.economic_assumptions.indices.triple_lock`, built from the yearly rates
in `gov.economic_assumptions.yoy_growth.triple_lock`.
in `gov.economic_assumptions.yoy_growth.triple_lock`, and rounds the result
to the nearest 5p (`gov.dwp.state_pension.weekly_rate_rounding`). The
Up-rating Orders round the full rates the same way
([Explanatory Memorandum to SI 2020/234](https://www.legislation.gov.uk/uksi/2020/234/pdfs/uksiem_20200234_en.pdf),
paragraph 7.17), and the previous published rate, uprated and rounded to
the nearest 5p, gives every published basic rate from April 2011 and every
full new rate from April 2017
(`policyengine_uk/tests/test_triple_lock_outturn.py`).

The part of a reported State Pension above the full rate is uprated by
`gov.economic_assumptions.indices.september_cpi_uprating` instead (see
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ metadata:
unit: currency-GBP
label: Basic State Pension amount
uprating: gov.economic_assumptions.indices.triple_lock
documentation: Projected weekly State Pension rates are not rounded to 5p; SSAA 1992 s.150A(4) permits discretionary rounding up or down (https://www.legislation.gov.uk/ukpga/1992/5/section/150A/4).
documentation: Years after the last published rate are projected each April from the previous year's rate by the triple lock and rounded to the nearest 5p (gov.dwp.state_pension.weekly_rate_rounding), as each Up-rating Order rounds them under Social Security Administration Act 1992 s.150A(4).
reference:
- title: House of Commons Library
href: https://researchbriefings.files.parliament.uk/documents/SN05649/SN05649.pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
"""Project the State Pension weekly rates year by year, rounded as DWP rounds.

Each April's Up-rating Order raises the full rate of the new State Pension and
the basic State Pension from the previous year's published weekly rate and
rounds the result. Social Security Administration Act 1992 s.150A(4) leaves
the rounding to the Secretary of State ("up or down to such extent as he
thinks appropriate"). DWP applies the review's percentage "to the current
full weekly rates of the basic and new State Pensions. The resulting amounts
are rounded to the nearest 5p" (written answer HL10770, 20 October 2025), and
HM Treasury's forecast baseline projects both rates "rounded to the nearest
5p" (Budget 2026 policy costings, Annex A). The previous year's rate,
uprated and rounded to the nearest 5p, gives every published basic rate from
April 2011 and every full new rate from April 2017
(``tests/test_triple_lock_outturn.py``). Rounding always up or always down to
5p, or to the nearest 10p, misses at least five of those years each.

A partial award rises by the same percentage as the rounded full rate
(HL10770: the rounding "results in a percentage rate which is applied to
each individual's existing pension payment"), which is what
``new_state_pension`` and ``basic_state_pension`` already pay: a share of
the full rate.

General uprating would instead multiply the last stated rate by its index's
growth since then, unrounded: £250.711 for April 2027, where HM Treasury's
Pension Tax Allowance explainer gives the full new State Pension for 2027-28
as £13,036.40, 52 weeks at £250.70. Rounding that path would not be enough,
because the Order rounds each year from the last published, already rounded,
rate: £250.70 x 1.034 = £259.2238 gives £259.20 for April 2028, where the
unrounded path, £259.2357, would round to £259.25.

So for each rate this step fills the years after its last stated value,
through the last year of its uprating index, with the previous year's rate
times the index's growth over the year, to the nearest multiple of
``gov.dwp.state_pension.weekly_rate_rounding``. No published rate has
landed exactly on a half, so the sources do not say which way a half goes;
this step rounds halves up. Each value applies from 1 January, as
uprating's do, so the April uprating sets the fiscal year,
and general uprating then has no year left to fill. The growth comes from
the index named in the rate's ``uprating`` metadata, so a reform to the
triple lock rate, its inputs or the index moves the projection. The product
is taken to 0.0001p before rounding, which drops float noise without moving
a value the inputs state exactly (a rate on the 5p grid times a rise in
tenths of a percentage point has at most five decimal places).

Runs as a generation step, after the economic assumption indices: the
baseline copy, prior law's projected path for dated reforms and the
fiscal-year annualisation all see the rounded rates.
"""

from decimal import ROUND_HALF_UP, Decimal
from typing import Optional

from policyengine_core.parameters import Parameter, ParameterNode
from policyengine_core.parameters.parameter_at_instant import ParameterAtInstant

from policyengine_uk.parameters.gov.dwp.state_pension.triple_lock.create_triple_lock import (
uprating_instant,
)

PROJECTED_RATES = ("new_state_pension", "basic_state_pension")
# Drops float noise in the uprated amount (well under 1e-9 of a pound) and
# keeps every digit an exact product of the inputs has.
PRODUCT_PRECISION = Decimal("0.000001")


def _decimal(value: float) -> Decimal:
return Decimal(repr(float(value)))


def round_weekly_rate(amount: Decimal, unit: Optional[float]) -> float:
"""``amount`` to the nearest multiple of ``unit``, halves up.

A zero or missing unit leaves the amount unrounded.
"""
amount = amount.quantize(PRODUCT_PRECISION, ROUND_HALF_UP)
if not unit:
return float(amount)
step = _decimal(unit)
return float((amount / step).quantize(Decimal(1), ROUND_HALF_UP) * step)


def uprate_weekly_rate(
previous: float, growth: Decimal, unit: Optional[float]
) -> float:
"""The previous year's rate raised by ``growth`` (a ratio), then rounded."""
return round_weekly_rate(_decimal(previous) * growth, unit)


def uprating_index(parameters: ParameterNode, rate: Parameter) -> Parameter:
"""The index named in the rate's ``uprating`` metadata."""
meta = rate.metadata["uprating"]
name = meta["parameter"] if isinstance(meta, dict) else meta
return parameters.get_child(name)


def project_weekly_rate(rate: Parameter, index: Parameter, rounding: Parameter) -> None:
"""Fill the years after the rate's last stated value, through the index's
last year, each from the year before."""
last = max(rate.values_list, key=lambda entry: entry.instant_str)
value = last.value
level = index(last.instant_str)
if value is None or level is None:
return
for entry in sorted(index.values_list, key=lambda entry: entry.instant_str):
if entry.instant_str <= last.instant_str:
continue
new_level = index(entry.instant_str)
unit = rounding(uprating_instant(int(entry.instant_str[:4])))
value = uprate_weekly_rate(value, _decimal(new_level) / _decimal(level), unit)
rate.values_list.append(
ParameterAtInstant(rate.name, entry.instant_str, data=value)
)
level = new_level
rate.values_list.sort(key=lambda entry: entry.instant_str, reverse=True)
rate.mark_as_modified()


def project_state_pension_rates(parameters: ParameterNode) -> ParameterNode:
"""Project the full new and basic State Pension weekly rates."""
state_pension = parameters.gov.dwp.state_pension
for scheme in PROJECTED_RATES:
rate = state_pension.get_child(f"{scheme}.amount")
project_weekly_rate(
rate,
uprating_index(parameters, rate),
state_pension.weekly_rate_rounding,
)
state_pension.clear_parent_cache()
return parameters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
unit: currency-GBP
label: New State Pension amount
uprating: gov.economic_assumptions.indices.triple_lock
documentation: Projected weekly State Pension rates are not rounded to 5p; SSAA 1992 s.150A(4) permits discretionary rounding up or down (https://www.legislation.gov.uk/ukpga/1992/5/section/150A/4).
documentation: Years after the last published rate are projected each April from the previous year's rate by the triple lock and rounded to the nearest 5p (gov.dwp.state_pension.weekly_rate_rounding), as each Up-rating Order rounds them under Social Security Administration Act 1992 s.150A(4).
reference:
- title: House of Commons Library
href: https://researchbriefings.files.parliament.uk/documents/SN05649/SN05649.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ metadata:
include_earnings false and this guarantee true from 2030.
Each guaranteed year, the rise is the higher of the triple lock
elements still included and the rise needed to reach the earnings path,
rounded up to 0.1 percentage points. Changes take effect through
rounded up to 0.1 percentage points. The guarantee holds for those
percentages: each weekly rate is then the year before's raised by the
year's percentage and rounded to the nearest 5p
(gov.dwp.state_pension.weekly_rate_rounding), as Social Security
Administration Act 1992 s.150A(4) allows even below the minimum, so the
rate can sit a few pence below the earnings path. Changes take effect through
Scenario(parameter_changes=...), which rebuilds the uprating rates; a
reform dictionary changes this parameter but not the rates.
reference:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
description: The full new State Pension and basic State Pension weekly rates are projected each April from the previous year's rate and rounded to the nearest multiple of this amount; zero leaves them unrounded.
values:
2011-01-01: 0.05
metadata:
unit: currency-GBP
label: State Pension weekly rate rounding
documentation: |
Applies only to projected years, after the last published rate; the
published rates are stated in the amount parameters. Social Security
Administration Act 1992 s.150A(4) lets the Secretary of State round each
increase "up or down to such extent as he thinks appropriate". DWP
applies the review's percentage to the current full weekly rates and
rounds the results to the nearest 5p (HL10770), and HM Treasury's
forecast baseline projects them the same way. The previous year's
published rate, uprated and rounded to the nearest 5p, gives every
published basic State Pension rate from April 2011 and every full new
State Pension rate from April 2017; rounding always up or always down
to 5p, or to the nearest 10p, misses at least five of those years each.
No published rate has landed exactly on a half; the model rounds halves
up. Each April's rounding is read on 30 April. A reform that sets this
amount for whole fiscal years (a single value, a year key or a date
range covering 30 April), through a reform dictionary or
Scenario(parameter_changes=...), moves the projected rates for those
years.
reference:
- title: Social Security Administration Act 1992, section 150A(4)
href: https://www.legislation.gov.uk/ukpga/1992/5/section/150A
- title: Written question HL10770, State Retirement Pensions - Uprating (DWP answer, 20 October 2025)
href: https://questions-statements.parliament.uk/written-questions/detail/2025-10-06/HL10770
- title: Explanatory Memorandum to the Social Security Benefits Up-rating Order 2020 (SI 2020/234), paragraph 7.17
href: https://www.legislation.gov.uk/uksi/2020/234/pdfs/uksiem_20200234_en.pdf
- title: HM Treasury, Budget 2026 policy costings, Annex A (indexation in the public finance forecast baseline), page 114
href: https://assets.publishing.service.gov.uk/media/6ae1883fe4367e5c8b0467df/AB26_Policy_Costing.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
)


UNROUNDED_INDICES = (
"gov.economic_assumptions.yoy_growth.earnings_uprating",
"gov.economic_assumptions.yoy_growth.triple_lock",
)


def create_economic_assumption_indices(
parameters: ParameterNode,
) -> ParameterNode:
Expand Down Expand Up @@ -45,7 +51,10 @@ def create_economic_assumption_indices(
indices_value = values[year - 1] * (1 + yoy_growth)
# Rounding an earnings index down can put the projected
# guarantee below its statutory annual earnings floor.
if full_name != "gov.economic_assumptions.yoy_growth.earnings_uprating":
# Rounding the triple lock index would add up to about 3e-6
# to its yearly growth, enough to tip a State Pension rate
# to the other 5p (create_rate_projection).
if full_name not in UNROUNDED_INDICES:
indices_value = round(indices_value, 5)
values[year] = indices_value

Expand Down
6 changes: 6 additions & 0 deletions policyengine_uk/tax_benefit_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
from policyengine_uk.parameters.gov.contrib.create_private_pension_uprating import (
add_private_pension_uprating_factor,
)
from policyengine_uk.parameters.gov.dwp.state_pension.create_rate_projection import (
project_state_pension_rates,
)
from policyengine_uk.parameters.gov.dwp.state_pension.triple_lock.create_triple_lock import (
add_triple_lock,
)
Expand Down Expand Up @@ -142,6 +145,7 @@ def _install_parameters(system, parameters: ParameterNode) -> None:
add_september_cpi_uprating,
create_economic_assumption_indices,
add_energy_price_indices,
project_state_pension_rates,
project_savings_credit_threshold,
project_pension_age_allowances,
add_threshold_indexation,
Expand Down Expand Up @@ -201,6 +205,8 @@ def process_parameter_tree(
- earnings and September CPI uprating
- economic assumption indices
- household energy price indices
- State Pension weekly rates, projected each April from the year before
and rounded to the nearest 5p, as each Up-rating Order rounds them
- Pension Credit threshold and protected Housing Benefit forecast indices
- income tax and NICs threshold indexation after the freeze
- Universal Credit standard allowance uprating (UC Act 2025 s. 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
# above the full new State Pension.
#
# The full new State Pension is 52 weeks at the weekly rate. The model
# projects the April 2027 rate unrounded, 241.30 x 1.039 = 250.71, so the
# threshold is 13,036.97, where HM Treasury's explainer gives 13,036.40
# (250.70 a week). The full allowance is 94 on either: 20% x (13,036.97 -
# 12,570) = 93.39. The allowance runs out at 13,036.973 + 3 x 94 =
# 13,318.973, so 13,318.98 is the first income in whole pence with none (the
# explainer's "13,319 or more").
# projects the April 2027 rate as the Up-rating Order rounds it, 241.30 x
# 1.039 = 250.7107 to the nearest 5p, 250.70, so the threshold is 13,036.40,
# as in HM Treasury's explainer. The full allowance is 94: 20% x (13,036.40 -
# 12,570) = 93.28, rounded up. The allowance runs out at 13,036.40 + 3 x 94 =
# 13,318.40 (the explainer's "13,319 or more" in whole pounds).
#
# The first five cases are the worked examples in HM Treasury's Pension Tax
# Allowance explainer, on its inputs. Jonathan's allowance is 19p more than
# the explainer's 44 because the threshold is 57p higher.
# Allowance explainer, on its inputs.

- name: Tom, below the Personal Allowance, has no tax to remove
period: 2027
Expand Down Expand Up @@ -53,7 +51,7 @@
pension_tax_allowance: 80
income_tax: 0

- name: Jonathan, deferring his pension with income in the taper, gets 44.19
- name: Jonathan, deferring his pension with income in the taper, gets 44
period: 2027
absolute_error_margin: 0.01
input:
Expand All @@ -62,12 +60,12 @@
property_income: 1_186.40
output:
total_income: 13_186.40
# 94 - (13,186.40 - 13,036.97) / 3; the explainer, on 13,036.40, gives 44
pension_tax_allowance: 44.19
# 94 - (13,186.40 - 13,036.40) / 3
pension_tax_allowance: 44
# The Personal Allowance covers the salary and 570 of the property
# profit; 616.40 x 24% (the Budget 2026 property basic rate) = 147.94
income_tax_pre_charges: 147.94
income_tax: 103.75
income_tax: 103.94

- name: Nadia, above 13,319, gets no allowance
period: 2027
Expand All @@ -89,24 +87,24 @@
absolute_error_margin: 0.01
input:
age: 70
# Just above 13,036.97 + 3 x 94
state_pension: 13_318.98
# 13,036.40 + 3 x 94
state_pension: 13_318.40
output:
pension_tax_allowance: 0
# 748.98 x 20%
income_tax: 149.80
# 748.40 x 20%
income_tax: 149.68

- name: A pound before the end of the taper leaves a third of a pound
period: 2027
absolute_error_margin: 0.01
input:
age: 70
state_pension: 13_317.98
state_pension: 13_317.40
output:
# 94 - (13,317.98 - 13,036.97) / 3
# 94 - (13,317.40 - 13,036.40) / 3
pension_tax_allowance: 0.33
# 747.98 x 20% = 149.60, less the allowance
income_tax: 149.27
# 747.40 x 20% = 149.48, less the allowance
income_tax: 149.15

- name: Scottish taxpayers get the allowance at 20%, capped at their starter-rate tax
period: 2027
Expand All @@ -130,11 +128,11 @@
private_pension_income: 13_186.40
region: SCOTLAND
output:
# 94 - 149.43 / 3; at the 19% starter rate the full allowance would have
# been 89, leaving 39.19
pension_tax_allowance: 44.19
# 94 - 150 / 3; at the 19% starter rate the full allowance would have
# been 89, leaving 39
pension_tax_allowance: 44
# 616.40 x 19% = 117.12
income_tax: 72.93
income_tax: 73.12

- name: Someone under State Pension age with the same income gets nothing
period: 2027
Expand Down Expand Up @@ -197,11 +195,12 @@
absolute_error_margin: 0.01
input:
age: 70
# The threshold is 52 weeks of the April 2028 new State Pension: 13,480.26
# on the October 2026 forecast, so 20% x (13,480.26 - 12,570) = 182.05 and
# the full allowance is 183. 300 above the threshold takes 100 off it.
private_pension_income: 13_780.26
# The threshold is 52 weeks of the April 2028 new State Pension: 13,478.40
# (259.20 a week) on the October 2026 forecast, so 20% x (13,478.40 -
# 12,570) = 181.68 and the full allowance is 182. 300 above the threshold
# takes 100 off it.
private_pension_income: 13_778.40
output:
pension_tax_allowance: 83
# 1,210.26 x 20% = 242.05, less the allowance
income_tax: 159.05
pension_tax_allowance: 82
# 1,208.40 x 20% = 241.68, less the allowance
income_tax: 159.68
Loading
Loading