Type your crosstab
One row per group and one column per answer, with counts, not percentages. Up to 6 rows and 6 columns.
Free tools / Chi-Square Calculator
Free tool
Test whether the answers to one question depend on another, straight from your crosstab. Or check one question’s answers against the shares you expected.
Your counts
Type counts, not percentages. The result updates as you type.
Result
Significant
p = 0.0089The answers depend on the group: the pattern across rows is too uneven to be chance at the 0.05 level (p = 0.0089). Biggest gap: Men × Yes, 50 counted against 40.0 expected.
Expected counts if there were no link
| Yes | No | Not sure | |
|---|---|---|---|
| Men | 40.0 | 45.0 | 15.0 |
| Women | 40.0 | 45.0 | 15.0 |
How to use it
One row per group and one column per answer, with counts, not percentages. Up to 6 rows and 6 columns.
Switch to one question to compare its counts with the shares you expected, such as an even split.
You get the chi-square value, the p-value, how strong the link is and the counts you'd expect if there were no link.
What the result means
A significant chi-square says the answers depend on the group. It doesn’t say how much. Cramér’s V does, from 0 for no link to 1 for a perfect one.
The test needs the real number of answers. The same 60/40 against 50/50 split is noise with 50 people per row and real with 500.
Small expected counts make the p-value unreliable. Combine small groups, or use Fisher's exact test for a 2 × 2 table.
Cramér's V for a table with two rows or two columns. Bigger tables use lower cut-offs, and the calculator applies them for you.
Each person must be in one cell only. If people could pick several answers, the counts aren’t independent and the test doesn’t apply.
The math
χ² = Σ (observed − expected)² ÷ expected
The expected count for a cell is its row total × its column total ÷ the grand total. Degrees of freedom are (rows − 1) × (columns − 1). Worked example: in the crosstab above, men who said yes were 50 against 40 expected, which adds (50 − 40)² ÷ 40 = 2.5 to a total of 9.444.
The chi-square value you need to pass for significance, by degrees of freedom.
| Degrees of freedom | 0.10 | 0.05 | 0.01 |
|---|---|---|---|
| 1 | 2.706 | 3.841 | 6.635 |
| 2 | 4.605 | 5.991 | 9.210 |
| 3 | 6.251 | 7.815 | 11.345 |
| 4 | 7.779 | 9.488 | 13.277 |
| 5 | 9.236 | 11.070 | 15.086 |
| 6 | 10.645 | 12.592 | 16.812 |
What does a chi-square test tell you?
Whether two questions are linked: whether the answers to one depend on the group from the other. A significant result means the pattern across rows is too uneven to be chance.
When should I use chi-square instead of a t-test?
Use chi-square for categories, such as yes, no or not sure. Use a t-test for averages, such as a rating from 1 to 10 or money spent.
What is a good p-value for chi-square?
Below 0.05 is the common standard. Then check Cramér's V: a significant result with a V under 0.1 is a real but very weak link.
What if some expected counts are under 5?
The p-value becomes a rough guide. Combine answers with few responses, collect more, or use Fisher's exact test for a 2 × 2 table.
What are degrees of freedom?
The number of cells that can change once the row and column totals are fixed: (rows − 1) × (columns − 1). A table with 2 rows and 3 columns has 2.
Can I enter percentages?
No, enter counts. If you only have percentages, multiply each one by the number of people in its row.
Keep going
SegmentOS writes the survey from one sentence. Send it to your own list or to a verified audience.
Free to start. No card needed.
Free calculators
Templates
Learn