Both the chi-square test of independence and Fisher's exact test ask whether two categorical variables are associated, for example whether recovery depends on the treatment received. The difference is how they compute the p-value, and that matters most when samples are small.
In this guide
The short answer
| Situation | Use |
|---|---|
| All expected counts ≥ 5 | Chi-square test |
| Any expected count < 5 in a 2 × 2 table | Fisher's exact test |
| Larger table with more than 20% of expected counts < 5, or any < 1 | Fisher-Freeman-Halton exact test, or combine categories |
| Very large samples | Chi-square (Fisher's test gives essentially the same answer but is slower) |
Why the expected count rule matters
The chi-square test uses an approximation: it assumes the test statistic follows a chi-square distribution. That approximation works well with reasonably large expected counts but becomes unreliable when some cells expect only a handful of observations, usually making p-values too small. Fisher's exact test computes the exact probability of the observed table (and more extreme ones) given the row and column totals, so it needs no approximation.
The rule concerns expected counts (row total × column total / grand total), not the counts you observed. A cell with an observed 0 is fine if its expected count is 5 or more. The chi-square calculator shows the expected counts and warns you when they are too small.
Worked example
A pilot study of 18 patients compares a new treatment with standard care.
| Recovered | Not recovered | Total | |
|---|---|---|---|
| New treatment | 7 | 1 | 8 |
| Standard care | 2 | 8 | 10 |
| Total | 9 | 9 | 18 |
The expected counts are 4, 4, 5 and 5, so two cells are below 5 and the chi-square approximation is questionable. An uncorrected chi-square test gives χ²(1) = 8.10, p = .004, while Fisher's exact test gives p = .015. Both are significant here, but the chi-square p-value overstates the evidence. Report Fisher's test.
The odds ratio shows the size of the effect: (7 × 8) / (1 × 2) = 28. The odds of recovery were 28 times higher with the new treatment, although with only 18 patients the confidence interval is very wide, so the true effect is very uncertain.
What about Yates' continuity correction?
Yates' correction adjusts the chi-square statistic for 2 × 2 tables to make it more conservative. It tends to overcorrect, and with modern software there is little reason to use it: when expected counts are small, use Fisher's exact test; when they are adequate, use the uncorrected chi-square test.
How to report Fisher's exact test in APA 7
Seven of 8 patients (88%) receiving the new treatment recovered, compared with 2 of 10 (20%) receiving standard care. Because two expected cell counts were below 5, Fisher’s exact test was used. The association was significant, p = .015, odds ratio = 28.0.
Fisher's test has no test statistic or degrees of freedom to report; give the counts or percentages, the exact p-value and an effect size such as the odds ratio (with its confidence interval) or phi.
Related tests
- Chi-square test of independence guide for larger samples and tables.
- McNemar test for paired yes/no data, such as before and after on the same people.
- Goodness of fit test for one categorical variable against expected proportions.
Frequently asked questions
When should I use Fisher’s exact test instead of chi-square?
Use it when any expected count in a 2 × 2 table is below 5, or more generally when the sample is small. With adequate expected counts both tests agree closely.
Can Fisher’s exact test be used for tables larger than 2 × 2?
Yes. The Fisher-Freeman-Halton extension handles r × c tables, although it becomes computationally heavy for large samples.
Is Fisher’s exact test one-tailed or two-tailed?
Both are available. Report the two-tailed p-value unless you specified a directional hypothesis before collecting the data.
What effect size goes with Fisher’s exact test?
The odds ratio with its 95% confidence interval is the most informative. Phi (φ) is an alternative for 2 × 2 tables.


