Fisher's Exact Test

Exact test for independence in a 2×2 contingency table. Preferred over chi-square when sample sizes are small.

Please verify you are human to use the calculator.

About the Fisher's Exact Test

Fisher's exact test evaluates the association between two categorical variables in a 2×2 contingency table by computing the exact probability of observing the data under the null hypothesis of independence. Unlike the chi-square test, which relies on a large-sample approximation, Fisher's test yields an exact p-value based on the hypergeometric distribution.

The test is especially valuable when sample sizes are small or when more than 20% of expected cell counts fall below 5—conditions under which the chi-square approximation is unreliable. A practical rule of thumb is to prefer Fisher's test whenever any expected cell count is less than 5.

Although Fisher's exact test is statistically valid for any sample size, it becomes computationally intensive for large, well-balanced tables where the chi-square test already provides an excellent approximation. In routine practice, Fisher's test is the default for small or sparse tables, while chi-square is used for larger ones.

A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.

Related calculations

  • Chi-square independence test: Compare the large-sample independence approximation for a contingency table.
  • Two proportion z test: Compare the large-sample two-group proportion procedure with the exact-table question.
  • Bernoulli: Inspect the binary observations whose group counts form a two-by-two table.
  • Binomial: Inspect the fixed-trial success-count model; Fisher's test instead conditions on the table margins.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Fisher's Exact Test FAQ

Common questions about the fisher's exact test