Simplify Your Workflow: Search MiniWebtool.
Add Extension
Home Page > Math > Statistics And Data Analysis > Fisher's Exact Test Calculator

Fisher's Exact Test Calculator

Perform Fisher's exact test on 2×2 contingency tables. Get exact p-values (one-tailed and two-tailed), odds ratio, relative risk, step-by-step hypergeometric probability calculations, and interactive mosaic plot visualization.

Fisher's Exact Test Calculator
📌 Quick examples:
Enter the observed frequency counts for each cell
Outcome +
Outcome −
Group 1
a
b
Group 2
c
d
Totals

Embed Fisher's Exact Test Calculator Widget

About Fisher's Exact Test Calculator

The Fisher's Exact Test Calculator performs the exact significance test for 2×2 contingency tables using the hypergeometric distribution. Unlike the chi-square test which relies on an asymptotic approximation, Fisher's test computes exact p-values, making it the gold standard for analyzing categorical data — especially with small sample sizes. Enter your 2×2 table to get one-tailed and two-tailed p-values, odds ratios, relative risk, interactive mosaic plots, and step-by-step solutions.

How to Use the Fisher's Exact Test Calculator

  1. Enter cell values — input the four observed frequency counts for your 2×2 contingency table. Cell "a" represents Group 1 with a positive outcome, "b" is Group 1 with a negative outcome, "c" is Group 2 positive, and "d" is Group 2 negative. You can also click a quick example to see how it works.
  2. Choose test direction — select "Two-Tailed" to test for any association (most common), "Left-Tailed" if you hypothesize that the odds ratio is less than 1, or "Right-Tailed" if you expect it to be greater than 1.
  3. Set significance level — choose α (commonly 0.05). A smaller α requires stronger evidence to reject the null hypothesis.
  4. Interpret the results — review the p-value, odds ratio, relative risk, mosaic plot, hypergeometric probability distribution chart, and the detailed step-by-step calculation.

What Is Fisher's Exact Test?

Fisher's exact test, developed by Sir Ronald Fisher in 1935, is a statistical significance test for categorical data in contingency tables. It determines whether there is a nonrandom association between two categorical variables. The test is called "exact" because it calculates the exact probability of obtaining the observed data (or more extreme data) under the null hypothesis of independence, rather than relying on approximations like the chi-square test.

The Hypergeometric Distribution Formula

The probability of observing a particular 2×2 table with fixed marginal totals is given by the hypergeometric distribution:

P = C(R₁, a) × C(R₂, c) / C(N, C₁)
= (R₁! × R₂! × C₁! × C₂!) / (N! × a! × b! × c! × d!)

Where R₁, R₂ are row totals, C₁, C₂ are column totals, and N is the grand total. This formula computes the exact probability of observing exactly that arrangement of values in the table.

When to Use Fisher's Exact Test

Fisher's Exact Test vs. Chi-Square Test

Both tests assess independence in contingency tables, but they differ in approach:

Understanding Odds Ratio and Relative Risk

The odds ratio (OR) measures the strength of association between two events. OR = (a × d) / (b × c). An OR of 1 means no association, OR > 1 means the outcome is more likely in Group 1, and OR < 1 means it is more likely in Group 2. The 95% confidence interval helps assess whether the OR is statistically distinguishable from 1.

The relative risk (RR) compares the probability of the outcome between groups. RR = [a/(a+b)] / [c/(c+d)]. While the OR approximates the RR when the outcome is rare, they diverge for common outcomes. RR is often more intuitive to interpret in prospective studies.

One-Tailed vs. Two-Tailed Tests

A two-tailed test sums the probabilities of all tables that are equally or less probable than the observed table, regardless of the direction of the association. This is the most common and conservative approach. A one-tailed test only considers tables in one direction — left-tailed for OR < 1 or right-tailed for OR > 1 — and should only be used when you have a strong prior hypothesis about the direction of the effect.

FAQ

What is Fisher's exact test?

Fisher's exact test is a statistical significance test used to determine if there is a nonrandom association between two categorical variables in a 2×2 contingency table. Unlike the chi-square test, it calculates exact probabilities using the hypergeometric distribution, making it ideal for small sample sizes or when expected cell counts are below 5.

When should I use Fisher's exact test instead of chi-square?

