Free Tools › Chi-Square Calculator
Run a chi-square test of independence on tables up to 5×5. You get the chi-square statistic, degrees of freedom, p-value, Cramér's V and expected counts, with a warning when counts are too small.
FreeNo account neededYour data stays in your browser
| Column 1 | Column 2 | |
|---|---|---|
| Row 1 | ||
| Row 2 |
| Chi-square (χ²) | 3.922 |
|---|---|
| Degrees of freedom | 1 |
| p-value | 0.048 |
| Cramér's V (effect size) | 0.140 |
| Total N | 200 |
| 15.00 | 85.00 |
| 15.00 | 85.00 |
Choose 2 to 5 rows and 2 to 5 columns to match your contingency table.
Type the frequency in each cell. For a 2×2 table you can tick Yates continuity correction.
Open Expected counts; if many are below 5, especially in a 2×2 table, use Fisher's exact test instead.
See χ², degrees of freedom, the p-value, Cramér's V and the total N, then click Copy APA-style result.
The chi-square test of independence checks whether two categorical variables are associated, by comparing the observed counts with the counts expected if there were no association.
The test relies on reasonably large expected counts. A common rule of thumb is that no expected count should be below 1 and no more than 20% below 5; otherwise use Fisher's exact test.
Chi-square uses an approximation that needs adequate expected counts; Fisher's exact test calculates the exact probability and suits small samples.
It makes the 2×2 test more conservative. Many statisticians report the uncorrected test for moderate or large samples; follow your field's convention.