Fisher’s exact test
Fisher’s exact test answers the same question as chi-square on a 2 × 2 table (are the two variables associated?), but computes the exact probability instead of approximating it. It’s the right test when any expected frequency is below 5, which is common in theses with small samples. Enter how many people fall in each cell.
Each cell is a number of people. You can rename the groups and answers.
The calculation runs in your browser. We don’t store what you type.
How it’s calculated
With row and column totals fixed, the probability of every possible table is computed with the hypergeometric distribution.
The two-sided p-value adds up the probabilities of all tables as likely as or less likely than the observed one, as SPSS and R do.
The odds ratio is (a × d) / (b × c). If any cell is 0, 0.5 is added to every cell so it can be computed (Haldane correction).
Phi is the effect size: the correlation between the two yes/no variables.
How to read the result
- p < .05: the two variables are associated. Look at the row percentages to see the direction.
- An odds ratio of 3 means the odds of “yes” are three times higher in the first group. If its confidence interval includes 1, the difference is inconclusive.
- Phi of .1 is small, .3 medium and .5 large.
In the glossary: p-value · Effect size · Parametric and non-parametric tests
Next stepWhich statistical test should I use?Not sure which test fits each hypothesis? Answer a few questions and we’ll tell you.Step-by-step guideWhich statistical test to use in your thesis: a decision-tree guideHow to choose your thesis’s statistical test: decision tree, table of parametric and non-parametric tests and common mistakes. With a free test selector.Frequently asked questions
- When do I use Fisher instead of chi-square?
- When the table is 2 × 2 and any expected frequency is below 5. SPSS shows it automatically under Crosstabs > Chi-square for 2 × 2 tables.
- Does it match SPSS?
- Yes. The two- and one-sided p-values match SPSS’s “Fisher’s Exact Test” and R’s fisher.test.
- Does it work for bigger tables?
- This calculator is for 2 × 2 tables. With more rows or columns and few cases, merge categories or use the Freeman-Halton extension in SPSS (Exact Tests).
Know what you want to ask?
Build the survey in SurvIQ, share it by link, WhatsApp or QR code, and watch results come in live. The Free plan is free forever.
Create a free survey