Use Fisher's exact test when any expected cell count in your 2×2 table is less than 5, when the total sample size is small (typically less than 20-30), or when you want an exact p-value rather than an approximation. Fisher's test is always valid regardless of sample size, while chi-square is an approximation that becomes unreliable with small samples.

What is the difference between one-tailed and two-tailed Fisher's exact test?

A two-tailed test checks for any association between variables regardless of direction and is the most commonly used approach. A one-tailed test checks for association in a specific direction: left-tailed tests if the odds ratio is less than 1, and right-tailed tests if it is greater than 1. Use a two-tailed test unless you have a strong prior hypothesis about the direction of the effect.

How is the p-value calculated in Fisher's exact test?

The p-value is calculated using the hypergeometric distribution. For a given 2×2 table with fixed row and column totals, the exact probability of that table is computed. For a two-tailed test, the probabilities of all possible tables that are equally or less probable than the observed table are summed. For one-tailed tests, probabilities are summed in one direction only.

What does the odds ratio tell me in Fisher's exact test?

The odds ratio measures the strength of association between two categorical variables. An odds ratio of 1 means no association. Greater than 1 means Group 1 has higher odds of the positive outcome compared to Group 2. Less than 1 means Group 2 has higher odds. The 95% confidence interval helps assess whether the association is statistically meaningful — if the interval includes 1, the association may not be significant.

Reference this content, page, or tool as:

"Fisher's Exact Test Calculator" at https://MiniWebtool.com/fisher-s-exact-test-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-15

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Related MiniWebtools:

Statistics And Data Analysis:

Top & Updated:

