Skip to article frontmatterSkip to article content
Social Policy

PolicyEngine New Zealand

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

Key Components

Tax System

Benefits and Tax Credits

Retirement Savings

Getting Started

pip install policyengine-nz
from policyengine_nz import NewZealandTaxBenefitSystem

# Create a tax and benefit system
system = NewZealandTaxBenefitSystem()

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

# Calculate income tax
from policyengine_core import Simulation
sim = Simulation(situation=situation, tax_benefit_system=system)
income_tax = sim.calculate("income_tax", "2025")
print(f"Income tax: ${income_tax[0]:,.2f}")

Official Data Sources

This model is built using official New Zealand government sources:

Contributing

We welcome contributions! Please see our developer guide for information on how to contribute to PolicyEngine New Zealand.

License

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