Every Single CalculatorOne place for every calculator
÷Everyday math

Chi-square goodness of fit calculator

Test whether observed counts match what was expected.

Example: You are testing whether a die or a spinner is fair.

Your numbers

  • Chi-square0
  • Degrees of freedom0
  • p-value0
  • Verdict at the 5% level0

How it is worked out

χ² = Σ (observed − expected)² ÷ expected

A worked example

A die rolled 100 times giving 18, 22, 20, 25, 15 against 20 each: χ² = 2.9, nowhere near unusual.

How we know this calculator is right

Before this calculator went on the site, 8 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: students.