Free online tools

Chi-Square Test Calculator

Use a count table for association or observed counts and expected weights for goodness of fit.

Enter your values

For independence, use one row per category and separate counts with spaces or commas. For goodness of fit, enter observed | expected weight on each row.

This tool processes your input in your browser.

Result

Find counts expected under the null model

In an independence table multiply row and column totals and divide by the overall count. For goodness of fit enter positive relative weights for the theoretical categories.

Compare actual with expected cells

The Pearson statistic sums each squared observed-minus-expected difference divided by its expected count. The table displays expected counts so you can assess whether the asymptotic model is appropriate.

Frequently asked questions

Does this apply a continuity correction to a 2 by 2 table?

The tool uses the uncorrected Pearson statistic throughout.

What if I fitted parameters from the same sample?

Goodness of fit here uses fixed expected weights and counts categories minus one for degrees of freedom. A fitted model requires a different adjustment.