Toolstia / Chi-square calculator

Chi-square calculator

Use the chi-square test to see whether counts differ from what chance would give. Enter a table of counts to test whether two categories are linked, or one row of counts to test them against equal or expected values. You get the statistic, degrees of freedom, p-value and expected counts.

The chi-square test compares the counts you saw with the counts expected if there were no link between the categories. No continuity correction is applied.

How it works

  1. Choose independence or goodness of fit.
  2. Enter the observed counts.
  3. Read the p-value and check the expected counts.

Independence

Each row of the table is a line of counts. The test compares them with the counts expected if the row and column categories had no link.

Goodness of fit

Enter one row of counts. They are compared with equal shares by default, or with expected counts or ratios you give.

Effect size

Cramer V runs from 0 to 1 and shows how strong the link is, which the p-value alone does not.

The 5 rule

The test works best when every expected count is at least 5. The tool warns if some are lower.

Questions

Does it use a continuity correction?

No. The plain Pearson test is used, so a 2 by 2 table matches the standard formula. Everything happens in your browser, and nothing you enter is sent anywhere.

Can I use percentages?

No. Use counts. Percentages hide the sample size, which the test needs.

What is a significant result?

A p-value below 0.05 is the common cut-off. It means the pattern is unlikely to be chance alone.