Enter your counts and get the chi-square statistic, degrees of freedom, and the exact p value. Works for tests of independence and goodness of fit.
Example above is a 2×2 table: rows are groups, columns are outcome categories. Up to 10×10 supported.
Crosstabs from a real dataset? ReliCheck Quanta builds contingency tables from raw data, checks expected cell counts, and produces APA tables automatically. Free to try on your Mac.
Get QuantaThe p value is the area in the right tail of the chi-square distribution that sits beyond your test statistic, at your degrees of freedom. Two inputs produce it: the chi-square value and df. Nothing else.
Degrees of freedom come from the shape of the data, not the sample size. For a test of independence, df = (rows − 1) × (columns − 1). For goodness of fit, df = number of categories − 1.
Take a 2×2 table of 85 people: 30 and 12 in the first row, 18 and 25 in the second.
Run those same numbers through the calculator above and you get χ²(1, N = 85) = 7.56, p = .006, φ = .30.
Critical values below. If your chi-square statistic is larger than the value in a column, your p value is smaller than that column's threshold. A table gives you a range; the calculator gives you the exact number.
| df | p = .05 | p = .01 | p = .001 |
|---|---|---|---|
| 1 | 3.841 | 6.635 | 10.828 |
| 2 | 5.991 | 9.210 | 13.816 |
| 3 | 7.815 | 11.345 | 16.266 |
| 4 | 9.488 | 13.277 | 18.467 |
| 5 | 11.070 | 15.086 | 20.515 |
| 6 | 12.592 | 16.812 | 22.458 |
| 7 | 14.067 | 18.475 | 24.322 |
| 8 | 15.507 | 20.090 | 26.124 |
| 9 | 16.919 | 21.666 | 27.877 |
| 10 | 18.307 | 23.209 | 29.588 |
Worked from the chi-square distribution, upper tail. Reporting an exact p value is the APA 7 preference; use the table to sanity check, not to report.
Test of independence: two categorical variables, one sample. Example: is program completion (yes/no) related to enrollment status (full time/part time)? Enter the cross-tabulated counts.
Goodness of fit: one categorical variable compared against expected proportions. Example: do students choose the four majors equally often? Enter observed counts and, if the expectation is not equal shares, the expected proportions.
A small p value tells you the association is unlikely to be chance. It does not tell you the association is large. For tests of independence the calculator reports Cramer's V (phi for 2×2 tables). Values around .10 are small, .30 medium, and .50 large for df* = 1, with thresholds shrinking as tables grow.
Report both. A p of .001 with a V of .08 is a real but trivial association, and the p value alone hides that.
A chi-square result gets harder to defend when expected counts are small, when the table is bigger than two by two, or when the same people appear in more than one cell. If you are unsure whether the test holds up in your design, a written review by a PhD statistician costs less than finding out at peer review.