# Fisher Exact Test Calculator

Run Fisher exact test for a 2 x 2 contingency table with exact one-sided or two-sided p-values

> Canonical page: https://elysiatools.com/en/tools/fisher-exact-test-calculator

- **Category:** Math & Numbers

- **Keywords:** fisher exact test, 2x2 table, contingency table, exact p value, statistics, calculator

## Overview

The Fisher Exact Test Calculator provides a precise statistical analysis for 2x2 contingency tables, determining the significance of the association between two categorical variables. Unlike the Chi-square test, this tool calculates exact p-values, making it the standard choice for small sample sizes where asymptotic approximations are unreliable.

## Inputs

- **Cell A** (number)
- **Cell B** (number)
- **Cell C** (number)
- **Cell D** (number)
- **Alternative Hypothesis** (select)
- **Alpha** (number)
- **Decimal Places** (number)

## When to use

- When analyzing categorical data in a 2x2 contingency table with small sample sizes.
- When any expected cell frequency in a contingency table is less than five.
- When you need an exact p-value rather than an approximation for hypothesis testing.

## How it works

- Enter the observed frequencies into the four cells (A, B, C, and D) of the 2x2 contingency table.
- Select the alternative hypothesis (two-sided, greater than, or less than) and set your significance level (alpha).
- The tool calculates the probability of the observed distribution and more extreme cases using the hypergeometric distribution.
- Review the resulting p-value and odds ratio to determine if the null hypothesis should be rejected based on your alpha.

## Use cases

- Comparing the success rate of two different medical treatments in a small clinical trial.
- Analyzing the relationship between a specific gene mutation and the presence of a rare disease.
- Evaluating the effectiveness of two different marketing A/B test variations with low conversion counts.

## Frequently asked questions

### What is the difference between Fisher's Exact Test and Chi-square?

Fisher's test provides an exact p-value based on the hypergeometric distribution, while Chi-square uses an approximation that is often inaccurate for small samples.

### Can I use this for tables larger than 2x2?

No, this specific calculator is designed exclusively for 2x2 contingency tables.

### What does the 'Greater Than' alternative hypothesis test?

It tests if the proportion of successes in the first group is significantly larger than the proportion in the second group.

### What is the significance of the Odds Ratio?

The odds ratio quantifies the strength of the association between the two categorical variables, indicating how much more likely an outcome is in one group versus another.

### What is a typical Alpha value for this test?

Most researchers use 0.05 as the standard threshold for determining statistical significance.

## Related tools

- [Active Earth Pressure (Rankine)](https://elysiatools.com/en/tools/active-earth-pressure): Calculate the Rankine active earth pressure on a smooth vertical wall backfilled with cohesionless soil. K_a = tan²(45°−φ/2). Optional uniform surcharge q. Returns the base pressure p₀, the total force P, and the resultant height.
- [RLC Admittance Calculator (Y = G + jB)](https://elysiatools.com/en/tools/admittance-calculator): Compute complex admittance Y = 1/Z = G + jB for series or parallel RLC circuits: G = R/|Z|², B = −X/|Z|². Returns conductance, susceptance, magnitude and phase angle. Supports any subset of R/L/C.
- [Bayes Theorem Calculator](https://elysiatools.com/en/tools/bayes-theorem-calculator): Calculate posterior probability P(A given B) using prior, likelihood, and false-positive rate
- [Binomial Distribution Calculator](https://elysiatools.com/en/tools/binomial-distribution-calculator): Calculate exact, cumulative, and upper-tail binomial probabilities for independent Bernoulli trials
- [Break-Even Calculator](https://elysiatools.com/en/tools/break-even-calculator): Calculate the break-even point for a product or business based on fixed costs, variable costs, and price
- [Cantilever Beam Calculator](https://elysiatools.com/en/tools/cantilever-beam-calculator): Calculate the maximum bending moment M_max, maximum shear force V_max and free-end deflection δ_max of a cantilever beam under a free-end point load P or a uniformly distributed load q. Point load: δ = PL³/(3EI); UDL: δ = qL⁴/(8EI).
- [Factorial Calculator](https://elysiatools.com/en/tools/factorial-calculator): Calculate n! for a non-negative integer with exact BigInt output, optional steps, and related values such as trailing zeros
- [Hypergeometric Distribution Calculator](https://elysiatools.com/en/tools/hypergeometric-distribution-calculator): Calculate exact and cumulative probabilities for sampling without replacement

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
