Skip to content

About

PolicyEngine New Zealand: Microsimulation model for the New Zealand tax and benefit system

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

PolicyEngine New Zealand

Test

PolicyEngine New Zealand is a microsimulation model for New Zealand's tax and benefit system. It enables users to calculate the effects of taxes and benefits on households, and to simulate the impacts of policy reforms.

Features

  • Tax: income tax and the ACC Earners' Levy
  • Working for Families: Family Tax Credit, In-Work Tax Credit, Best Start
  • Benefits: annualised Jobseeker Support net of tax, from a supplied grant and supplied weekly assessable income, including a linked partner's share of a couple rate; annualised gross NZ Superannuation for a supplied recipient; the annualised Accommodation Supplement before income abatement and rounding; and a separate Accommodation Supplement cash assets test
  • Parameters that no formula uses yet: the GST rate, the KiwiSaver contribution rates and the government contribution's settings

Quick Start

The package is not on PyPI. Install it from GitHub:

pip install git+https://github.com/PolicyEngine/policyengine-nz.git
from policyengine_nz import NewZealandTaxBenefitSystem
from policyengine_core import Simulation

# Create system
system = NewZealandTaxBenefitSystem()

# Define a household
situation = {
    "people": {
        "person": {
            "employment_income": {"2025": 50000},
            "age": {"2025": 30}
        }
    }
}

# Run simulation
sim = Simulation(situation=situation, tax_benefit_system=system)
income_tax = sim.calculate("income_tax", "2025")
acc_levy = sim.calculate("acc_earners_levy", "2025")

print(f"Income tax: ${income_tax[0]:,.2f}")
print(f"ACC levy: ${acc_levy[0]:,.2f}")

System Coverage

Tax System (Inland Revenue Department)

  • Personal Income Tax: Progressive rates (10.5%, 17.5%, 30%, 33%, 39%) with current thresholds
  • ACC Earners' Levy on liable employee earnings, capped by tax year: an annual estimate at the GST-inclusive rate Inland Revenue publishes. It does not compute PAYE deductions pay by pay. A bare year uses the rate and cap in force on 1 January of that year, so 2025 uses those of the tax year from April 2024 to March 2025.
  • GST: the model stores the 15% rate as a parameter and does not calculate GST.

Working for Families (Inland Revenue Department)

  • Family Tax Credit: $7,921 a year for the eldest child and $6,454 for each other child (2026-27), abated with the In-Work Tax Credit at 27.5% of family income over $44,900
  • In-Work Tax Credit: $7,670 a year for working families with up to three children (2026-27), returning to $5,070 from 2027-28, plus $780 for each further child
  • Best Start: $4,041 a year for each child under 3 (2026-27), abated at 21% of family income over $79,000; children born before 1 April 2026 are not abated in their first year

Working for Families credits are calculated for the tax year that ends in March of the period year: 2025 covers 1 April 2024 to 31 March 2025. Declare families with parents and children, and set each person's age. Without families, or in a family with no children, members under 16 count as children and older members count as caregivers whose income counts toward family income. Set child_birth_date for exact part-year amounts; otherwise a child, or a caregiver who turns 16 in the year, is taken as born on 1 October of the birth year implied by their age at 31 March. Set wff_child_last_day to a person's last day as a dependent child when that comes before their 18th birthday, or before 31 December of that year for an 18-year-old with wff_qualifying_18_year_old set, and in_work_tax_credit_first_day or in_work_tax_credit_last_day when a family works, or is off a main benefit, for part of the year. Request each credit for a year that starts on 1 January, such as 2027 or year:2027-01-01; a year that starts in another month raises an error. Core answers a request for a month, such as 2027-05, with a twelfth of that period year's credit. The credits count children from these inputs, so setting num_children or is_child changes no credit.

situation = {
    "people": {
        "parent": {"employment_income": {"2027": 40000}, "age": {"2027": 35}},
        "child": {"age": {"2027": 2}},
    },
    "families": {"family": {"parents": ["parent"], "children": ["child"]}},
}
sim = Simulation(situation=situation, tax_benefit_system=system)
sim.calculate("family_tax_credit", "2027")  # 7,921

Social Security Benefits (Work and Income)

  • Jobseeker Support: $372.55 a week after tax from 1 April 2026 for a single person aged 25 or over without dependent children (the clause 1(d) rate), before the income test (period 2027 reads the rates for April 2026 to March 2027)
  • New Zealand Superannuation: the annualised gross standard rate, from age 65, for a person that receiving_nz_super marks as a recipient
  • Accommodation Supplement: the annualised amount for the area before income abatement and rounding, and a separate cash assets test

Retirement Savings

  • KiwiSaver: the model stores the standard default employee and employer contribution rates (3.5% from 1 April 2026 and 4% from 1 April 2028), separate employee election rates of 4%, 6%, 8% and 10%, the reduced employee and employer rates, and the government contribution's maximum, match rate and income threshold as parameters, and calculates no contributions.

Data Sources

All parameters are sourced from official New Zealand government websites:

Development

git clone https://github.com/PolicyEngine/policyengine-nz.git
cd policyengine-nz
make install
make test

Documentation

Full documentation is available at policyengine.org/nz/api

Contributing

We welcome contributions! Please see our developer guide for more information.

License

PolicyEngine New Zealand is licensed under the AGPL-3.0 License.

Acknowledgments

This project builds on the work of New Zealand Treasury's TAWA microsimulation model and other open source tax-benefit modeling efforts. We acknowledge the valuable research and data provided by:

  • New Zealand Treasury Analytics & Insights team
  • Statistics New Zealand
  • Parliamentary Budget Office research
  • Academic researchers in tax and social policy

Special thanks to the broader PolicyEngine community and OpenFisca ecosystem for providing the technical foundation for this work.

About

PolicyEngine New Zealand: Microsimulation model for the New Zealand tax and benefit system

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages