On this page
When Fisher’s exact test may fit
Fisher’s exact test evaluates a 2×2 table of binary outcomes from two independent groups. It calculates a conditional probability distribution under fixed margins, so it can be considered when a large-sample approximation may be questionable. The data collection design still matters: each independent case should contribute to one cell, and the row and column categories must represent the planned groups and outcomes.
This calculator does not fit matched pairs, before-and-after responses from the same participants, clustered or weighted samples, or tables larger than 2×2. Paired binary outcomes need a method that accounts for pairing, such as McNemar’s test. Do not treat an exact calculation as a repair for a mismatched study design.
Enter successes and failures for each group
Use rows for the two independent groups and columns for the binary outcome, in the order success then failure. The default example is the published SciPy documentation table [[6, 2], [1, 4]]. Change the four counts to your observed frequencies; do not enter percentages, expected counts, participant identifiers or confidential records.
Which two-sided p-value convention does this calculator use?
A two-sided Fisher p-value is not defined by one universal convention. This calculator follows the probability-ordering definition documented by SciPy: hold the observed margins fixed, enumerate possible tables under the null distribution, and add the probabilities of tables whose probability is no greater than the observed table’s probability. Other software may use a different two-sided definition, so name the convention when reporting or comparing results.
The alternatives “Group 1 greater” and “Group 1 less” follow the top-left success cell relative to the bottom-left success cell. Choose a one-sided alternative only when it was justified before inspecting the observed results. The tool does not show an odds ratio, confidence interval or effect-size estimate.
Supporting reading: [1]
Interpret the p-value with the design and context
The p-value is a tail probability under the specified null model and alternative; it is not the probability that the null hypothesis is true, the size of a group difference or evidence of causation. Report the group counts, a suitable estimate with uncertainty, the sampling design and the exact-test convention alongside it. Ask an instructor or statistician when the design or analysis plan is unclear.
Free exact 2×2 calculator
Calculate Fisher’s exact test
Enter successes and failures for two independent groups. The default counts are the published example [[6, 2], [1, 4]].
Two-sided p-value convention: sum fixed-margin tables with probability no greater than the observed table’s probability. Choose a directional alternative before reviewing results.
The calculation runs in this browser. Only aggregate counts are needed; do not enter identifiers or confidential information.
The published example is ready. Calculate to view its exact p-value.
Fisher exact test result
Selected-alternative p-value:
- Total observations
- Group 1 / Group 2 totals
- Success / failure totals
Two-sided probability-ordering convention; fixed margins. This is a p-value only, not an effect size or confidence interval.
Questions about this topic
What table does this Fisher exact calculator accept?
A 2×2 table of nonnegative whole-number counts arranged as two independent groups by success and failure. It does not accept paired observations or larger tables.
Why can two Fisher calculators show different two-sided p-values?
Software can define the two-sided exact p-value differently. This tool uses probability ordering: it sums fixed-margin table probabilities no greater than the observed table probability, matching SciPy’s documented convention.
Does Fisher’s exact test provide a confidence interval?
This tool reports a conditional exact p-value only. It does not calculate an odds-ratio estimate or confidence interval.
Are the counts uploaded?
No. The calculation runs in this browser tab. Enter aggregate counts only, not personal or identifiable data.
Sources and editorial notes
The supporting reading below informs our editorial guidance. Exercises and scenarios illustrate a method; they do not report a completed product test or measured learning outcome. Read our editorial policy or send a correction with a supporting source to info@ai-essay.com.