Toolstia / Fisher exact test calculator

Fisher exact test calculator

The Fisher exact test checks whether two groups differ in an outcome when the counts are small. Fill in the four cells of a 2x2 table to get exact p-values and the odds ratio.

Outcome 1Outcome 2
Group 1
Group 2

Fisher exact test checks whether the rows and columns of a 2 by 2 table are related. It is exact, which makes it the usual choice when counts are small, for example when an expected count is below 5. The two sided value adds up every table that is as unlikely as yours or less likely.

How it works

  1. Enter the four counts of the table.
  2. Read the two sided p-value and the one sided values.
  3. Check the odds ratio and the verdict.

When to use it

Use it instead of chi-square when any expected count is below 5, which happens often with small samples.

How it works

It uses the hypergeometric distribution to add up the probability of every table with the same totals that is as unlikely as yours or less likely.

Odds ratio

The sample odds ratio is a times d divided by b times c. It is undefined when a denominator is zero.

One sided values

The less and greater values test a direction chosen in advance.

Questions

Is my data sent anywhere?

Everything happens in your browser, and nothing you enter is sent anywhere.

What counts as significant?

A common cutoff is a p-value below 0.05, but choose your level before you look at the data.

Can I use it for large counts?

Yes. It works for any counts, though chi-square gives nearly the same answer for large ones.