Fisher's Exact Test Calculator
Perform Fisher's exact test on a 2x2 contingency table to determine if there is a significant association between two categorical variables.
Inputs
Results
P-Value (two-tailed)
0.07
Odds Ratio
9.33
How to Use This Calculator
- Enter Cell A (Row 1, Col 1), Cell B (Row 1, Col 2), and Cell C (Row 2, Col 1).
- Set Cell D (Row 2, Col 2).
- Review P-Value (two-tailed) and Odds Ratio.
- Use P-Value (one-tailed) and Exact Probability of This Table to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Cell A (Row 1, Col 1)
| Cell A (Row 1, Col 1) | P-Value (two-tailed) | Odds Ratio |
|---|---|---|
| 1,000 | 0 | 1,166.67 |
| 3,500 | 0 | 4,083.33 |
| 6,500 | 0 | 7,583.33 |
| 9,000 | 0 | 9,999 |
What each input means
- Cell A (Row 1, Col 1)
- Count for Group 1, Outcome 1 (e.g., treatment group with positive outcome).
- Cell B (Row 1, Col 2)
- Count for Group 1, Outcome 2 (e.g., treatment group with negative outcome).
- Cell C (Row 2, Col 1)
- Count for Group 2, Outcome 1 (e.g., control group with positive outcome).
- Cell D (Row 2, Col 2)
- Count for Group 2, Outcome 2 (e.g., control group with negative outcome).
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersCell A (Row 1, Col 1) = 8, Cell B (Row 1, Col 2) = 2, Cell C (Row 2, Col 1) = 3, Cell D (Row 2, Col 2) = 7 = 4 input(s) provided
- Calculate P-ValueP-Value0.06978 = 0.06978
- Calculate Odds RatioOdds Ratio = Math9.3333 = 9.3333
- Calculate P-ValueP-Value0.99726 = 0.99726
- Calculate Exact Probability of This TableExact Probability of This Table0.03215 = 0.03215
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Chi-Square Test Calculator
Perform a chi-square goodness-of-fit test comparing observed and expected frequencies across four categories.
StatisticsBayesian Prior Calculator
Apply Bayes' theorem to update a prior probability given test sensitivity and false positive rate. Calculate the posterior probability after a positive or negative result.
StatisticsLogistic Regression Calculator
Calculate the predicted probability, odds, and odds ratio from logistic regression coefficients. Visualize the S-shaped probability curve.
More in Math & Statistics.