Fisher's Exact Test Calculator

Paste your 2x2 table, choose the alternative hypothesis, and obtain exact hypergeometric probabilities, mid-p adjustments, odds ratios, and a concise interpretation. Designed for small samples where chi-square approximations break down.

1. Enter Your 2x2 Contingency Table

Hypergeometric backbone

Formula snapshot

Fisher's exact probability for observed table \((a, b, c, d)\):

\[ P = \frac{\binom{a + b}{a}\binom{c + d}{c}}{\binom{n}{a + c}}, \quad n = a + b + c + d \]

Sum probabilities across tail tables consistent with the margins to obtain the exact p-value for your chosen alternative.

Alternative hypothesis