Free Tools › Fisher's Exact Test Calculator

Fisher's Exact Test Calculator (2×2)

Test for an association in a 2×2 table when the sample is small. Get exact two-sided and one-sided p-values and the sample odds ratio.

FreeNo account neededYour data stays in your browser

Outcome yesOutcome no
Group 1
Group 2

Results

p-value (two-sided)0.035
p-value (one-sided, group 1 lower)0.999
p-value (one-sided, group 1 higher)0.024
Sample odds ratio20.000
Get new free research tools firstOccasional emails when we add tools and guides. No spam.

We only use your email to send these updates, never share it, and you can unsubscribe by replying to any email or writing to info@timelyscholar.com. Privacy Policy

How to Use the Fisher's Exact Test Calculator

  1. 1

    Enter the 2×2 table

    Counts for each group and outcome.

  2. 2

    Read the p-values

    Two-sided and both one-sided p-values.

  3. 3

    Report the result

    Give the counts in each group, the two-sided p-value and an effect estimate.

When to use Fisher's exact test

Fisher's exact test calculates the exact probability of the observed table, given its row and column totals, instead of relying on the chi-square approximation.

It is the usual choice when expected counts are small, typically when any expected count is below 5 in a 2×2 table.

The chi-square test relies on an approximation that is only trustworthy when no more than 20% of cells have expected counts below 5 and no cell is below 1. In a 2×2 table, a single small cell already breaks that rule. Fisher's exact test has no such requirement: it is valid at any sample size.

Worked example: in a small pilot, 1 of 10 treated participants and 7 of 10 controls had the outcome. The expected count is 4 in both outcome cells, so chi-square is unreliable. Fisher's exact test gives a two-sided p = 0.020 and a sample odds ratio of 0.05. A chi-square test on the same table gives p = 0.006, overstating the evidence because the approximation breaks down with counts this small.

When you report the result, give the counts as well as the p-value, for example: the outcome occurred in 1/10 treated and 7/10 control participants (Fisher's exact test, two-sided p = 0.020). Add an effect estimate such as the odds ratio or risk difference with its confidence interval, because a p-value alone does not show how large the difference is.

How it is calculated

Sources

Fisher's Exact Test Calculator: FAQ

Fisher's exact test or chi-square?

Use Fisher's exact test when expected counts are small; with large samples the two give very similar answers.

Is Fisher's exact test only for small samples?

No. It is valid at any sample size. It matters most with small samples, because that is when the chi-square approximation fails; with large samples the two tests agree closely.

Should I report the one-sided or two-sided p-value?

Use the two-sided p-value unless you stated the direction of the effect before seeing the data. Most journals expect two-sided tests.

Can I use it for tables larger than 2×2?

The Fisher-Freeman-Halton extension handles larger tables, but this calculator covers 2×2 tables only. Statistical software such as R (fisher.test) runs the larger version.

Related Free Tools