Free tools / Chi-Square Calculator

Free tool

Chi-Square Calculator

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.

Significance level

Result

Significant

p = 0.0089
Chi-square
9.444
Degrees of freedom
2
p-value
0.0089
Cramér's V
0.217 (small)
Total responses
200

The 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

YesNoNot sure
Men40.045.015.0
Women40.045.015.0

You have the number. Now ask the question.

Say it in a sentence. SegmentOS writes the survey, and real people answer it.

Free to start. No card needed.

How to use it

Counts in, a verdict out.

Crosstabyes / no / not sure
Men50 / 35 / 15
Women30 / 55 / 15
Total200
01

Type your crosstab

One row per group and one column per answer, with counts, not percentages. Up to 6 rows and 6 columns.

Counted against expected
Option A50 vs 33.3
Option B30 vs 33.3
Option C20 vs 33.3
02

Or test one question

Switch to one question to compare its counts with the shares you expected, such as an even split.

ResultSignificant
Chi-square9.444
p-value0.0089
Cramér's V0.217
03

Read the result

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

Is there a link, and how strong?

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.

60/40 against 50/50
50 per rowp = 0.31
500 per rowp = 0.0015

Counts, never percentages

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.

Rule of thumb
All 5 or morefine
A few under 5rough guide
Any under 1don't rely on it

Expected counts under 5

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
Small0.10
Medium0.30
Large0.50

How strong the link is

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

How chi-square is calculated

The formula

χ² = Σ (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.

Critical values

The chi-square value you need to pass for significance, by degrees of freedom.

Degrees of freedom0.100.050.01
12.7063.8416.635
24.6055.9919.210
36.2517.81511.345
47.7799.48813.277
59.23611.07015.086
610.64512.59216.812

Questions

About the chi-square test

Reading a crosstab? See how it works

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

Related studies and tools

Get the crosstab first.

SegmentOS writes the survey from one sentence. Send it to your own list or to a verified audience.

Free to start. No card needed.