Random PickerRandom Name PickerInstagram User ID LookupImage ResizerLine CounterFPS ConverterSort NumbersRelative Standard Deviation CalculatorBatting Average CalculatorRemove SpacesMAC Address GeneratorFacebook User ID LookupERA CalculatorWord to Phone Number ConverterMAC Address LookupRandom Quote GeneratorSum CalculatorFeet and Inches to Cm ConverterRandom Truth or Dare GeneratorSun, Moon & Rising Sign Calculator 🌞🌙✨Slope and Grade Calculator⬛ Aspect Ratio Calculator📷 OCR / Image to TextPercent Off CalculatorInvisible Text GeneratorMercury Retrograde CalendarSHA256 Hash GeneratorMerge VideosRandom Superpower GeneratorOPS CalculatorRandom Birthday GeneratorVertical Jump CalculatorNumber of Digits CalculatorAudio SplitterSquare Root (√) CalculatorCm to Feet and Inches ConverterRandom IMEI GeneratorMP3 LooperRandom Credit Card GeneratorLog Base 10 CalculatorRoman Numerals ConverterMaster Number CalculatorRandom Poker Hand GeneratorBitwise CalculatorRandom Fake Address GeneratorFile Size ConverterRandom Activity GeneratorSaturn Return CalculatorYouTube Channel StatisticsOn Base Percentage CalculatorCompound Growth CalculatorHalfway Date CalculatorWord Ladder GeneratorPhone Number ExtractorSalary Conversion CalculatorCaffeine Overdose CalculatorRandom Writing Prompt Generator🖱️ Click CounterAI Text HumanizerRandom Meal GeneratorBattery Life CalculatorImage SplitterSlugging Percentage CalculatorText FormatterOctal CalculatorBinary to Gray Code ConverterNumber to Word ConverterRandom Movie PickerStair CalculatorCompare Two StringsAdd Text to ImageIP Subnet CalculatorWeight Loss CalculatorDecimal to BCD ConverterSun Position Calculator📅 Date CalculatorVideo to Image ExtractorWAR CalculatorBroken Link CheckerPercent Growth Rate CalculatorFirst n Digits of PiProportion CalculatorSHA512 Hash GeneratorVideo CompressorRandom Loadout GeneratorLottery Number GeneratorDay of the Year Calculator - What Day of the Year Is It Today?Word Scramble GeneratorBCD to Decimal ConverterBcrypt Hash Generator / CheckerGray Code to Binary ConverterBreak Line by CharactersConnect the Dots GeneratorRandom Emoji GeneratorTime Duration CalculatorCM to Inches ConverterBingo Card GeneratorYouTube Tag ExtractorWHIP CalculatorEmail ExtractorLeap Years ListAcreage CalculatorLong Division CalculatorAI Punctuation AdderArc Length CalculatorQuotient and Remainder CalculatorLove Compatibility CalculatorList of Prime NumbersMartingale Strategy CalculatorRemove AccentNumber ExtractorSocial Media Username CheckerRemove Leading Trailing SpacesSmall Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾What is my Zodiac Sign?Cone Flat Pattern (Template) Generator🎰 Gacha Pity CalculatorFlip VideoIP Address to Hex ConverterDistance Between Two Points CalculatorLunar Calendar ConverterHebrew Calendar ConverterAPI TesterAI Language DetectorMD5 Hash GeneratorModulo CalculatorRatio to Percentage CalculatorWhat is my Lucky Number?Random Time GeneratorVideo SplitterSourdough CalculatorRandom Group GeneratorDay of Year CalendarURL ExtractorRandom Tournament Bracket GeneratorAstrological Element Balance CalculatorAI ParaphraserImage CompressorRandom Chord GeneratorRandom Object GeneratorColor InverterList RandomizerName RandomizerPER CalculatorBinary to BCD ConverterRemove Lines Containing...Sum of Positive Integers CalculatorPerfect Number Checker🔍 Plagiarism CheckerRatio CalculatorRandom User-Agent GeneratorSort Lines AlphabeticallyRandom Number PickerBolt Torque CalculatorYouTube Comment PickerHeight Percentile CalculatorAdd Prefix and Suffix to TextMolarity Calculator🔊 Tone GeneratorLinear Programming SolverHTML CompressorRemove Audio from Video1099 Tax CalculatorBoiling Point CalculatorRandomize NumbersAmortization CalculatorCollage MakerMiter Angle Calculator⚔️ DPS CalculatorRandom Chess Opening GeneratorCoin FlipperEffect Size CalculatorDMS to Decimal Degrees ConverterPercentile CalculatorAdjust Video SpeedBeer Chill Time CalculatorRandom Math Problem GeneratorMandelbrot Set ExplorerOutlier CalculatorIP Address to Binary ConverterPercent to PPM ConverterArithmetic Sequence CalculatorFraction CalculatorPVIFA CalculatorSteel Weight CalculatorDecibel (dB) CalculatorDestiny Number CalculatorMAC Address AnalyzerRandom Name GeneratorBCD to Binary ConverterRandom PIN GeneratorReverse VideoRMD CalculatorAngel Number CalculatorPartition Function CalculatorTrigonometric Equation SolverTwitter/X Timestamp ConverterSigma Notation Calculator (Summation)Hex to BCD ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorHypotenuse CalculatorActual Cash Value CalculatorScientific Notation to Decimal ConverterLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterConvolution CalculatorRandom String GeneratorMarkup CalculatorPVIF CalculatorName Number CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorSocial Media Post Time OptimizerCTR CalculatorROAS CalculatorInfluencer ROI CalculatorForce CalculatorAcceleration CalculatorVelocity CalculatorMomentum CalculatorProjectile Motion CalculatorKinetic Energy CalculatorPotential Energy CalculatorWork and Power CalculatorDensity CalculatorPressure CalculatorIdeal Gas Law CalculatorFree Fall CalculatorTorque CalculatorHorsepower CalculatorDilution CalculatorChemical Equation BalancerStoichiometry CalculatorPercent Yield CalculatorEmpirical Formula CalculatorTitration CalculatorMole/Gram/Particle ConverterIrregular Polygon Area CalculatorFrustum CalculatorTorus Calculator3D Distance CalculatorGreat Circle Distance CalculatorCircumscribed Circle (Circumcircle) CalculatorInscribed Circle (Incircle) CalculatorAngle Bisector CalculatorTangent Line to Circle CalculatorHeron's Formula CalculatorCoordinate Geometry Distance CalculatorVolume of Revolution CalculatorSurface of Revolution CalculatorParametric Curve GrapherRiemann Sum CalculatorTrapezoidal Rule CalculatorSimpson's Rule CalculatorImproper Integral CalculatorL'Hôpital's Rule CalculatorMaclaurin Series CalculatorPower Series CalculatorSeries Convergence Test CalculatorInfinite Series Sum CalculatorAverage Rate of Change CalculatorInstantaneous Rate of Change CalculatorRelated Rates SolverOptimization Calculator (Calculus)Gradient Calculator (Multivariable)Divergence CalculatorCurl CalculatorLine Integral CalculatorSurface Integral CalculatorJacobian Matrix CalculatorNewton's Method CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorMatrix Multiplication CalculatorDot Product CalculatorCross Product CalculatorVector Magnitude CalculatorUnit Vector CalculatorAngle Between Vectors CalculatorNull Space CalculatorColumn Space CalculatorCramer's Rule CalculatorMatrix Diagonalization CalculatorQR Decomposition CalculatorCholesky Decomposition CalculatorMatrix Power CalculatorCharacteristic Polynomial CalculatorBayes' Theorem CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorNegative Binomial Distribution CalculatorGeometric Distribution CalculatorExponential Distribution CalculatorWeibull Distribution CalculatorBeta Distribution CalculatorSpearman Rank Correlation CalculatorFisher's Exact Test CalculatorContingency Table CalculatorOdds Ratio CalculatorBernoulli Equation CalculatorHeat Transfer CalculatorThermal Expansion CalculatorSpecific Heat Capacity CalculatorGear Ratio Calculator (Mechanical)Pulley System CalculatorHydraulic Cylinder Force CalculatorBelt Length CalculatorCloset Capsule CalculatorStorage Unit Size CalculatorMoving Box Quantity CalculatorGift Card Tip CalculatorGas vs Electric Cost ComparisonPrint Cost CalculatorHair Dye Mixing CalculatorLaundry Detergent Dosage CalculatorDishwasher Load OptimizerTile Grout CalculatorPaint Color Mixing CalculatorFlashcard Spaced Repetition SchedulerLearning Curve CalculatorCornell Notes GeneratorVocabulary Quiz GeneratorLanguage Learning Hours to Fluency CalculatorCollege Cost CalculatorScholarship ROI CalculatorAI Recipe Generator (From Ingredients)AI Gift Idea GeneratorAI Meal Plan GeneratorAI Workout Plan GeneratorAI Reading List GeneratorAI Travel Itinerary GeneratorAI Excuse Generator (Polite)AI Apology Letter WriterAI Unit Converter (Natural Language)AI Resume / CV AnalyzerAI Text Tone AnalyzerAI Data Visualizer (Paste CSV)AI Regex GeneratorAI SQL Query GeneratorPaycheck Calculator (Take-Home Pay)VA Loan CalculatorARM Mortgage CalculatorBiweekly Mortgage Payment CalculatorPMI CalculatorMortgage Points CalculatorBalloon Loan CalculatorInterest-Only Mortgage CalculatorConstruction Loan CalculatorLand Loan CalculatorBoat Loan CalculatorRV Loan CalculatorMotorcycle Loan CalculatorCar Affordability CalculatorOut-the-Door Price CalculatorRent Affordability CalculatorProrated Rent CalculatorRent Increase CalculatorMileage Reimbursement CalculatorPer Diem CalculatorInvoice GeneratorSalary Raise CalculatorSeverance Pay CalculatorHSA Calculator529 College Savings CalculatorI Bond CalculatorT-Bill CalculatorCD Ladder CalculatorCredit Utilization CalculatorLoan Comparison CalculatorGross-Up CalculatorSWP CalculatorRD CalculatorPPF CalculatorEPF CalculatorNPS CalculatorGratuity CalculatorHRA Exemption CalculatorUK Stamp Duty CalculatorZakat CalculatorTithe CalculatorBetting Odds ConverterPayPal Fee CalculatorStripe Fee CalculatorEtsy Fee CalculatoreBay Fee CalculatorAmazon FBA CalculatorShopify Profit CalculatorWholesale Price CalculatorCraft Pricing CalculatorDepreciation CalculatorEOQ CalculatorReorder Point CalculatorSafety Stock CalculatorFIFO / LIFO CalculatorContribution Margin CalculatorWorking Capital CalculatorCost Per Lead CalculatorEmail Marketing ROI CalculatorTip Pooling CalculatorWeek Number CalculatorAnniversary CalculatorHalf Birthday CalculatorSobriety CalculatorRetirement Countdown