Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Fisher exact test calculator

Enter the four counts of a 2 by 2 table. The calculator keeps margins fixed and sums probabilities of the relevant tables.

Exact p-value: —

Fill in the fields above — the result is computed on this page.

Odds ratio ad/bc
—
Observed table probability
—
Row 1 total
—
Row 2 total
—
Column 1 total
—
Column 2 total
—

Tables with the same margins

a b c d Probability
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • The test remains useful with small expected counts.
  • Interpret the odds ratio together with row and column definitions.

With zero cells the raw odds ratio may be infinite or undefined. This calculator does not compute an odds-ratio confidence interval.

How do I use this page?
  1. Enter four non-negative counts.
  2. Choose the alternative direction.
  3. Read the exact p-value and odds ratio.

What this page does not do: With zero cells the raw odds ratio may be infinite or undefined. This calculator does not compute an odds-ratio confidence interval.

Further reading

Theory — what is Fisher's exact test?

Fisher's exact test checks whether two binary variables are related within a 2 by 2 table. The probability of each possible arrangement of counts comes from the hypergeometric distribution, with row and column sums fixed at the observed values. The two-sided p-value is the sum of probabilities of tables as extreme or more extreme than the one observed. The test is especially useful with small expected counts, where the chi-square test can be unreliable.

Frequently asked questions

When should I use Fisher rather than chi-square?
Especially when expected counts are small in a 2 by 2 table.
Is the result exact?
Yes for the fixed margins and selected tail definition; it does not use an asymptotic p approximation.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.