Fisher Exact Test
Enter four cell counts in a 2x2 table and get the exact two-tailed p-value, odds ratio, and confidence interval.
2×2 Contingency Table
| Total | |||
|---|---|---|---|
| 15 | |||
| 15 | |||
| Total | 13 | 17 | 30 |
Fill in the table and click Run Test to see results.
Two-Tailed P-Value
—
Odds Ratio
—
95% Confidence Interval for Odds Ratio
—
Left-Tail P
—
P(X ≤ a)
Right-Tail P
—
P(X ≥ a)
Row Proportions
Summary
Enter four cell counts in a 2x2 table and get the exact two-tailed p-value, odds ratio, and confidence interval.
How it works
- Enter the four cell counts (a, b, c, d) for your 2x2 table.
- Row and column marginal totals are computed automatically.
- The exact p-value is computed by summing the hypergeometric probabilities of all 2x2 tables with the same marginals that are as extreme as or more extreme than the observed table.
- Two-tailed p-value combines both tails: all tables with probability ≤ P(observed).
- The odds ratio (a×d)/(b×c) measures the strength of association.
- A 95% confidence interval for the odds ratio is estimated using Cornfield's method.
Use cases
- Determine if a new drug reduces adverse events compared to a placebo in a small clinical trial.
- Test whether disease presence is associated with a binary risk factor when sample sizes are small.
- Analyze a 2x2 contingency table when any expected cell count falls below 5.
- Compare pass/fail rates between two groups in quality control.
- Assess whether two categorical survey responses are independent.
- Validate genetic association studies with rare allele frequencies.
- Replace the chi-square test when the approximation assumption is violated.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu