Chi-Square Calculator

This calculator runs a one-sample chi-square goodness-of-fit test, checking whether the counts you have observed across a set of categories differ from what you would expect by chance, or whether the pattern points to something more than random variation. Start by entering the number of categories you are comparing, then type in the observed frequency for each one as it appears in your data. The calculator works out the expected frequency for every category, splitting the total observed count evenly across categories, along with the difference between observed and expected and each category's contribution to the chi-square statistic. These figures are summed to give you the overall chi-square value, the degrees of freedom, and the critical value needed to reject the null hypothesis at the standard 0.05 significance level. Where you enter exactly two categories, Yates' continuity correction is applied automatically to reduce bias in the calculation. The final result tells you plainly whether your chi-square value clears the critical threshold, meaning you can safely reject the null hypothesis that the categories occur with equal frequency, or whether it falls short, meaning the observed differences could plausibly be down to chance. This is a useful check for survey responses, dice or coin trials, market research counts and any dataset where you are testing category frequencies against an expected even split.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz

O = observed frequency

E = expected frequency

O E O-E (O-E)2* (O-E)2/E*

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.