QuickToolbox

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

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