Skip to content

Advertisement

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 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 to 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

Fisher's exact test examines association between two binary variables in a 2 by 2 table. Each table probability follows a hypergeometric distribution conditional on row and column totals.

The two-sided p-value sums probabilities of tables no more probable than the observed table. An odds ratio above 1 indicates positive association for the chosen cell arrangement.

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
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.