Chi-Square Calculator
Test whether observed counts fit expected counts, or whether two categories are linked in a table, and get the chi-square, degrees of freedom and p-value.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
chi-square = sum (observed - expected)^2 / expected
Frequently asked questions
When can I use chi-square?
With counts, not percentages, and when expected counts are mostly at least 5.
What does a small p-value mean?
The observed counts differ from what the null hypothesis predicts more than chance would explain.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
P-Value Calculator
Convert a z score, t value, chi-square or F value into a p-value, one or two tailed, with the degrees of freedom you supply.
Probability Distribution Calculator
Find probabilities for the normal, binomial and Poisson distributions, for one value, a tail or a range.
Significant Difference Calculator
Test if two proportions or two means differ significantly from summary figures, with the effect size and a plain answer at your chosen alpha.