Fisher's Exact Test Calculator

Compute Fisher's exact test for a 2 by 2 table of counts, giving the two-sided and one-sided p-values and the odds ratio. It works well when sample sizes are small and chi-square assumptions do not hold.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Fisher's Exact Test Calculator

  1. Enter the four counts of the 2 by 2 table: top left (a), top right (b), bottom left (c), and bottom right (d).
  2. Read the two-sided p-value. A value below 0.05 suggests the rows and columns are associated.
  3. Use the one-sided p-values only if you chose a direction before seeing the data.

Frequently asked questions

When should I use Fisher's exact test instead of a chi-square test?

Use it for a 2 by 2 table when the sample is small or any expected cell count is below about 5. It computes exact hypergeometric probabilities, so it does not rely on the large-sample approximation that the chi-square test uses.

What does the two-sided p-value mean?

It is the total probability of all tables with the same row and column totals that are as unlikely as, or less likely than, the observed table, assuming no association between the rows and columns.

How is the odds ratio calculated for a 2 by 2 table?

It is (a × d) ÷ (b × c). A value of 1 means no association. A value above 1 means the top left cell is more common than expected, and a value below 1 means it is less common.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.