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 LookupFPS ConverterLine CounterRelative Standard Deviation CalculatorSort NumbersImage ResizerMAC Address GeneratorBatting Average CalculatorRemove SpacesFacebook User ID LookupERA CalculatorRandom Truth or Dare GeneratorFeet and Inches to Cm ConverterWord to Phone Number ConverterMAC Address LookupSun, Moon & Rising Sign Calculator 🌞🌙✨Slope and Grade CalculatorPercent Off CalculatorSum CalculatorBitwise CalculatorMP3 LooperAudio SplitterInvisible Text GeneratorRandom IMEI GeneratorRoman Numerals ConverterAI Text HumanizerWord Ladder GeneratorRandom Credit Card GeneratorNumber of Digits CalculatorSHA256 Hash GeneratorHalfway Date Calculator📷 OCR / Image to TextLog Base 10 CalculatorRandom Superpower GeneratorVertical Jump CalculatorRandom Quote GeneratorWAR CalculatorMerge VideosRandom Birthday GeneratorCm to Feet and Inches ConverterPhone Number ExtractorMaster Number CalculatorSalary Conversion CalculatorRandom Fake Address Generator⬛ Aspect Ratio CalculatorOn Base Percentage CalculatorRandom Activity GeneratorSaturn Return CalculatorRandom Poker Hand GeneratorSquare Root (√) CalculatorOPS CalculatorFile Size ConverterSlugging Percentage CalculatorRandom Meal GeneratorRandom Writing Prompt GeneratorLeap Years ListText FormatterCompound Growth CalculatorCaffeine Overdose CalculatorBinary to Gray Code ConverterNumber to Word ConverterIP Subnet CalculatorOctal CalculatorCompare Two StringsRandom Movie PickerLove Compatibility CalculatorBattery Life CalculatorRandom Loadout GeneratorDecimal to BCD ConverterVideo to Image ExtractorBCD to Decimal Converter📅 Date CalculatorMercury Retrograde CalendarStair CalculatorCM to Inches Converter🖱️ Click CounterYouTube Channel StatisticsConnect the Dots GeneratorQuotient and Remainder CalculatorFirst n Digits of PiPER CalculatorAdd Text to ImageName Number CalculatorSHA512 Hash GeneratorPercent Growth Rate Calculator🎰 Gacha Pity CalculatorBingo Card GeneratorAdd Prefix and Suffix to TextImage CompressorRemove AccentOutlier CalculatorWeight Loss CalculatorImage SplitterCoin FlipperVideo CompressorRandom Object GeneratorGray Code to Binary ConverterArc Length CalculatorWhat is my Lucky Number?Day of the Year Calculator - What Day of the Year Is It Today?What is my Zodiac Sign?Lottery Number GeneratorList of Prime NumbersAstrological Element Balance CalculatorSmall Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾Flip VideoDiff CheckerTime Duration CalculatorURL ExtractorAngel Number CalculatorIP Address to Hex ConverterAcreage CalculatorBcrypt Hash Generator / CheckerRandom Line PickerBreak Line by CharactersRemove Leading Trailing SpacesMultiple Fraction CalculatorNumber ExtractorRandom Time GeneratorHeight Percentile CalculatorAI Language DetectorBinary to BCD ConverterProportion CalculatorMartingale Strategy CalculatorModulo CalculatorWHIP CalculatorDMS to Decimal Degrees ConverterAI Punctuation AdderRandom Chess Opening GeneratorWord Scramble GeneratorPercentile CalculatorCone Flat Pattern (Template) GeneratorDay of Year CalendarRandom Number PickerVideo SplitterLife Path Number CalculatorLong Division CalculatorMandelbrot Set ExplorerRandom Emoji GeneratorPVIFA CalculatorLongest Day of the YearAdjust Video SpeedPVIF CalculatorRandom Chord GeneratorAntilog CalculatorMorse Code GeneratorYouTube Tag ExtractorCollage MakerRatio to Percentage CalculatorBoxing Punch Power CalculatorHypotenuse CalculatorEmail ExtractorSteel Weight CalculatorCrossword Puzzle MakerSum of Positive Integers CalculatorBonus CalculatorRandom User-Agent GeneratorDestiny Number CalculatorFirst n Digits of eAI ParaphraserLunar Calendar ConverterColor InverterPercent to PPM ConverterRandomize NumbersShort Selling Profit CalculatorGrade CalculatorMD5 Hash GeneratorMiter Angle CalculatorSquare Numbers ListFraction CalculatorList RandomizerHTML Compressor🔍 Plagiarism CheckerRounding CalculatorArctan2 CalculatorIs it a Prime Number?Multiplication CalculatorName RandomizerBirth Day of the Week CalculatorMolarity CalculatorTrigonometric Equation SolverDue Date CalculatorExponential Decay CalculatorRandom Group GeneratorYouTube Earnings EstimatorHebrew Calendar ConverterRandom Name GeneratorMAC Address AnalyzerPizza Value CalculatorReverse TextBoiling Point CalculatorNumber RandomizerRemove Line BreaksRock Paper Scissors GeneratorLog (Logarithm) Calculator🎲 Loot Drop Probability CalculatorSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorReverse VideoRemove Audio from VideoActual 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 GeneratorAmortization CalculatorMarkup CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterTwitter/X Timestamp ConverterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorSocial Media Post Time OptimizerSocial Media Username CheckerCTR 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 CalculatorROT13 Encoder/DecoderAtbash Cipher ToolVigenère Cipher ToolPronunciation IPA ConverterHemingway-Style Readability EditorSentence Length Variance AnalyzerWord Frequency AnalyzerBusiness Days CalculatorAdd Business Days to DateDate Pattern GeneratorHow Long Until CalculatorHow Long Ago CalculatorBirthday Across Cultures CalculatorHijri Calendar ConverterInsulin Sensitivity Factor CalculatorCarb-to-Insulin Ratio CalculatorLean Body Mass to Strength CalculatorOne-Mile Walk Test (Rockport) CalculatorCooper 12-Minute Run CalculatorFFMI CalculatorAPGAR Score CalculatorGlasgow Coma Scale CalculatorWells Score Calculator (DVT/PE)Tennis Score TrackerSoccer xG (Expected Goals) CalculatorCricket Run Rate CalculatorRugby Points CalculatorRace Time PredictorSwimming SWOLF CalculatorYoga Pose Hold TimerFishing Knot Strength CalculatorBike Gear Ratio CalculatorClimbing Grade ConverterWine Pairing SuggesterStandard Drink CalculatorCaffeine Half-Life TrackerSpice Substitution FinderDietary Restriction Recipe FilterMarinade Time CalculatorFermentation Time CalculatorSmoking Wood Pairing GuideFreelance Project Pricing CalculatorSaaS Pricing CalculatorSubscription Cost TrackerSide Hustle ROI CalculatorRemote Work Savings CalculatorCoffee Habit Cost CalculatorGym vs Home Workout Cost CalculatorLunch Cost CalculatorWealth Growth Visualizer1031 Exchange CalculatorRental Yield CalculatorCash-on-Cash Return CalculatorBRRRR Method CalculatorSection 8 Rent CalculatorRoommate Rent SplitterAirbnb Pricing OptimizerStatute of Limitations CalculatorSentence Reduction CalculatorSales Tax Nexus CheckerPatent Filing Fee CalculatorTrademark Class FinderWill Asset Distribution CalculatorWorkers' Compensation CalculatorStopping Distance CalculatorTrip Cost SplitterVehicle Weight Distribution CalculatorTrailer Tongue Weight CalculatorTire Tread Wear CalculatorEngine Compression Ratio CalculatorHeadlight Beam Distance CalculatorCat Litter Box CalculatorAquarium Heater Wattage CalculatorBird Cage Size CalculatorReptile Habitat UVB CalculatorPet Travel Crate Size FinderHorse Hay CalculatorCrochet Hook Size ConverterKnitting Needle Size ConverterKnitting Pattern CalculatorCross-Stitch Floss CalculatorQuilt Binding CalculatorOrigami Paper Size CalculatorPottery Clay Shrinkage CalculatorBeading Pattern CalculatorResin Casting Volume CalculatorEmbroidery Thread Length CalculatorHiking Pace Calculator (Naismith's Rule)Backpacking Food Weight CalculatorTent Footprint Size CalculatorSleeping Bag Temperature Rating GuideKnot Tying Reference ToolStar Visibility CalculatorTide Time CalculatorSun Position CalculatorReynolds Number 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 Calculator