Result
Enter data and click Calculate
Compute chi-square statistic, p-value, degrees of freedom, and effect size.
No recently used tools
Loading categories...
Free online chi-square calculator for test of independence and goodness of fit. Compute chi-square statistic, expected frequencies, p-value, degrees of freedom, critical value, and Cramér’s V with interactive distribution chart and Python scipy export.
Compute chi-square statistic, p-value, degrees of freedom, and effect size.
A chi-square test (χ²) is a statistical hypothesis test used to determine whether there is a significant association between categorical variables or whether observed frequencies differ from expected frequencies. It is one of the most widely used non-parametric tests in statistics.
Analyze relationships between categorical variables such as gender, preference, treatment group, or survey response.
Compare what you observed in your data against what you would expect under the null hypothesis of no association.
Determine if the difference between observed and expected frequencies is large enough to reject the null hypothesis.
When p-value < α, the observed frequencies differ significantly from expected. There is a statistically significant association between the variables.
When p-value ≥ α, there is insufficient evidence to conclude an association. The observed differences could be due to chance.
Measures strength of association: V ≈ 0.1 is small, V ≈ 0.3 is medium, and V ≥ 0.5 indicates a large effect size.
A statistically significant result may not be practically meaningful. Always consider effect size, sample size, and real-world context alongside the p-value.
Tip: When expected frequencies are too small (especially in 2×2 tables), use Fisher’s exact test instead. For ordinal data with a natural ordering, consider the Cochran-Armitage trend test.
| Field | Example Use Case |
|---|---|
| Medicine | Test whether treatment outcome is associated with patient group |
| Marketing | Analyze if product preference differs by demographic segment |
| Genetics | Test if observed genotype ratios match Mendelian expected ratios |
| Education | Determine if pass/fail rates differ across teaching methods |
| Quality Control | Check if defect rates are independent of production line |
| Social Sciences | Examine if voting preference is related to age group or region |