Fisher Exact Test Online Calculator

Analyze two by two count data with exact probabilities. Review odds ratios, intervals, and direction. Export clean evidence for reports and decisions with ease.

Calculator

Example Data Table

Scenario Group Outcome Yes Outcome No Suggested alternative
Small trial Treatment 8 2 Greater
Small trial Control 1 5 Greater
Quality audit Line A 3 17 Two sided
Quality audit Line B 9 11 Two sided

Formula Used

For a two by two table with cells A, B, C, and D, row totals are fixed. Column totals are also fixed.

Exact table probability: P = ((A+B)! (C+D)! (A+C)! (B+D)!) / (N! A! B! C! D!)

Odds ratio: OR = (A × D) / (B × C)

Approximate confidence interval: exp(log(OR) ± z × sqrt(1/A + 1/B + 1/C + 1/D))

The two sided p value sums all possible fixed-margin tables with probabilities less than or equal to the observed table probability.

How to Use This Calculator

  1. Enter nonnegative raw counts in cells A, B, C, and D.
  2. Add clear row and column labels for better exports.
  3. Select the alternative hypothesis that matches your research question.
  4. Choose the confidence level and alpha level.
  5. Press Calculate to show results above the form.
  6. Use the CSV or PDF buttons to save the output.

About This Fisher Exact Test Tool

A Fisher exact test is useful when a two by two table has small counts. It checks whether two categorical variables are associated. The method does not rely on a large sample approximation. It uses the exact probability of the observed table, given fixed row and column totals. That makes it helpful for clinical studies, surveys, laboratory checks, quality reviews, and classroom statistics.

Why Exact Testing Matters

A chi square test can be weak when expected counts are small. Fisher's method avoids that concern by listing every possible table that keeps the same margins. It then compares the probability of each table with the observed one. The calculator reports one sided and two sided evidence, so the result can match the research question.

Reading The Output

The p value is the main decision measure. A small value means the observed arrangement is unusual under independence. The odds ratio shows the direction and strength of association. A value above one favors the first row and first column pairing. A value below one favors the opposite pattern. Confidence limits give a practical range for the odds ratio. When any cell is zero, the corrected interval prevents impossible division.

Advanced Use Cases

This calculator also shows expected counts, risks, risk difference, and risk ratio. These extra fields help explain the practical meaning behind the exact test. A statistically significant result may still be small in real terms. A nonsignificant result may still need a larger sample. Always review the table, the p value, and the effect measures together.

Good Data Practice

Enter raw counts, not percentages. Make sure each observation belongs to one row and one column only. Avoid mixing repeated measures with independent counts unless the study design supports it. Name rows and columns clearly before exporting. The CSV file is best for spreadsheets. The PDF file is useful for quick reporting. Keep the calculation settings with the result, especially the alternative hypothesis and confidence level.

Interpreting Results Responsibly

The test measures evidence, not cause. Causation depends on design, controls, timing, and sampling. Report the counts beside the p value. This helps readers verify assumptions and understand the actual comparison clearly before taking action with confidence.

FAQs

1. What is Fisher exact test?

It is an exact test for association in a two by two count table. It is often used when sample sizes or expected counts are small.

2. When should I use this calculator?

Use it when you have two categorical variables and raw counts. It is especially helpful when a chi square approximation may be unreliable.

3. What does a two sided p value mean?

It measures evidence for any association direction. The calculator sums fixed-margin tables that are as unlikely as, or less likely than, the observed table.

4. What does the greater option test?

It tests whether the first row has a higher concentration in the first column than expected under independence.

5. What does the less option test?

It tests whether the first row has a lower concentration in the first column than expected under independence.

6. Why is a 0.5 correction included?

It prevents division by zero when estimating odds ratios and intervals. This is useful when one or more table cells are zero.

7. Are percentages allowed as inputs?

No. Enter raw counts only. Percentages can distort the exact probability because Fisher's method depends on integer margins.

8. Can I export the result?

Yes. Use the CSV button for spreadsheet work. Use the PDF button for a simple report copy.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.