2×2 Chi-Square Independence Test Calculator
Test independence in a 2-by-2 contingency table with Pearson chi-square, 1 degree of freedom, expected-count warning and p-value.
YOUR SHORTCUTS
Continue where you left off
Recently used
Your favorites
These shortcuts remember only calculator names on this device, not the values you enter.
2×2 Chi-Square Independence Test Calculator
View complete schedule
ⓘ Calculated locally in your browser. Results depend on the values and units you enter.
Interactive mathematical graph
The axes, points and dimensions are recalculated from the values you enter.
Enter valid values to draw this graph.
Interpretation:
Graph data (accessible table)
| Reference | X | Y |
|---|
What changes if one input changes?
27: 0.00640108146222187 p-value · 30: 0.00256897008144286 p-value · 33: 0.00103580306832168 p-value
This combination has no safe comparable results. Check the inputs above or select another value.
How this calculator works
Enter four nonnegative whole-number counts for a 2×2 cross-tabulation. Pearson’s uncorrected chi-square statistic is N(ad−bc)² / (row1×row2×column1×column2), with df=1. The p-value comes from the chi-square(1) right tail. Both rows and columns must contain observations. Small expected counts, typically less than 5, make the asymptotic approximation questionable; use a suitable exact test such as Fisher’s in that case. These are counts of independent observations, not percentages, proportions or repeated measurements.
Worked example
Engine-checked example
This example uses the values shown below, not your current entries.
- Row 1 / Column 1 count
- 30
- Row 1 / Column 2 count
- 20
- Row 2 / Column 1 count
- 15
- Row 2 / Column 2 count
- 35
Frequently asked questions
Does this include Yates correction?
No. The Pearson chi-square statistic is calculated without continuity correction.
Can I use sparse tables?
You can view the expected-count diagnostic, but for low expected counts a Fisher exact test may be more appropriate.
Results are informational and assume the stated inputs and formulas. Double-check critical financial or engineering decisions with a qualified professional.
Was this calculator helpful?
Your feedback helps you keep track of useful tools on this device.
Your selection stays in this browser. No public vote count is shown.
Prefer EverydayCalc on Google
Opens Google source preferences. Availability and placement are determined by Google; this does not guarantee higher rankings.