Skip to content

Add firm entity and firm-side tax rules - #2940

Draft
vahid-ahmadi wants to merge 28 commits into
mainfrom
firm-entity-engine
Draft

vahid-ahmadi wants to merge 28 commits into
mainfrom
firm-entity-engine

Conversation

@vahid-ahmadi

@vahid-ahmadi vahid-ahmadi commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #2939

What and why

Adds a firm entity to policyengine-uk beside person, benefit unit and household, and firm-level rules for the main business taxes. Today the model only spreads national totals of firm taxes over households (business rates, corporate SDLT, corporate_incident_tax_change). Corporation tax and the apprenticeship levy are listed under uncovered_receipts, and the Employment Allowance is not modelled.

Part of #1320 (firm-level VAT and a Firm entity): this PR adds the entity and firm-side VAT, but not the sector-driven supply split or a calibrated firm dataset, so #1320 stays open.

The PR is a draft and still in progress. The design notes and the decisions behind them are below. The firm dataset itself is being built in microcosm (PolicyEngine/microcosm#1706).

Entity design

  • Firm is a root population, not a group of persons. Firms have their own ids and their own weights (firm_weight), which come from business data rather than FRS households. No person is a member of a firm.
    • Existing household situations and datasets work unchanged.
    • A situation or dataset without firms has a firm count of 0.
  • How Firm is built. It is a plain core Entity listed after Person ([Person, BenUnit, Household, Firm]), so core treats it as neither the person entity nor a group entity.
    • A guarded replacement of core TaxBenefitSystem.instantiate_entities (in tax_benefit_system.py) gives it a RootPopulation. This also covers core Reform systems built by the YAML runner.
    • RootPopulation raises on cross-entity shortcuts such as firm.household.
  • Simulation changes.
    • The firm population is kept through _bind_to_tax_benefit_system (reforms and baselines), clone and get_branch.
    • map_result raises when asked to map firm values to or from another entity.
    • Firm variables are left out of the per-person exports.
    • build_from_situation accepts an optional firms: {name: {variable: value}} block.
    • build_from_ids takes an optional firm_id.
    • Both dataset loaders read an optional firm table.
  • Dataset schema. UKSingleYearDataset and UKMultiYearDataset take an optional firm= table. tables stays three long, so uprating and subsampling are unchanged. subsample raises NotImplementedError when firms are present.
  • Multiple jobs per person are left for a later job-link table. Without it, firm employee data is held at firm level (paybill, employees, zero-rated earnings).

Programs

All new variables use entity = Firm. Every parameter has a legislation or GOV.UK reference. Values that have been announced but not yet enacted are marked in their YAML files.

Program Variables Notes
Employer NICs firm_employer_ni, firm_employer_ni_before_allowance Reuses the gov.hmrc.national_insurance.class_1 rate and threshold nodes. Earnings above the secondary threshold can be given as an input; by default they are approximated from paybill and employees.
Employer Class 1A NIC firm_class_1a_ni, firm_termination_award_class_1a_ni Class 1A percentage times benefits in kind (firm_class_1a_benefits), in firm_tax, not firm_only_tax. From April 2020, Class 1A on termination awards above £30,000 per recipient (SSCBA s.10(1A); ITEPA s.403), at the secondary rate (15.05% in 2022-23), in both.
Employer Class 1B NIC firm_class_1b_ni Class 1B percentage of PSA chargeable earnings plus the tax paid (SSCBA s.10A), 14.53% in 2022-23. In firm_tax and firm_only_tax.
Off-payroll working firm_off_payroll_employer_ni, firm_off_payroll_levy_earnings Secondary Class 1 on the fee-payer's deemed direct payments above the threshold per deemed worker (SI 2000/727 regs 14, 17, 18): public authorities from April 2017, other clients from April 2021. No Employment Allowance (NICA 2014 s.2(4)). The payments count in the levy pay bill (FA 2016 s.100). In firm_tax, not firm_only_tax.
Soft drinks industry levy soft_drinks_industry_levy 24p/18p per litre from April 2018, 25.9p/19.4p from April 2025, 27.8p/20.8p from April 2026; small producers (≤1m litres, with connected persons) exempt (FA 2017 ss.30, 37-38).
Patent Box firm_patent_box_deduction RP × (rate − 10%) / rate on supplied relevant IP profits (firm_relevant_ip_profits): the main rate before April 2023, the small profits rate where charged at it from then (CTA 2010 s.357A; F(No.2)A 2023 s.11; CIRD201020), phased in 60–100% (FA 2012 Sch 2 para 8). The rate test ignores losses and group relief (documented).
Residential property developer tax residential_property_developer_tax 4% of supplied RPD profits above the group-shared £25m allowance, from April 2022 (FA 2022 ss.33, 43, 51); not deductible for CT.
Digital services tax digital_services_tax 2% of group UK digital services revenues above £25m where worldwide revenues exceed £500m and UK revenues exceed £25m, shared by UK revenues, from April 2020 (FA 2020 ss.46-47).
Energy profits levy energy_profits_levy 25%, 35% and 38% (from 26 May 2022, 1 January 2023, 1 November 2024) on supplied levy profits, day-weighted, to 31 March 2030.
Plastic packaging tax plastic_packaging_tax £200 to £228.82 per tonne, April 2022 to April 2026, on packaging with under 30% recycled plastic, for firms at or above 10 tonnes (FA 2021 ss.43, 45, 55).
Employment Allowance employment_allowance, employment_allowance_eligible Covers the amount history from 2014 to £10,500, the single-director exclusion, the public-body exclusion and the £100k prior-year limit for 2020-21 to 2024-25.
Apprenticeship levy apprenticeship_levy 0.5% of paybill less the £15,000 allowance, with a connected-group share.
Auto-enrolment firm_auto_enrolment_employer_contribution 3% of qualifying earnings (£6,240–£50,270).
Corporation tax corporation_tax, firm_taxable_profit, firm_marginal_relief, firm_losses_used, … Main and small profits rates, marginal relief (3/200) with the associated-companies divisor, and loss relief with the £5m deductions allowance. Group relief: a claimed amount capped at total profits and deducted before carried-forward losses (CTA 2010 ss.137-140, 269ZFA), Part 5A from April 2017, the non-banking add-back to surcharge profits, and a surrendered loss reducing the R&D surrenderable loss. Only companies are liable.
Capital allowances firm_capital_allowances + components Full expensing, 50% special-rate FYA, AIA, new main-rate FYA (40% from 1 January 2026), WDAs (main 18% → 14%), SBA, and balancing charges, including the s.59A charge on disposals of fully expensed plant. Plant for leasing gets no full expensing (s.46 general exclusion 6) and takes the AIA then the main-rate FYA.
R&D relief firm_rd_expenditure_credit, firm_rd_additional_deduction, firm_rd_payable_credit Merged-scheme RDEC (20%) and ERIS for R&D-intensive loss-making SMEs (every loss-making SME before April 2024), with the surrenderable loss after same-period relief (s.1056(2)(a)) and the PAYE/NIC cap from April 2021 when supplied. The payable RDEC excess is capped at the credit net of notional tax (CTA 2009 s.1042K; main rate before April 2024 under s.104N). The PAYE/NIC cap (s.1112B: £20,000 + 3× relevant PAYE/NIC; s.104P before April 2024) applies when firm_rdec_paye_nic_cap_supplied is set.
Bank surcharge bank_surcharge 8% above £25m, then 3% above £100m, on profits less the RDEC receipt (s.269DA(2)), with a group share of the allowance (firm_bank_surcharge_allowance_share). The announced 6% (1 January 2027 to 31 March 2028) is marked as not yet enacted and day-weighted into 2026-27; the blend window starts 6 April, so 1 April changes put 5 days into the previous year.
Business rates (England, Wales, Scotland, Northern Ireland) firm_business_rates + reliefs England: 2023-24 to 2027-28 multipliers, including the 2026 RHL and high-value multipliers; small business rate relief with the SI 2023/1250 taper factor (three decimal places), charitable relief, RHL relief to 2025-26, pubs and live music relief (15% at £1m+ only for live music venues, per BRIL 8/2026), and empty property relief. Wales: multipliers (from 2026-27 standard, retail below £51,000 for shops, and higher above £100,000 except 19 public-service descriptions) and SBRR; Scotland: poundage with supplements and the Small Business Bonus Scheme, 2023-24 to 2026-27. Northern Ireland from 2023-24 with firm_northern_ireland_district: NAV × (regional + district rate) for the 11 councils, SBRR (SR 2010/4) to March 2027, charity exemption, unoccupied property at half rate; 0 without a district.
VAT (firm side) firm_vat, firm_vat_registered, firm_output_vat, … Registration threshold history (£85k, then £90k), output less recoverable input VAT with partial exemption (standard method, percentage rounded up per reg 101(5)), and the flat rate scheme with the limited cost trader rate (16.5%). Optional direct attribution of input tax (reg 101(2)) and the de minimis tests (regs 105A, 106) behind firm_applies_partial_exemption_de_minimis (default false; the law makes them mandatory, so data builders should set it). Reuses the existing VAT rate nodes.
Minimum wage floor firm_minimum_wage_cost, firm_paybill_after_minimum_wage Extra pay needed to bring a low-paid block (firm_low_paid_hours, firm_low_paid_paybill) up to the adult rate. The levy and the default employer NIC and auto-enrolment approximations read the topped-up paybill. A firm cost, not a tax. 0 for compliant firms and before October 2010.

Aggregates and incidence (not wired into totals)

  • firm_tax: total statutory liability, less R&D tax credits paid out to the firm (RDEC in excess of corporation tax, and the ERIS payable credit).
  • firm_only_tax: the liability set by rules only the firm side models: CT, bank surcharge, levy, business rates, termination Class 1A, Class 1B, SDIL, PPT, RPDT, DST and EPL, less R&D credits paid out. Employer NIC and VAT rates are left out, because they already reach households through ni_employer and vat. The Employment Allowance is left out too: firm_tax_change_total subtracts its full change.
  • firm_tax_change_total: the reform less baseline change in firm_only_tax, weighted by firm_weight, less the change in the weighted Employment Allowance (each simulation on its own employer NIC liabilities), plus the change in firm VAT from VAT rules other than the rates (registration threshold, flat rate scheme, partial exemption) with the rates held at baseline.
    • Household ni_employer stays gross, so the two sides together count the change in what firms pay after the allowance: a firm that stays under the allowance after a rate rise nets to zero (tests: a 2026 rate rise, −7,000; the April 2025 package on a 2024-25 firm, −19,202.40). Without a supplied prior-year input, a rate rise past the 2020-21 to 2024-25 £100,000 limit counts the lost allowance (+25,000).
    • Household vat carries rate changes, so the VAT term uses baseline rates. A firm whose registration flips counts its full liability at baseline rates, and a reform that changes both rates and rules drops their interaction (tests: rate-only 0, threshold −98,000, flat rate +47,520, a partly exempt firm registering +89,250).
  • firm_tax_incidence: splits firm_tax_change_total between households by capital, consumption and labour shares. The shares come from new gov.contrib.policyengine.firm_incidence parameters, which default to capital 1.
  • Not wired into totals yet. None of these is in GOV_TAX_VARIABLES, household_tax, programs.yaml budget lists or fiscal_partition.yaml. That waits for a calibrated firm dataset from microcosm. Household outputs are therefore unchanged by construction. A regression gate checks that adding firms, or a firm-only reform, leaves household results exactly unchanged.

Downstream changes needed before release

Core marks firm as is_person=True, because a plain Entity is the only non-group entity core accepts. Downstream code that reads is_person sees two person entities. Read-only research found these consequences:

  • policyengine.py. tests/test_model_entities.py:90 asserts that the person entities are exactly ["person"], so the UK release certification run would fail. The fix is in src/policyengine/tax_benefit_models/common/model_version.py:213: derive is_person by comparing against the system's person entity key, then update the pinned entities.
  • policyengine-api.
    • policyengine_api/data/v2/catalog/extraction.py:281 raises unless there is exactly one person entity.
    • policyengine_api/country.py:413 reports is_person: true for firm in v1 metadata.
    • The fix is the same key comparison.
  • app-v2. VariableResolver.ts:55 would offer firm inputs as person inputs. This PR sets hidden_input = True on all 58 firm inputs, so they stay out of the household builder until a firm builder exists.

Household calculations without firms work unchanged in the API. The fixes are open as drafts: PolicyEngine/policyengine.py#765 (key-based is_person and entity pins; 76 tests pass on the pinned UK version and on this branch) and PolicyEngine/policyengine-api#4339 (v1 metadata). This PR should not be released until the policyengine.py fix is released.

Compatibility with policyengine-core

  • The PR patches core TaxBenefitSystem.instantiate_entities and Simulation.clone so they keep root populations. Both patches are guarded and idempotent. The clone patch is what lets the YAML runner, and formulas that clone the simulation (such as marginal tax rates), see firms.
  • It also imports four core private names.
  • Tested on core 3.34.9 (locked) and 3.37.1 with no failures. pyproject.toml caps core below 3.38.
  • The Core master workflow (.github/workflows/core_master.yaml) runs the firm and core-internals tests against core's default branch on each code change and every Monday, so a rename of _branch_clone or the holder internals fails in CI before a release reaches the cap. It is not a required check.
  • Support root populations: entities that are not built over persons policyengine-core#666 proposes first-class root populations in core. If core does not take them, the fallback is a separate firm simulation that shares the parameter tree.

Known simplifications

  • Every firm uses an April–March financial year.
  • Yearly parameters are read at 30 April, so changes dated 1 January are not apportioned. This affects the 40%/50% main-rate FYA. The bank surcharge rate is the exception: it is day-weighted across the year (see its row).
  • Employer NICs and auto-enrolment use firm-level approximations, since there is no per-employee pay yet. Optional inputs take out staff below the secondary threshold, and staff below the auto-enrolment trigger or above the upper limit; without them, the default assumes average pay. The default also does not apply the auto-enrolment £10,000 trigger.
  • Business rates:
    • one aggregate property per firm
    • no transitional relief
    • Northern Ireland only with a district, 2023-24 onwards; no derating
  • Corporation tax:
    • Patent Box, RPDT, DST and EPL take a supplied base (relevant IP profits, RPD profits, revenues, levy profits)
    • no quarterly instalment payments
    • group relief is a claimed input; the surrenderer side is not checked
  • VAT:
    • registration is tested on annual turnover, not a rolling 12 months
    • no cash or annual accounting
  • Freeport employer NIC relief goes in through firm_zero_rated_class_1_earnings. firm_in_freeport is recorded but no rule reads it yet. Freeport capital allowances and business rates relief are not modelled.
  • In a firms-only simulation, household variables cannot be computed (there are 0 benefit units).
  • Firm tables are not uprated between years. A multi-year dataset must carry the same firms in every year, or loading raises an error.
  • The labour incidence share is normalised over the simulated households. The default labour share is 0.
  • Business rates parameters start in 2023-24. Earlier years reuse the 2023-24 values.
  • Float32 storage. Core stores every float variable as float32, so firm money values for the largest firms carry rounding: about £1 on £10m–£50m of turnover, against a float64 calculation by microcosm's adapter. firm_id comes back as int32.
  • Announced values not yet in law. Finance Bill 2026-27 had not received Royal Assent on 22 Nov 2026, so the 12% main WDA (April 2027), the 50% main-rate FYA (January 2027) and the 6% bank surcharge (1 Jan 2027 to 31 Mar 2028) are announced values. Each is marked in its YAML. They stay in the baseline, following docs/book/policy/future-date-announcements.md, and the Finance Act references will be added at Royal Assent.

Fourth audit, 27 November

Four Fable 5.2 agents read the NIC and levy, CT, VAT and rates formulas against fetched statute (notes outside the repo). They found no new error in the default paths. Two bank-only gaps are now documented, not modelled: the s.269DC add-back of pre-2016 and non-banking losses, and the s.269CA 25% cap on pre-April 2015 bank losses. Their specs became the rules in c7e09f933 (batch 1) and 015d498d5 (batch 2: Patent Box, RPDT, DST, EPL), each reviewed by Fable before commit. Every new input defaults to 0, False or UNKNOWN; at those defaults the full YAML suite is unchanged, and a random-firm comparison of all 79 existing firm outputs against the previous head (4,000 firms, 2010–2030) found zero differences.

Follow-ups from the 24 November review

  • Cap policyengine-core below the next minor version and add a CI job against core's default branch.
  • Keep the announced values in the baseline; fix the stale lines in this body.
  • File the core issue for root populations: Support root populations: entities that are not built over persons policyengine-core#666.
  • firm_tax_change_total: subtract the full Employment Allowance change computed on reform liabilities, keeping household ni_employer gross; test the April 2025 package with a firm that stays under the allowance.
  • Split the VAT change the same way: rule changes only, with rates held at baseline.
  • A CT-year window (1 April to 31 March) for the bank surcharge's fiscal_year_blend.
  • Guard against setting corporate_incident_tax_change and a firm-side CT reform together; check that the incidence shares sum to 1; add a foreign-owner share.
  • Document which business-rates lever a reform should change.
  • Make the pay split the default NIC base when it is available: it already is when supplied; tests now pin the precedence, and the docs say to measure it at the year's threshold. Microcosm measured employer NIC at £103.6bn with the split and £102.1bn without (2024-25).
  • Confirm or flag the WDA and FYA clause numbers.

Test plan

  • For policy changes: YAML tests with values hand-computed from legislation and GOV.UK guidance, under policyengine_uk/tests/policy/baseline/gov/hmrc/{corporation_tax,bank_surcharge,apprenticeship_levy,vat/firm,business_rates/firm,national_insurance/employer,national_insurance/employment_allowance,minimum_wage/firm} and .../gov/dwp/auto_enrolment. Boundary cases (at, just above and just below each limit) for CT marginal relief with associated companies, the levy allowance, the VAT threshold including the 2024 change year, and SBRR, checked against the statutory wording.
  • test_firm_entity.py, test_firm_incidence.py, test_supplied_inputs.py: 119 passed.
  • Focused existing tests: income tax and pension credit YAML, test_entity_ids, test_input_dataframe_export, test_dataframe_dataset, test_build_metadata, test_variable_units, test_parameter_metadata, test_subsample, test_household_subset, test_supplied_inputs, and the code_health tests.
  • Household separation (test_firm_regression_gate.py, 34 passed):
    • No firm variable is a GOV_TAX_VARIABLES member or a budget term.
    • For 8 household situations in 2025 and 2026, adding firms leaves every household and government total exactly unchanged, and so does a firm-only reform.
    • Before review, a frozen fixture also matched base 70014b3 exactly (35 passed). It was dropped so that later changes to household rules don't break this test.
  • Incidence and aggregate tests (test_firm_incidence.py), the firms: guard for YAML (test_firm_yaml_guard.py), and 3 integration cases (tests/policy/integration/firm/).
  • Full YAML suite locally at 5ae31d4: 7,004 passed, 0 failed. Firm, registry, units, parameter metadata and code_health Python tests: 4,331 passed.
  • Firm, registry and code_health Python tests locally at 42939b5: 4,284 passed; registry and code_health at ca037fa: 4,285 passed. Firm Python tests with the minimum wage floor: 132 passed.
  • Toy microsimulation (test_firm_microsimulation.py): a seeded 200-firm frame checks weighted CT, levy, employer NIC, business rates and VAT against an independent numpy calculation. It also checks the firm_tax identity, that every firm variable is finite, and that household totals are unchanged whether or not the dataset has a firm table. The totals are toy numbers, not estimates.
  • Microcosm contract (test_firm_microcosm_contract.py): checks the 10 firm columns and outputs the microcosm frame (UK firm data: paper-parity port on the shared firm layer microcosm#1706) reads or writes.
  • Worked reform examples page (docs/book/usage/firm-reforms.md): every figure on it is asserted in test_firm_docs_examples.py.
  • Parameter values checked independently against legislation.gov.uk, GOV.UK and HMRC manuals (about 150 of 173 dated values fetched and confirmed). No UNVERIFIED notes remain. The clause numbers for the 12% main WDA and the 50% main-rate FYA are still to be confirmed against the Finance Bill.
  • Firm tests, marginal-rate YAMLs, income tax and UC YAMLs, and the export, subsample and branch tests also pass on policyengine-core 3.37.1.
  • programs.yaml registers 9 firm programmes (business rates now covers England, Wales and Scotland) as partial (test_program_registry and the budget tests pass). New docs page: docs/book/usage/firms.md.
  • Full Python suite in CI at 57a99a6 (minimum wage floor and rules audit fixes): passed.
  • Full Python suite in CI at d856de5 (Wales and Scotland rates, Class 1A, RDEC cap): "Code changes" passed.
  • CI at 7484867: every job passed except Python shards 2/8 and 7/8, which hit the 90-minute limit at 99% with no failing test (the same pattern as at 1b320d8, where the rerun passed). Every job passed at 1b320d8 (run 44976810914). On main the same shards already take 82 to 90 minutes, and a local benchmark shows no slowdown in household simulations from this branch.
  • CI at 0d1c250: every job passed except Python shards that hit the 90-minute limit at 98-99% with 0 failing tests (4/8 and 7/8; on rerun 4/8 passed and 7/8 again stopped at 99% with 0 failures). Every shard runs 78-90 minutes on this suite and the firm tests add about 0.8% (18 of 2,350 worker-minutes); Split the Python tests over ten CI shards instead of eight #2919 (ten shards) addresses the limit. Locally: full YAML 7,058 passed; firm, registry, metadata and code_health Python tests 4,348 passed.
  • CI at fa48a29 (docs only), run 45182122591: every job passed except Python shards 2/8, 5/8 and 6/8, which the 90-minute limit cancelled. The five shards that finished had no failures.
  • CI at 0bc727a (main merged, so the Python tests run on ten shards; core capped below 3.38; Core master workflow; Employment Allowance and VAT incidence fixes): passed. The run at 70a842c was superseded before it finished. Locally: test_firm_incidence.py 37 passed, test_firm_docs_examples.py 15, test_firm_microcosm_contract.py 13, test_firm_microsimulation.py 9. The firm entity tests pass locally on core 3.34.9 and on core master (3.37.2).
  • CI at c7e09f9 (fourth-audit batch 1): passed (Code changes, Core master, Aggregate impact).
  • CI at b40cca0 (batch 2 and hardening): passed. Locally: full YAML 7,199 passed; firm, registry, metadata, units and code_health Python tests 4,846 passed (1 dataset test skipped without a token). New tests: YAML boundary and year-transition cases for each rule and test_firm_additional_rules.py (reform-to-incidence).
  • Downstream draft PRs for the is_person flag: Publish only the person entity as is_person policyengine.py#765 and Describe only the person entity as a person in country metadata policyengine-api#4339. Release Add firm entity and firm-side tax rules #2940 only after the policyengine.py fix is released.
  • make format (ruff format + ruff check).
  • Changelog fragments changelog.d/firm-entity-engine.added.md and changelog.d/firm-entity-engine-rules-4.added.md.

Reproducer

Reproducer: policyengine_uk/tests/test_firm_entity.py, policyengine_uk/tests/test_firm_additional_rules.py

axiom: needed (new firm-side programmes. The rulespec-uk parity issues are not yet opened and are left for a maintainer's decision.)

🤖 Generated with Claude Code

vahid-ahmadi and others added 2 commits November 21, 2026 23:25
Adds a Firm entity beside person, benunit and household as a root
population (no person membership), with firm-level rules for employer
NICs and the Employment Allowance, the apprenticeship levy, corporation
tax with capital allowances, R&D relief and the bank surcharge, England
business rates, firm-side VAT and auto-enrolment. Incidence variables are
added but not wired into gov_tax or household_tax.

Refs #2939

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yment Allowance out of firm-only tax

Employer NI rate reforms raised the Employment Allowance of firms under
the cap, which leaked into firm_tax_change_total and double counted with
ni_employer. firm_only_tax now leaves the allowance out, and
firm_tax_change_total adds only the change from the allowance's own
rules at baseline liabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Aggregate impact on certified data: pass

Base e6909e8de3 against head 7d3ecf401c, both on enhanced_frs_2024_25.h5 (policyengine-uk-data 1.58.1, sha256 056e80fd8e91), fiscal years 2025-26 to 2031-32. Each year is a full microsimulation run on each side.

Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in report_spec.yaml; a flag does not fail the job).

Workflow run and full report

Notes

  • In the years a figure from fewer than 10 records is suppressed (spending.disabled_students_allowance), every total containing it, and the decile incomes, are rebuilt from their other components, so no published total includes it. Those totals are marked †. A change is withheld where the two sides leave out different figures and can't be lined up.

Moves flagged for review

None.

Spending by benefit and service

Measure 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed

Caseloads

Measure 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed

Household net income by decile

No household's net income changes in any year.

No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target.

Checks failing on both base and head (1)
  • VAT excluding private school fees is never negative (sign:vat): 2025-26: 76 units below zero, a weighted £-52,314,332 in total; 2026-27: 76 units below zero, a weighted £-54,150,722 in total; 2027-28: 76 units below zero, a weighted £-56,043,426 in total
Counted-once check

The check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.

  • widowed_parents_allowance: pension_credit responds only through other heads in fewer than 10 households (other heads that moved there: carers_allowance; gov_spending; not a failure)
  • widowed_parents_allowance: pension_credit responds only through other heads in fewer than 10 households (other heads that moved there: carers_allowance; household_benefits; not a failure)
Provenance
Side Commit Runtime Environment hash Partition hash Time
base main e6909e8de3 uk 2.180.2 (files ffa2a061bf53), core 3.34.9, py 3.13.18 aarch64 434edb3d6900 f5dab8526157 3072.93s
head #2940 merged into main 7d3ecf401c uk 2.180.2 (files 064607e92aa6), core 3.34.9, py 3.13.18 aarch64 434edb3d6900 f5dab8526157 3213.64s

Dataset: hf://policyengine/policyengine-uk-data-private/enhanced_frs_2024_25.h5@2526edbbb687a3b54dbb11272e5389e4b62d2ac2, sha256 056e80fd8e9151d78f432a25cde863340baee81304c6216a37fb575ce8563784 (verified on both sides), policyengine-uk-data 1.58.1.

Receipts by tax head: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Final charge on cash interest in non-cash ISAs £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Lifetime ISA withdrawal charge £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Income tax £294.44bn £315.21bn £335.80bn £351.25bn £366.92bn £385.32bn £399.96bn
National Insurance (employee and self-employed) £51.70bn £54.14bn £56.13bn £57.73bn £59.76bn £61.64bn £63.51bn
National Insurance (employer) £148.71bn £155.37bn £160.88bn £165.09bn £172.06bn £177.36bn £182.57bn
Employer NI change borne by capital £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Employer NI change borne by consumers £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Capital gains tax £12.60bn £13.15bn £13.60bn £14.11bn £14.67bn £15.24bn £15.80bn
Student loan repayments £7.82bn £8.13bn £8.39bn £8.58bn £8.79bn £9.04bn £9.29bn
VAT excluding private school fees £242.22bn £249.47bn £258.67bn £264.86bn £270.95bn £277.04bn £283.21bn
Change in VAT from its baseline £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
VAT on private school fees £1.95bn £2.01bn £2.09bn £2.14bn £2.20bn £2.26bn £2.31bn
Change in private school VAT from its baseline £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Fuel duties £24.71bn £24.13bn £26.00bn £26.83bn £26.51bn £25.78bn £24.63bn
Alcohol duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Tobacco duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Vehicle excise duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Betting and gaming duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
TV licence fee £4.26bn £4.40bn £4.41bn £4.42bn £4.43bn £4.44bn £4.45bn
Council tax £49.21bn £52.16bn £54.89bn £57.95bn £61.16bn £64.47bn £67.91bn
High value council tax surcharge £0.00bn £0.00bn £0.00bn £0.48bn £0.49bn £0.50bn £0.51bn
Northern Ireland domestic rates £0.55bn £0.58bn £0.60bn £0.63bn £0.66bn £0.69bn £0.72bn
Business rates £34.68bn £36.20bn £38.00bn £39.46bn £42.27bn £43.25bn £44.29bn
Stamp duty land tax on the household's own purchases £6.88bn £7.32bn £7.66bn £8.06bn £8.47bn £8.91bn £9.35bn
Stamp duty land tax paid by companies £4.72bn £4.57bn £5.29bn £6.03bn £6.37bn £6.92bn £7.45bn
Land transaction tax (Wales) £0.07bn £0.08bn £0.08bn £0.09bn £0.10bn £0.10bn £0.11bn
Land and buildings transaction tax (Scotland) £0.31bn £0.32bn £0.33bn £0.35bn £0.36bn £0.38bn £0.40bn
Unspecified tax change borne by capital £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Unspecified tax change borne by consumers £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Wealth tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Wealth tax excluding the main residence £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Land value tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Carbon tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Spending by benefit and service: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Lifetime ISA bonus £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
State Pension £121.68bn £125.92bn £126.72bn £129.48bn £132.98bn £136.65bn £140.41bn
Pension Credit £6.21bn £6.46bn £6.68bn £6.82bn £6.89bn £7.07bn £7.22bn
Winter Fuel Payment £1.86bn £1.85bn £1.79bn £1.77bn £1.78bn £1.78bn £1.78bn
Pension Age Winter Heating Payment (Scotland) £0.19bn £0.20bn £0.20bn £0.21bn £0.21bn £0.22bn £0.22bn
Universal Credit £75.71bn £81.81bn £84.29bn £86.34bn £87.51bn £89.06bn £89.70bn
Housing Benefit £8.57bn £8.52bn £8.85bn £9.06bn £9.29bn £9.57bn £9.84bn
Council Tax Reduction £2.19bn £2.32bn £2.44bn £2.58bn £2.72bn £2.87bn £3.02bn
Employment and Support Allowance (income-related) £0.79bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Employment and Support Allowance (contribution-based) £5.20bn £5.37bn £5.56bn £5.69bn £5.82bn £5.95bn £6.09bn
Jobseeker's Allowance (income-based) £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Jobseeker's Allowance (contribution-based) £0.29bn £0.30bn £0.31bn £0.31bn £0.32bn £0.33bn £0.34bn
Income Support £0.11bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Working Tax Credit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Child Tax Credit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Incapacity Benefit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Personal Independence Payment £26.95bn £28.03bn £29.05bn £30.09bn £30.75bn £31.51bn £32.21bn
Disability Living Allowance £7.49bn £7.79bn £8.07bn £8.36bn £8.55bn £8.76bn £8.95bn
Attendance Allowance £8.68bn £9.03bn £9.36bn £9.69bn £9.90bn £10.15bn £10.38bn
Carer's Allowance £4.48bn £4.66bn £4.83bn £5.00bn £5.11bn £5.27bn £5.42bn
Carer Support Payment (Scotland) £0.31bn £0.32bn £0.33bn £0.34bn £0.35bn £0.36bn £0.37bn
Scottish Carer Supplement £0.00bn £0.04bn £0.04bn £0.05bn £0.05bn £0.05bn £0.05bn
Severe Disablement Allowance £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn
Industrial Injuries Disablement Benefit £0.50bn £0.52bn £0.54bn £0.55bn £0.56bn £0.58bn £0.59bn
Armed Forces Compensation Scheme £0.61bn £0.63bn £0.65bn £0.66bn £0.68bn £0.69bn £0.71bn
War Widow's or Widower's Pension £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Child Benefit £16.20bn £16.82bn £17.39bn £18.01bn £18.40bn £18.84bn £19.26bn
Scottish Child Payment £0.49bn £0.52bn £0.53bn £0.55bn £0.56bn £0.57bn £0.56bn
Two Child Limit Payment (Scotland, counterfactual) £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Healthy Start vouchers £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn
Maternity Allowance £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Statutory Maternity Pay £3.30bn £3.41bn £3.54bn £3.62bn £3.70bn £3.78bn £3.87bn
Statutory Paternity Pay £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Statutory Sick Pay £1.12bn £1.16bn £1.20bn £1.23bn £1.26bn £1.29bn £1.32bn
Sure Start Maternity Grant £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn
Bereavement Support Payment £0.67bn £0.69bn £0.71bn £0.73bn £0.75bn £0.76bn £0.78bn
Widowed Parent's Allowance £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Tax-Free Childcare £0.56bn £0.57bn £0.57bn £0.58bn £0.60bn £0.61bn £0.59bn
Extended childcare entitlement £2.99bn £3.50bn £3.59bn £3.71bn £3.78bn £3.86bn £3.93bn
Universal childcare entitlement £2.06bn £2.22bn £2.29bn £2.37bn £2.43bn £2.48bn £2.53bn
Targeted childcare entitlement £0.50bn £0.51bn £0.52bn £0.54bn £0.55bn £0.57bn £0.56bn
Childcare Offer for Wales £0.26bn £0.28bn £0.28bn £0.29bn £0.30bn £0.31bn £0.32bn
Care to Learn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Childcare Grant £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Parents' Learning Allowance £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn
Adult Dependants' Grant £0.06bn £0.06bn £0.04bn £0.04bn £0.04bn £0.04bn £0.04bn
Travel Grant £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed
16 to 19 Bursary Fund £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
NHS spending £203.89bn £204.30bn £204.56bn £204.91bn £205.34bn £205.85bn £206.35bn
State education spending £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn
Transport subsidy spending £25.05bn £25.10bn £25.14bn £25.18bn £25.23bn £25.30bn £25.36bn
Cost-of-living support payment £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Energy Bills Rebate £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Household Energy Payment £0.00bn £2.11bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Energy Price Guarantee subsidy £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Basic income £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Disability basic income £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Other public spending budget change £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Caseloads: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Lifetime ISA bonus 0k 0k 0k 0k 0k 0k 0k
State Pension 11,264k 11,145k 10,819k 10,700k 10,723k 10,750k 10,776k
Pension Credit 1,489k 1,484k 1,476k 1,454k 1,452k 1,457k 1,466k
Winter Fuel Payment 7,844k 7,783k 7,473k 7,375k 7,391k 7,409k 7,427k
Pension Age Winter Heating Payment (Scotland) 803k 802k 800k 797k 799k 801k 802k
Universal Credit 6,343k 6,419k 6,408k 6,369k 6,364k 6,343k 6,295k
Housing Benefit 1,249k 1,182k 1,181k 1,165k 1,164k 1,166k 1,168k
Council Tax Reduction 3,326k 3,344k 3,351k 3,364k 3,375k 3,388k 3,395k
Employment and Support Allowance (income-related) 71k 0k 0k 0k 0k 0k 0k
Employment and Support Allowance (contribution-based) 719k 720k 721k 722k 724k 726k 728k
Jobseeker's Allowance (income-based) 0k 0k 0k 0k 0k 0k 0k
Jobseeker's Allowance (contribution-based) 67k 67k 67k 67k 67k 68k 68k
Income Support 25k 0k 0k 0k 0k 0k 0k
Working Tax Credit 0k 0k 0k 0k 0k 0k 0k
Child Tax Credit 0k 0k 0k 0k 0k 0k 0k
Incapacity Benefit 0k 0k 0k 0k 0k 0k 0k
Personal Independence Payment 3,567k 3,575k 3,579k 3,585k 3,593k 3,602k 3,611k
Disability Living Allowance 1,291k 1,294k 1,296k 1,298k 1,300k 1,304k 1,307k
Attendance Allowance 1,695k 1,698k 1,700k 1,703k 1,707k 1,711k 1,715k
Carer's Allowance 1,034k 1,037k 1,038k 1,040k 1,042k 1,060k 1,062k
Carer Support Payment (Scotland) 71k 71k 71k 72k 72k 72k 72k
Scottish Carer Supplement 0k 71k 71k 72k 72k 72k 72k
Severe Disablement Allowance 4k 4k 4k 4k 4k 4k 4k
Industrial Injuries Disablement Benefit 137k 137k 137k 138k 138k 138k 139k
Armed Forces Compensation Scheme 93k 93k 94k 94k 94k 94k 94k
War Widow's or Widower's Pension 0k 0k 0k 0k 0k 0k 0k
Child Benefit 8,124k 8,121k 8,121k 8,131k 8,146k 8,162k 8,179k
Scottish Child Payment 351k 352k 352k 353k 350k 348k 337k
Two Child Limit Payment (Scotland, counterfactual) 0k 0k 0k 0k 0k 0k 0k
Healthy Start vouchers 200k 200k 200k 201k 201k 201k 202k
Maternity Allowance 0k 0k 0k 0k 0k 0k 0k
Statutory Maternity Pay 333k 333k 334k 334k 335k 336k 337k
Statutory Paternity Pay 0k 0k 0k 0k 0k 0k 0k
Statutory Sick Pay 181k 182k 182k 182k 182k 183k 183k
Sure Start Maternity Grant 26k 26k 26k 26k 26k 26k 26k
Bereavement Support Payment 98k 98k 98k 98k 98k 99k 99k
Widowed Parent's Allowance 0k 0k 0k 0k 0k 0k 0k
Tax-Free Childcare 1,043k 1,027k 1,014k 1,009k 1,011k 1,009k 993k
Extended childcare entitlement 795k 800k 796k 797k 798k 798k 792k
Universal childcare entitlement 1,071k 1,072k 1,072k 1,073k 1,076k 1,079k 1,074k
Targeted childcare entitlement 165k 156k 154k 154k 155k 155k 150k
Childcare Offer for Wales 39k 39k 39k 39k 39k 39k 39k
Care to Learn 0k 0k 0k 0k 0k 0k 0k
Childcare Grant 0k 0k 0k 0k 0k 0k 0k
Parents' Learning Allowance 98k 98k 98k 99k 99k 99k 99k
Adult Dependants' Grant 18k 18k 12k 12k 12k 12k 12k
Travel Grant 0k 0k 0k 0k 0k 0k 0k
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed
16 to 19 Bursary Fund 0k 0k 0k 0k 0k 0k 0k
Cost-of-living support payment 0k 0k 0k 0k 0k 0k 0k
Energy Bills Rebate 0k 0k 0k 0k 0k 0k 0k
Household Energy Payment 0k 21,065k 0k 0k 0k 0k 0k
Energy Price Guarantee subsidy 0k 0k 0k 0k 0k 0k 0k
Basic income 0k 0k 0k 0k 0k 0k 0k
Disability basic income 0k 0k 0k 0k 0k 0k 0k
Government balance, each component counted once: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Government receipts, each component once £884.82bn £927.25bn £972.82bn £1,008.07bn £1,046.18bn £1,083.32bn £1,116.48bn
Government spending £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
Government balance, each receipt once £355.53bn † £381.92bn † £422.41bn † £448.95bn † £479.44bn † £507.86bn † £533.41bn †
Benefits in household_benefits but not in gov_spending £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Model totals: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
gov_tax £884.82bn £927.25bn £972.82bn £1,008.07bn £1,046.18bn £1,083.32bn £1,116.48bn
household_tax £491.95bn £520.39bn £551.18bn £575.98bn £600.96bn £626.66bn £648.39bn
pre_budget_change_household_tax £484.13bn £512.26bn £542.79bn £566.92bn £591.68bn £617.12bn £638.58bn
gov_spending £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
household_benefits £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
gov_balance £355.53bn † £381.92bn † £422.41bn † £448.95bn † £479.44bn † £507.86bn † £533.41bn †
Household income totals: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Household market income £1,637.96bn £1,702.77bn £1,757.35bn £1,806.41bn £1,855.97bn £1,912.43bn £1,970.44bn
Household net income £1,636.63bn † £1,687.51bn † £1,715.12bn † £1,747.12bn † £1,778.28bn † £1,816.57bn † £1,859.19bn †
Household net income (HBAI definition) £1,449.51bn £1,499.52bn £1,530.52bn £1,564.80bn £1,597.47bn £1,635.15bn £1,676.12bn
Population: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
People 69,245k 69,383k 69,473k 69,592k 69,738k 69,912k 70,080k
Benefit units 35,110k 35,181k 35,226k 35,286k 35,360k 35,449k 35,534k
Households 31,046k 31,108k 31,149k 31,201k 31,267k 31,345k 31,420k
Poverty rates: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Absolute poverty, before housing costs: everyone 16.2% 15.4% 16.3% 16.2% 16.4% 16.4% 16.5%
Absolute poverty, before housing costs: children 24.6% 21.8% 23.0% 22.7% 22.9% 23.0% 23.2%
Absolute poverty, before housing costs: working-age adults 14.0% 13.7% 14.6% 14.6% 14.7% 14.7% 14.9%
Absolute poverty, before housing costs: pensioners 13.7% 13.4% 14.0% 13.9% 14.0% 14.0% 13.9%
Absolute poverty, after housing costs: everyone 21.5% 21.0% 22.0% 22.5% 22.8% 23.0% 23.4%
Absolute poverty, after housing costs: children 33.1% 31.2% 32.1% 32.4% 32.8% 33.2% 34.0%
Absolute poverty, after housing costs: working-age adults 19.9% 19.8% 20.8% 21.5% 21.8% 22.0% 22.2%
Absolute poverty, after housing costs: pensioners 12.7% 12.4% 13.2% 13.2% 13.3% 13.4% 13.6%
Relative poverty, before housing costs: everyone 16.9% 15.9% 16.3% 16.2% 16.3% 16.2% 16.5%
Relative poverty, before housing costs: children 25.7% 22.6% 23.0% 22.7% 22.8% 22.6% 23.2%
Relative poverty, before housing costs: working-age adults 14.4% 14.0% 14.6% 14.6% 14.7% 14.6% 14.9%
Relative poverty, before housing costs: pensioners 14.5% 14.1% 14.0% 13.8% 13.8% 13.9% 13.9%
Relative poverty, after housing costs: everyone 21.4% 20.9% 21.2% 21.3% 21.3% 21.5% 21.7%
Relative poverty, after housing costs: children 32.9% 31.0% 31.1% 31.0% 31.0% 31.2% 31.7%
Relative poverty, after housing costs: working-age adults 19.8% 19.7% 20.2% 20.4% 20.4% 20.6% 20.8%
Relative poverty, after housing costs: pensioners 12.5% 12.4% 12.2% 11.8% 11.7% 11.8% 12.1%
People in poverty: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Absolute poverty, before housing costs: everyone 11,246k 10,704k 11,333k 11,298k 11,407k 11,448k 11,584k
Absolute poverty, before housing costs: children 3,676k 3,270k 3,455k 3,406k 3,441k 3,463k 3,509k
Absolute poverty, before housing costs: working-age adults 5,947k 5,858k 6,277k 6,330k 6,387k 6,400k 6,490k
Absolute poverty, before housing costs: pensioners 1,624k 1,576k 1,602k 1,562k 1,579k 1,585k 1,584k
Absolute poverty, after housing costs: everyone 14,869k 14,565k 15,263k 15,690k 15,910k 16,094k 16,373k
Absolute poverty, after housing costs: children 4,940k 4,671k 4,814k 4,873k 4,931k 5,015k 5,145k
Absolute poverty, after housing costs: working-age adults 8,424k 8,435k 8,943k 9,324k 9,474k 9,559k 9,683k
Absolute poverty, after housing costs: pensioners 1,504k 1,460k 1,505k 1,493k 1,505k 1,520k 1,545k
Relative poverty, before housing costs: everyone 11,694k 11,032k 11,318k 11,297k 11,348k 11,350k 11,584k
Relative poverty, before housing costs: children 3,847k 3,389k 3,454k 3,406k 3,427k 3,414k 3,509k
Relative poverty, before housing costs: working-age adults 6,128k 5,990k 6,270k 6,330k 6,356k 6,359k 6,490k
Relative poverty, before housing costs: pensioners 1,719k 1,652k 1,594k 1,561k 1,565k 1,576k 1,584k
Relative poverty, after housing costs: everyone 14,800k 14,518k 14,756k 14,791k 14,867k 15,002k 15,214k
Relative poverty, after housing costs: children 4,916k 4,649k 4,661k 4,651k 4,673k 4,701k 4,796k
Relative poverty, after housing costs: working-age adults 8,396k 8,414k 8,699k 8,813k 8,870k 8,959k 9,049k
Relative poverty, after housing costs: pensioners 1,488k 1,455k 1,395k 1,326k 1,324k 1,342k 1,369k
Inequality: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Gini coefficient, equivalised HBAI income before housing costs 0.3076 0.3049 0.3055 0.3054 0.3059 0.3064 0.3080
Mean household net income in each side's own deciles: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Decile 1: mean household_net_income per household £17,748 † £17,980 † £17,927 † £18,181 † £18,318 † £18,538 † £18,742 †
Decile 2: mean household_net_income per household £28,029 † £29,037 † £28,754 † £28,997 † £29,258 † £29,676 † £30,171 †
Decile 3: mean household_net_income per household £34,252 † £35,426 † £36,069 † £36,548 † £37,157 † £37,774 † £38,103 †
Decile 4: mean household_net_income per household £38,926 † £40,769 † £41,716 † £42,763 † £43,387 † £44,167 † £44,499 †
Decile 5: mean household_net_income per household £43,346 † £45,603 † £46,054 † £47,001 † £47,755 † £48,626 † £50,309 †
Decile 6: mean household_net_income per household £47,933 † £49,175 † £50,879 † £52,032 † £52,922 † £53,942 † £54,719 †
Decile 7: mean household_net_income per household £55,672 † £56,650 † £57,493 † £57,674 † £58,791 † £59,706 † £61,106 †
Decile 8: mean household_net_income per household £68,786 † £70,811 † £71,870 † £73,483 † £73,890 † £75,325 † £77,181 †
Decile 9: mean household_net_income per household £78,891 † £81,011 † £80,860 † £82,646 † £85,464 † £86,940 † £89,508 †
Decile 10: mean household_net_income per household £116,864 † £120,162 † £124,545 † £126,420 † £125,756 † £128,269 † £130,694 †
Standard reform costings (change in gov_balance): head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Raise basic rate by 1pp £6.41bn £6.66bn £6.63bn £6.85bn £7.03bn £7.25bn £7.47bn
Raise higher rate by 1pp £3.61bn £3.87bn £4.00bn £4.22bn £4.44bn £4.71bn £4.83bn
Raise personal allowance by ~800GBP/year £-3.82bn £-3.93bn £-4.01bn £-4.05bn £-4.11bn £-4.24bn £-1.95bn
Raise child benefit by 25GBP/week per additional child £-1.99bn £-1.75bn £-1.55bn £-1.38bn £-1.30bn £-1.18bn £-1.07bn
Reduce Universal Credit taper rate to 20% £-20.83bn £-21.38bn £-21.81bn £-22.02bn £-22.37bn £-22.77bn £-22.96bn
Raise Class 1 main employee NICs rate to 10% £10.89bn £11.30bn £11.71bn £12.01bn £12.31bn £12.62bn £13.00bn
Raise VAT standard rate by 2pp £24.17bn £24.97bn £25.86bn £26.46bn £27.07bn £27.68bn £28.31bn
Raise additional rate by 3pp £2.90bn £3.15bn £3.22bn £3.41bn £3.61bn £3.85bn £4.14bn
Raise the Universal Credit standard allowance by 10% £-3.06bn £-3.23bn £-3.30bn £-3.40bn £-3.48bn £-3.53bn £-3.55bn
Raise the State Pension by 10% £-7.76bn £-7.99bn £-8.22bn £-8.44bn £-8.79bn £-8.52bn £-8.86bn
Standard reforms: change in each reform's target: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Raise basic rate by 1pp: change in income_tax £6.55bn £6.86bn £6.79bn £7.00bn £7.20bn £7.44bn £7.66bn
Raise higher rate by 1pp: change in income_tax £3.61bn £3.92bn £4.01bn £4.23bn £4.45bn £4.72bn £4.84bn
Raise personal allowance by ~800GBP/year: change in income_tax £-3.94bn £-4.07bn £-4.14bn £-4.18bn £-4.22bn £-4.40bn £-1.76bn
Raise child benefit by 25GBP/week per additional child: change in child_benefit £2.33bn £2.14bn £1.95bn £1.76bn £1.65bn £1.52bn £1.40bn
Reduce Universal Credit taper rate to 20%: change in universal_credit £20.79bn £21.36bn £21.84bn £22.07bn £22.39bn £22.80bn £23.01bn
Raise Class 1 main employee NICs rate to 10%: change in national_insurance £11.15bn £11.63bn £12.00bn £12.29bn £12.61bn £12.94bn £13.31bn
Raise VAT standard rate by 2pp: change in vat £23.98bn £24.77bn £25.66bn £26.24bn £26.85bn £27.46bn £28.07bn
Raise additional rate by 3pp: change in income_tax £2.90bn £3.15bn £3.22bn £3.42bn £3.62bn £3.86bn £4.12bn
Raise the Universal Credit standard allowance by 10%: change in universal_credit £3.06bn £3.22bn £3.32bn £3.41bn £3.48bn £3.54bn £3.55bn
Raise the State Pension by 10%: change in state_pension £10.68bn £11.17bn £11.28bn £11.60bn £12.03bn £12.46bn £12.96bn

vahid-ahmadi and others added 5 commits November 22, 2026 00:03
…redits from firm aggregates

- Core Simulation.clone (used by the YAML runner and by formulas that
  clone, such as marginal tax rates) now keeps root populations; this fixes
  KeyError: 'firm' in 26 YAML tests.
- Later-year firm tables must hold the same firms as the first year;
  tables without firm_id are numbered; filter_dataset keeps the firm table;
  validate rejects non-firm columns in the firm table.
- firm_tax and firm_only_tax subtract R&D credits paid out (excess RDEC and
  the ERIS payable credit).
- Sentence-case labels on corporation tax variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core marks firm as a person-like entity, so the app would otherwise offer
the 52 firm inputs as person variables in the household builder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the remaining UNVERIFIED notes, backfills auto-enrolment
thresholds for 2012-2018, adds missing references, and records the
Finance Bill 2026-27 stage for announced-not-enacted values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d gate, single firm clone

- firm_tax_change_total holds last year's employer NI liabilities at
  baseline too, so a rate reform cannot flip eligibility under the
  2020-21 to 2024-25 prior-year limit; mismatched baseline firm tables
  raise.
- Replace the frozen regression fixture with structural checks (no firm
  variable in gov_tax or the budget totals) and live checks that firms and
  firm-only reforms leave household results unchanged.
- The UK Simulation.clone reuses the root population the patched core
  clone already made.
- Corporation tax verified_start_year 2026; docs wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi added a commit to PolicyEngine/microcosm that referenced this pull request Nov 22, 2026
…ates

Draw region (ONS UK Business 2025 Table 8) and legal status (Table 13)
per firm after calibration, with Table 15 held out, and export them as
policyengine-uk's firm_region, firm_in_england, firm_legal_form and
firm_is_public_body. Record the status of all 52 policyengine-uk firm
inputs, check the export against an ast snapshot of policyengine-uk's
firm variables, and declare value-free M2 target candidates. The
8-target uk_firms_targets.json contract is unchanged.

Refs #1705, PolicyEngine/policyengine-uk#2940.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi and others added 2 commits November 22, 2026 00:53
…; pay-distribution inputs; source checks

- Toy-frame microsimulation test (200 firms) checking each programme
  against an independent calculation, and a contract test for the columns
  microcosm reads and writes.
- Worked firm reform examples page, every figure asserted in a test.
- Optional inputs for staff below the secondary threshold and outside the
  auto-enrolment band, identical results when absent.
- Remaining parameter values confirmed against sources; SBRR boundary
  cases; firm_in_freeport documented as not yet read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Clip the optional pay-distribution inputs to the firm's headcount and
  paybill, and document it.
- A baseline without the same firm table raises in firm_tax_change_total.
- Parity test between the Employment Allowance rule-change helper and
  employment_allowance; keep-in-step notes on both sides.
- Docs describe the optional inputs and the earnings trigger; wording
  'at or below' the threshold and trigger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi added a commit to PolicyEngine/microcosm that referenced this pull request Nov 22, 2026
tools/build_uk_firms.py runs generation, attribute draws and the
policyengine-uk table export to uk_firms.parquet with a JSON receipt
(no publish path, required --rules). PolicyEngineUKFirmRules runs
policyengine-uk's firm entity on the candidate table and reads
firm_vat_liability_if_registered; it imports policyengine-uk lazily
and is tested engine-free with a fake simulation, and was checked
locally against PolicyEngine/policyengine-uk#2940.

Refs #1705.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi and others added 11 commits November 22, 2026 15:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, document the CT gap, register it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…charge base, day-weighted 2026-27 surcharge rate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aper rounding, firm Class 1A NIC, RDEC PAYE/NIC cap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ther than infinite defaults

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Scotland scope notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oundary and reform tests

- Wales 2026-27: retail multiplier 0.350 for shops, kiosks, pharmacies and
  post offices below £51,000 (WSI 2025/1163 reg 3; WSI 2026/39; LGFA 1988
  Sch 7 para A19(2)), and the 19 public-service descriptions kept off the
  higher multiplier (reg 4). The thresholds are inert before 2026-27, so a
  reform to the single earlier multiplier reaches every Welsh property.
  The 2027-28 widening (WSI 2026/133) is documented, not modelled.
- Tests: CT 2023-2025, the 2025 loss allowance edge, the Employment
  Allowance £100,000 prior-year edge and 2025 change, NIC year
  transitions, firm_rd_intensity, the AIA share, the England 2023-24
  £51,000 multiplier edge, and four parameter-reform-to-incidence tests.
- Docs: veterans relief on firm_zero_rated_class_1_earnings, the stale
  PAYE/NIC cap sentence, and a list of firm taxes not modelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rge, plant for leasing

- VAT: the partial exemption recovery percentage is rounded up to a whole
  number, or to two decimal places above £400,000 a month of input tax
  (SI 1995/2518 reg 101(4)-(5), reg 101(5) added by SI 2005/762).
- Capital allowances: a company disposing of fully expensed plant pays a
  balancing charge on the relevant proportion of the disposal value
  outside the main pool (CAA 2001 s.59A), via
  firm_disposal_proceeds_full_expensing.
- Plant for leasing (firm_capex_main_pool_new_for_leasing) gets no full
  expensing (s.46 general exclusion 6) and takes the AIA then the s.45U
  main-rate FYA. Where the main-rate FYA is below the special-rate FYA,
  it takes the AIA before special-rate plant, so the order still gives
  the most relief in the year.
- Docstrings: business rates cover Wales and Scotland; firm_n_properties
  drives SBRR and SBBS.

Found by a Fable 5.2 rules audit; fixes reviewed by Fable 5.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rate, English rates gating

- CTA 2009 s.1056(2)(a): the R&D surrenderable loss is reduced by relief
  against same-period non-trading profits, so the loss is not relieved twice.
- The SME payable credit is capped at £20,000 plus 3x relevant PAYE/NIC from
  accounting periods beginning 1 April 2021 (s.1058(1)(aa)/(1A), then
  s.1112B), when firm_rdec_paye_nic_cap_supplied is set.
- New firm_small_profits_rate_excluded: close investment-holding and
  non-resident companies pay the main rate with no marginal relief
  (CTA 2010 s.18A, s.18B, s.18N; s.1042K(5) notional tax).
- England: RHL multipliers apply to occupied property only; before
  2024-25 empty and charity property paid the standard multiplier (SI
  2024/111); empty property below the reg 4(g) threshold (£2,900 from
  2017-18) is exempt while empty.

Audit and review by Fable 5.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@juaristi22 juaristi22 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at fa48a299b. The firm entity is the right idea, and the split that avoids double counting holds, with one gap. My main concern is how the entity attaches to policyengine-core. Below: your three questions first, then the PR's status, then one note.

Entity design

The concept is right:

  • Firms are their own population, with their own ids and weights.
  • They have no members until a job-link table exists.
  • Reading or mapping values between firms and other entities raises an error.
  • The certified-data aggregate-impact check confirms that no household or government total moves.

The risk is in how it attaches to core:

  • The patches apply to every model in the process. tax_benefit_system.py replaces TaxBenefitSystem.instantiate_entities and Simulation.clone on core's own classes at import. That covers, for example, policyengine.py running the US and UK models side by side. The replacements pass through when there are no firms, so the risk is the dependency on core, not a change in behaviour.
  • It depends on core's private names, with no upper bound on core. Two modules import core's private _branch_clone. simulation.py reaches into private attributes: _holders, _memory_storage, _get_exportable_input_periods, _to_person_dataframe and _bind_to_tax_benefit_system. The pin is policyengine-core>=3.34.9, so a core release that renames _branch_clone would break import policyengine_uk for every user, whether or not they use firms.
  • simulation.py grows by about 350 lines of special cases. They cover binding, cloning, exports, map_result, and the situation and dataset builders, and they track core internals. Each one is a place where a core change could silently drop the firm population.
  • Core treats the firm as a person. It marks it is_person=True, because a plain Entity is the only non-group kind it accepts. That is what forces the downstream changes.

My suggestion:

  • Keep the design.
  • File the core issue you have ready now, before PolicyEngine/policyengine.py#765 and PolicyEngine/policyengine-api#4339 build key comparisons into downstream code. The aim is to move root populations into core as a proper entity type.
  • When the core changes are out, please make sure Anthony reviews them. We discussed the risks and code debt of patching core recently.
  • Until then, add an upper bound on core and a CI job against core's main branch.
  • If core won't take root entities, fall back to a separate firm simulation that shares the parameter tree. It would need no core patches, since firms and households never meet inside a formula.

Double counting of employer NICs and VAT

The split holds:

  • firm_only_tax leaves out employer NICs and VAT, which reach households through ni_employer and vat.
  • Household business rates come from the outturn parameter gov.hmrc.business_rates.statistics.revenue, which the firm multipliers don't touch.
  • CT, the levy and the surcharge have no household term.

Gaps:

  • The interaction between the Employment Allowance and NIC rates is dropped.
    • Liabilities are held at baseline, so a rate or threshold change counts in full on the household side, which has no Employment Allowance. That includes employers whose liability stays under the allowance and who in fact pay nothing more.
    • The firm side subtracts only the change that comes from the allowance's own rules.
    • So the split overstates the yield of NIC rises and the cost of cuts. It matters most for packages like April 2025's: a 15% rate, a £5,000 threshold and a £10,500 allowance.
    • One fix: subtract the full change in the allowance, computed on the reform's liabilities, and keep household ni_employer gross.
  • VAT threshold and Flat Rate Scheme reforms reach no household total. This is documented. Splitting the VAT change the same way would carry them without counting rate changes twice: take only the change from rule changes, with rates held at baseline.
  • There are two levers for business rates: the household outturn parameter and the firm multipliers. The docs should say which one a reform should change.
  • CT could also be counted twice. corporate_incident_tax_change and a firm-side CT reform would add up if both were set.
  • The incidence shares aren't checked to sum to 1. The default, all to capital, puts the whole change on UK shareholders, with no share for foreign owners.

Announced values (12% WDA, 50% FYA, 6% surcharge)

Keep them in the baseline. pe-uk's own convention, in docs/book/policy/future-date-announcements.md, puts announced future-dated values in the baseline with the announcement cited. It keeps gov.contrib for changes that haven't been announced, and replaces a row when a measure is reversed. Add the Finance Act references at Royal Assent.

The three values match the HMRC Budget 2026 policy papers:

  • Bank surcharge: 6% from 1 January 2027 for 15 months, back to 3% from 1 April 2028. Periods that straddle 1 April 2028 are split at 31 March 2028.
  • Main-rate WDA: 12% for chargeable periods beginning on or after 1 April 2027.
  • Main-rate FYA: 50% for expenditure from 1 January 2027.

Two small points on the surcharge:

  • It is day-weighted over the wrong year. The weighting runs over 6 April to 5 April rather than the CT year, 1 April to 31 March. So 2027-28 gets 361/366 of a year at 6%, where the policy paper gives the whole financial year at 6%. Every year with a rate change is slightly off in the same way. A CT window for fiscal_year_blend would fix it.
  • The body and the YAML disagree. The body's "Known simplifications" says the 6% isn't apportioned, but the YAML day-weights it.

Status

  • CI isn't green at the head. In run 45182122591, Python shards 2, 5 and 6 hit the 90-minute limit and were cancelled, so Test / Result failed. The five shards that finished ran 8,428 tests with no failures.
  • The downstream PRs are already open. The body says they aren't opened yet, but PolicyEngine/policyengine.py#765 and PolicyEngine/policyengine-api#4339 have been open as drafts since 23 November.
  • Not every value is confirmed yet. The body says about 150 of the 173 dated values were confirmed, and the WDA and FYA rows say their clause numbers aren't verified.

Note

  • The default NIC base understates earnings above the threshold. Without a pay split it is paybill less headcount × threshold, so one low earner's unused threshold is netted against everyone else's pay. The docstring says so, and microcosm's runs show it: 0.828× the official figure with paybill alone, and 1.036× with the ASHE pay split.

Checked

  • The core patches, the simulation.py changes and the firm aggregate and incidence variables, read in full.
  • The three Budget 2026 values, against the HMRC policy papers on GOV.UK.
  • The CI log at the head.

@vahid-ahmadi

Copy link
Copy Markdown
Collaborator Author

Thanks María, this is very useful. My replies, point by point:

Core attachment. Agreed, keep the design but stop patching core. I'll file the core issue for root populations this week, before policyengine.py#765 and policyengine-api#4339 build on the current shape, and ask Anthony to review the core changes. Until core supports them, I'll cap policyengine-core below the next minor version and add a CI job that runs against core's main. Then a rename of _branch_clone or the holder internals fails in our CI rather than at import policyengine_uk. If core won't take root entities, the fallback is the one you describe: a separate firm simulation that shares the parameter tree.

Employment Allowance and NIC rates. You're right. Holding liabilities at baseline drops the case where a firm stays under the allowance after a rate rise, so the split overstates the yield. I'll change firm_tax_change_total to subtract the full change in the allowance, computed on the reform's liabilities, and keep household ni_employer gross. I'll add a test with the April 2025 package (15%, £5,000 threshold, £10,500 allowance) and a firm that stays under the allowance, which should net to zero.

VAT threshold and Flat Rate Scheme. I'll split VAT the same way: only the change from rule changes, with rates held at baseline, so rate changes aren't counted twice.

Business rates and CT levers. I'll document which lever a reform should use: firm multipliers for firm-level analysis, the outturn parameter for household-only runs. I'll also add a guard against setting corporate_incident_tax_change and a firm-side CT reform together. I'll check that the incidence shares sum to 1, and add a foreign-owner share to the capital incidence.

Announced values. Keeping them in the baseline, per future-date-announcements.md. I'll add the Finance Act references at Royal Assent.

Surcharge weighting. Good catch. I'll add a CT-year window (1 April to 31 March) for fiscal_year_blend, so 2027-28 is a full year at 6% and the split falls at 31 March 2028. I'll also fix the "Known simplifications" line in the body that contradicts the YAML.

Status. I'll fix the body (the downstream PRs are open, and the confirmed-values count), confirm or flag the WDA and FYA clause numbers, and look at why shards 2, 5 and 6 hit the 90-minute limit.

NIC base. Agreed. Without the ASHE pay split, the default nets one low earner's unused threshold against everyone else's pay. I'll make the pay split the default when it's available and keep the paybill-only path as a labelled fallback.

Reply drafted with AI assistance.

vahid-ahmadi and others added 2 commits November 26, 2026 12:30
…e master

The firm entity replaces core's instantiate_entities and Simulation.clone,
imports core's private _branch_clone and reads private holder attributes, so
a core rename would break `import policyengine_uk`. The cap holds core below
the next minor version, and the Core master workflow runs the firm and
core-internals tests on core's default branch for each code change and weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi and others added 2 commits November 26, 2026 12:49
Household ni_employer counts the gross change in employer National
Insurance. firm_tax_change_total held each firm's liabilities at baseline
when it measured the allowance, so a firm that stays under the allowance
after a rate rise was counted as paying more. It now subtracts the full
change in the weighted Employment Allowance, each simulation computing it
on its own liabilities (including the 2020-21 to 2024-25 prior-year limit),
so the two sides together count the change in what firms pay.

Tests: a rate rise for a firm under the allowance nets to zero (-7,000 on
the firm side); the April 2025 package on a 2024-25 firm (-19,202.40); a
rate rise past the prior-year limit counts the lost allowance (+25,000),
and supplied prior-year liabilities keep it (0). The mirror helper and its
keep-in-step comments are removed. Design and review by Fable 5.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Household vat carries VAT rate changes, so firm_tax_change_total left VAT
out and reforms to the registration threshold, the flat rate scheme and
partial exemption reached no household total. It now adds the change in
weighted firm VAT under the reform's rules with the rates held at
baseline: only firm_output_vat reads the rates (firm_flat_rate_turnover
through it), so those come from the baseline and everything else from the
reform. A firm whose registration flips counts its full liability at
baseline rates; a reform that changes both rates and rules drops their
interaction.

Tests: the no-reform identity (1,788,080), a rate-only reform (0), a
100,000 threshold (-98,000), a 15% default flat rate (+47,520), rate plus
threshold (-98,000), and a threshold cut that registers a partly exempt
firm (+89,250). Design and review by Fable 5.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi and others added 4 commits November 27, 2026 00:43
…relief, VAT de minimis, NI rates, SDIL and PPT to firms

Fourth audit (Fable 5.2, four areas against fetched statute). All new
inputs default to 0, False or UNKNOWN, and the full YAML suite is
unchanged at those defaults.

- Off-payroll deemed direct payments: secondary Class 1 for the fee-payer
  (SI 2000/727 regs 14, 17, 18), no Employment Allowance (NICA 2014 s.2(4)),
  and in the apprenticeship levy pay bill (FA 2016 s.100). Public
  authorities from April 2017, other clients from April 2021.
- Class 1A on termination awards above £30,000 from April 2020 (SSCBA
  s.10(1A); ITEPA s.403), at the secondary rate (15.05% in 2022-23).
- Class 1B on PAYE settlement agreements (SSCBA s.10A), 14.53% in 2022-23.
- Group relief: Part 5 claimed amount capped at total profits, before
  carried-forward losses (CTA 2010 ss.137-140, 269ZFA); Part 5A from April
  2017; non-banking group relief added back to bank surcharge profits;
  loss surrendered reduces the R&D surrenderable loss (CTA 2009 s.1056).
- VAT: direct attribution of input tax (reg 101(2)) and the de minimis
  tests (regs 105A, 106) behind firm_applies_partial_exemption_de_minimis.
- Northern Ireland rates from 2023-24 with firm_northern_ireland_district:
  regional and district poundages, SBRR (SR 2010/4) to March 2027, charity
  exemption, unoccupied property at half rate.
- Soft drinks industry levy (FA 2017 Part 2) and plastic packaging tax
  (FA 2021 Part 2), in firm_tax and firm_only_tax.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in the pay split NIC base

All new inputs default to 0 (1 for firm_rpdt_allowance_share), and every
existing firm output is unchanged at those defaults.

- Patent Box (CTA 2010 s.357A): RP x (rate - 10%) / rate on supplied
  relevant IP profits, the main rate before April 2023 and the applicable
  rate from then (F(No.2)A 2023 s.11; CIRD201020), phased in 60% to 100%
  (FA 2012 Sch 2 para 8). firm_profits_before_losses now nets the deduction.
- Residential property developer tax (FA 2022 ss.33, 43, 51): 4% above the
  group-shared £25m allowance, not deductible for CT.
- Digital services tax (FA 2020 ss.46-47): 2% above £25m of group UK
  revenues where worldwide revenues exceed £500m.
- Energy profits levy: 25%, 35% and 38%, day-weighted, to 31 March 2030.
- All four in firm_tax and firm_only_tax, with registry entries, docs and
  reform-to-incidence tests.
- Employer NIC: tests pin the pay split precedence and its two edge
  cases; docs say the split must be measured at the year's threshold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… effect

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…final review

- Test: a supplied employer NIC base is used as given with a pay split.
- Docs: EPL day-weighting, the DST inputs and defaults, the Patent Box
  rate, RPDT profits net of RPDT loss and group relief, the pay split
  threshold note on both inputs, and the Transitional Relief Supplement,
  SBRR second-property and RHL bill cap updates from BRIL 8/2026.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a firm entity and firm-side rules engine (employer NICs, corporation tax, business rates, VAT)

2 participants