Simplify Your Workflow: Search MiniWebtool.
Add Extension
Related Tools
Contingency Table CalculatorDivisibility Test CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorMersenne Prime CheckerOdds Ratio Calculatorp-Value CalculatorRelative Risk CalculatorSeries Convergence Test Calculator
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.

Statistics And Data Analysis:

Top & Updated:

Instagram User ID LookupRandom Name PickerRandom PickerImage ResizerLine CounterFacebook User ID LookupJob FinderSort NumbersRelative Standard Deviation CalculatorRemove SpacesFPS ConverterSun, Moon & Rising Sign Calculator ๐ŸŒž๐ŸŒ™โœจWord to Phone Number ConverterERA CalculatorMAC Address GeneratorMercury Retrograde Calendar๐Ÿ“ท OCR / Image to TextSlope and Grade Calculatorโฌ› Aspect Ratio CalculatorRandom Quote GeneratorBatting Average CalculatorMAC Address LookupPercent Off CalculatorSum CalculatorFeet and Inches to Cm ConverterRandom Truth or Dare GeneratorSHA256 Hash GeneratorMerge VideosRandom IMEI GeneratorRandom Credit Card GeneratorInvisible Text GeneratorAudio SplitterNumber of Digits CalculatorWeight Loss CalculatorPhone Number ExtractorSquare Root (โˆš) Calculator๐Ÿ–ฑ๏ธ Click CounterMP3 LooperVertical Jump CalculatorLog Base 10 CalculatorImage SplitterRandom Superpower GeneratorSalary Conversion CalculatorCaffeine Overdose CalculatorSun Position CalculatorBitwise CalculatorCm to Feet and Inches ConverterRandom Poker Hand GeneratorRandom Fake Address GeneratorRandom Writing Prompt GeneratorMaster Number CalculatorEmail ExtractorNumber to Word ConverterText FormatterWord Ladder GeneratorRandom Activity GeneratorRandom Movie PickerSaturn Return CalculatorFile Size ConverterOPS CalculatorRoman Numerals ConverterRandom Birthday GeneratorYouTube Channel StatisticsLong Division CalculatorBattery Life CalculatorAdd Text to ImageHalfway Date CalculatorSHA512 Hash GeneratorIP Subnet CalculatorSlugging Percentage CalculatorCompound Growth CalculatorStair CalculatorRandom Time GeneratorLunar Calendar ConverterSigma Notation Calculator (Summation)Random Meal GeneratorOctal CalculatorRandom Loadout GeneratorQuotient and Remainder CalculatorVideo CompressorOn Base Percentage CalculatorFirst n Digits of PiDecimal to BCD ConverterBreak Line by CharactersBCD to Decimal ConverterPercent Growth Rate Calculator๐Ÿ“… Date CalculatorHebrew Calendar ConverterBolt Torque CalculatorBcrypt Hash Generator / CheckerAcreage CalculatorVideo to Image ExtractorWord Scramble GeneratorBinary to Gray Code ConverterLeap Years ListBingo Card GeneratorArc Length CalculatorAPI TesterCompare Two StringsList of Prime NumbersGray Code to Binary ConverterName RandomizereBay Fee CalculatorRemove AccentIP Address to Hex ConverterMartingale Strategy CalculatorFlip VideoProportion CalculatorRandom User-Agent GeneratorOutlier CalculatorRandomize NumbersRandom Emoji GeneratorDice RollerMD5 Hash GeneratorRandom Chess Opening GeneratorWHIP CalculatorCone Flat Pattern (Template) GeneratorConnect the Dots GeneratorNumber ExtractorYouTube Tag ExtractorYouTube Thumbnail DownloaderRandom Number PickerWAR CalculatorRandom Tournament Bracket Generator๐ŸŽฐ Gacha Pity CalculatorDMS to Decimal Degrees Converter๐Ÿ” Plagiarism CheckerAI Language DetectorVideo SplitterTime Duration CalculatorURL ExtractorText Case ConverterCM to Inches ConverterPVIF CalculatorWhat is my Zodiac Sign?Trigonometric Equation SolverLottery Number GeneratorDay of the Year Calculator - What Day of the Year Is It Today?Random Group GeneratorSocial Media Username CheckerAmortization CalculatorBinary to BCD Converter1099 Tax CalculatorAstrological Element Balance CalculatorDecibel (dB) CalculatorSmall Text Generator โฝแถœแต’แต–สธ โฟ แต–แตƒหขแต—แต‰โพMolarity CalculatorAdd Prefix and Suffix to TextImage CompressorLove Compatibility CalculatorParabola CalculatorPVIFA CalculatorSum of Positive Integers CalculatorAI Text HumanizerShort Selling Profit CalculatorConvolution CalculatorBroken Link Checker๐Ÿ”Š Tone GeneratorAdjust Video SpeedPER Calculatorโš”๏ธ DPS CalculatorRandom Video Thumbnail GeneratorReverse TextTaco Bar CalculatorColor InverterRemove Leading Trailing SpacesWhat is my Lucky Number?Percent to PPM ConverterName Number CalculatorCrossword Puzzle MakerImage CropperFraction CalculatorLED Resistor CalculatorMAC Address AnalyzerWater Usage CalculatorGoldbach Conjecture VerifierDay of Year CalendarList of Fibonacci NumbersRandom Chord GeneratorSourdough CalculatorPercentage Increase CalculatorFirst n Digits of eRatio CalculatorRemove Audio from VideoList RandomizerTransformer CalculatorAI ParaphraserYouTube Comment PickerRandom Object GeneratorRatio to Percentage CalculatorReverse VideoHTML CompressorSquare Numbers ListModulo CalculatorAI Punctuation AdderSocial Media Post Time OptimizerVideo CropperArctan2 CalculatorSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorAverage CalculatorHypotenuse CalculatorActual Cash Value CalculatorScientific Notation to Decimal ConverterAngel Number CalculatorLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterRandom String GeneratorMarkup 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 CalculatorCTR 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 CalculatorBoiling Point 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 CalculatorAP Score CalculatorAttendance Percentage CalculatorPercentage to CGPA ConverterCitation Generator (APA/MLA/Chicago)AI Quiz GeneratorAI Lesson Plan GeneratorInteractive Periodic TableElectron Configuration CalculatorLimiting Reactant CalculatorTheoretical Yield CalculatorHenderson-Hasselbalch CalculatorpKa to Ka ConverterMolality CalculatorNormality CalculatorPercent Composition CalculatorFreezing Point Depression CalculatorBoiling Point Elevation CalculatorOsmotic Pressure CalculatorNernst Equation CalculatorBeer-Lambert Law CalculatorGravitational Force CalculatorEscape Velocity CalculatorKepler's Third Law CalculatorTime Dilation CalculatorE=mcยฒ CalculatorPhoton Energy Calculatorde Broglie Wavelength CalculatorTerminal Velocity CalculatorBuoyancy CalculatorWave Speed CalculatorSpeed of Sound CalculatorMechanical Advantage CalculatorInclined Plane CalculatorFriction CalculatorResistors in Series CalculatorWatts to Amps CalculatorAmps to Watts CalculatorkVA Calculator3-Phase Power CalculatormAh to Wh ConverterGenerator Size CalculatorLumens to Watts ConverterLux to Lumens CalculatorRoom Lighting CalculatorInductive Reactance CalculatorSeries/Parallel Capacitor CalculatorConduit Fill CalculatorAntenna Length CalculatorCubic Yard CalculatorAsphalt CalculatorSod CalculatorGrass Seed CalculatorDeck Stain CalculatorSiding CalculatorBaseboard & Trim CalculatorBaluster Spacing CalculatorEpoxy Resin CalculatorWater Heater Size CalculatorPool Volume CalculatorPool Salt CalculatorPond Volume & Liner CalculatorTV Size CalculatorTV Mounting Height CalculatorPicture Hanging Height CalculatorRug Size CalculatorCurtain Size CalculatorCeiling Fan Size CalculatorDehumidifier Size CalculatorAir Purifier CADR CalculatorFirewood Cord CalculatorCouch Fit CalculatorEngine Displacement Calculator2-Stroke Oil Mix CalculatorOctane Mix CalculatorLease Buyout Calculator