To Many Calculator logoTo Many Calculator

Fisher's Exact Test Calculator

Kaushik RabadiyaCreated by Kaushik RabadiyaLast updated: September 24, 2026

Fisher's exact test instantly calculates results using a, a b sum, a c sum. Use the calculator above for instant answers in your browser.

The Fisher's Exact Test Calculator is a powerful statistical tool designed to evaluate the association between two categorical variables in a 2x2 contingency table. Whether you are analyzing clinical trial outcomes, genetic mutations, or marketing conversion rates, this calculator determines the exact probability of observing your data under the null hypothesis. It is especially invaluable for small sample sizes where traditional chi-square tests fall short, helping students, data scientists, and researchers make sound, evidence-based decisions.

How Fisher's Exact Test Works

Fisher's exact test computes the hypergeometric probability of obtaining a specific contingency table, given the marginal totals. For a 2x2 table with cells A, B, C, and D, the exact probability p of that specific arrangement is calculated using the formula: P = ((A+B)! (C+D)! (A+C)! (B+D)!) / (A! B! C! D! N!), where N is the grand total. The calculator sums these exact probabilities for all possible tables that are as extreme or more extreme than your observed data, depending on your chosen tail (one-tailed or two-tailed). It also computes the odds ratio as (A × D) / (B × C) to measure the strength of association between the variables.

Worked Calculation Example

Imagine a clinical study testing a new medication for reducing fever. Out of 20 patients, 10 received the drug and 10 received a placebo. In the drug group, 8 patients recovered and 2 did not. In the placebo group, 3 patients recovered and 7 did not. This gives us our 2x2 contingency table values: A = 8, B = 2, C = 3, and D = 7. The row and column sums are calculated as: A+B = 10, C+D = 10, A+C = 11, B+D = 9, and total N = 20. Plugging these values into the hypergeometric probability formula and evaluating the two-tailed extreme configurations yields an exact p-value of approximately 0.035. Because this is less than the standard significance threshold of 0.05, we reject the null hypothesis and conclude there is a statistically significant association between the medication and faster recovery.

Best Practices for Contingency Table Analysis

When setting up your 2x2 matrix, ensure that your categories are mutually exclusive and that each observation belongs to only one cell. While Fisher's exact test is famous for handling small sample sizes where expected cell frequencies drop below 5, it is equally valid for larger datasets, though computational time may increase. Always select your tail type—one-tailed or two-tailed—before looking at the results to avoid confirmation bias. Finally, interpret your odds ratio alongside the p-value; a significant p-value tells you an effect exists, while the odds ratio tells you the magnitude of that effect.

FAQs

What does the Fisher's Exact Test Calculator do?

The Fisher's Exact Test Calculator computes the exact probability (p-value) of association between two categorical variables arranged in a 2x2 contingency table. It also automatically calculates marginal sums and the odds ratio, making it an essential tool for evaluating hypotheses when sample sizes are too small for standard asymptotic tests.

Is the Fisher's Exact Test Calculator free to use?

Yes, this calculator is completely free to use with no hidden fees, subscriptions, or usage caps. You can run as many statistical computations as you need for academic research, medical studies, quality control analyses, or data science projects without creating an account.

Are my inputs stored or sent to a server?

Your data privacy is completely protected. All calculations for the contingency table, odds ratios, and p-values are performed locally within your browser using client-side scripting. Your input numbers and research data are never stored, logged, or transmitted to any external server.

Can I use the Fisher's Exact Test Calculator for professional decisions?

Yes, the underlying algorithms strictly adhere to established mathematical principles for exact hypergeometric distribution testing. However, for critical medical, legal, or financial decisions, it is always recommended to combine these statistical outputs with domain expertise and secondary peer-reviewed validation.

Formula verified against Statistical methodology standards — all calculations use deterministic, standards-based formulas.

Related calculators