Contents
PolicyEngine has developed a new artificial intelligence feature that transforms complex tax and benefit calculations into clear, accessible explanations. This innovation emerged from our participation in the Georgetown Beeck Center’s
Users frequently encounter intricate calculations spanning multiple programmes, each with distinct thresholds, phase-outs, and dependencies. Our solution combines PolicyEngine’s open-source rules engine with artificial intelligence to explain these calculations in plain language, building on our
The system integrates PolicyEngine’s tax-benefit rules with Anthropic’s Claude 3.5 Sonnet API. When calculating programme amounts like Universal Credit or Income Tax, PolicyEngine processes thousands of intermediate calculations involving household income, deductions, and other eligibility factors. Our new explanation system passes these complex intermediate calculations to the AI system, which generates natural language explanations.
For example, consider
The AI system analyses both final outcomes and the intermediate calculations contributing to them. Many variables in PolicyEngine’s system involve dozens of intermediate steps, calculated at both monthly and annual levels. This new feature makes these calculation chains transparent and comprehensible.
This explanation tool serves diverse needs across the policy ecosystem. Whether you’re a household trying to understand your taxes and benefits, a professional analysing complex policy interactions, or a researcher exploring programme mechanics, the system breaks down intricate calculations into clear explanations.
Following PolicyEngine’s existing policy analysis framework, the explanations adapt to different audiences, ranging from simplified overviews to detailed technical analyses. This flexibility makes complex policy calculations accessible while preserving the depth needed for technical users.
Having launched this feature in the PolicyEngine web app, we will extend it to
Max Ghenis, Pavel Makarchuk, Rachel Lawrie, and Li-Heng Pan also contributed to this feature.
anthony volk
Full-Stack Engineer at PolicyEngine
Get the latests posts delivered right to your inbox.
PolicyEngine is a registered charity with the Charity Commission of England and Wales (no. 1210532) and as a private company limited by guarantee with Companies House (no. 15023806).
© 2025 PolicyEngine. All rights reserved.