Home / Bayes Theorem Calculator

Bayes Theorem Calculator

Bayes’ theorem updates a prior probability after new evidence using the probability of that evidence under two competing conditions. It makes the effect of a low base rate visible instead of relying on sensitivity alone.

How to use this calculator

  1. Enter the prior probability, probability of positive evidence when the hypothesis is true, and false-positive probability when it is false.
  2. Check the labels and units before applying the result to a real task.
  3. Change one input at a time when comparing scenarios.

Formula and method

P(H|E) = P(E|H)P(H) ÷ [P(E|H)P(H) + P(E|¬H)P(¬H)]

  • P(H|E) = P(E|H)P(H) ÷ [P(E|H)P(H) + P(E|¬H)P(¬H)]
  • The result is only as reliable as the prior and conditional probabilities supplied. The tool does not determine whether a real-world model or diagnostic test is valid.

Worked examples

Worked example

Assume a 1% prior probability, 95% sensitivity, and a 5% false-positive rate.

Posterior after a positive result = 0.01×0.95 ÷ (0.01×0.95 + 0.99×0.05) ≈ 16.1%.

Posterior after a positive result = 0.01×0.95 ÷ (0.01×0.95 + 0.99×0.05) ≈ 16.1%.

Understanding the result

Bayes’ theorem updates a prior probability after new evidence using the probability of that evidence under two competing conditions. It makes the effect of a low base rate visible instead of relying on sensitivity alone.

The result is only as reliable as the prior and conditional probabilities supplied. The tool does not determine whether a real-world model or diagnostic test is valid.

Important notes

The result is only as reliable as the prior and conditional probabilities supplied. The tool does not determine whether a real-world model or diagnostic test is valid.

Displayed values are rounded for readability; retain appropriate precision when continuing a calculation.

Frequently asked questions

Why can a positive test still mean a low posterior probability?

When the prior condition is rare, false positives among the much larger unaffected group can account for many positive results. The prior and both conditional rates must be considered together.

What does sensitivity mean here?

Sensitivity is the probability of observing positive evidence when the condition or hypothesis is true, expressed as a percentage.

Can this calculator diagnose a medical condition?

No. It performs Bayes’ theorem arithmetic only and cannot validate a test, estimate a person’s prior risk, or replace qualified clinical interpretation.

Affiliate recommendations

Tools related to Bayes Theorem Calculator

These tools are selected for the calculator topic. The Calc Studio may earn a commission from purchases made through affiliate links.

  • Growth Wise SAT & ACT prep Visit partner ↗

    SAT and ACT study tools, flashcards, and preparation resources for students.

See the Affiliate Disclosure for details.

Related calculators

  • Probability Calculator — Calculate simple event probability from favorable outcomes and total outcomes.
  • Binomial Probability Calculator — Calculate the probability of exactly a chosen number of successes in independent trials with the same success probability.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Normal Distribution Calculator — Estimate probability below, between or above two values for a normal distribution with a chosen mean and spread.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate Probability — Learn basic probability formulas, complementary probability, and how to calculate simple event chances.
  • How to Calculate Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.
  • Probability — Understand probability as a measure of how likely an event is and review simple probability formulas.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Binomial Probability Calculator — Calculate the probability of exactly a chosen number of successes in independent trials with the same success probability.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • Probability Calculator — Calculate simple event probability from favorable outcomes and total outcomes.
  • Normal Distribution Calculator — Estimate probability below, between or above two values for a normal distribution with a chosen mean and spread.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.
Browse by categoryMath CalculatorsHealth & Fitness CalculatorsEveryday ToolsBusiness CalculatorsConstruction CalculatorsDate & Time Calculators

Task collections

  • Math & Statistics Calculators — Free math and statistics calculators for Bayes theorem, set operations, matrices, complex numbers, vector products, normal distributions, averages, percentages, standard deviation, geometry, equations, and number systems.
  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Home Project Calculators — Free home and construction calculators for square footage, roofing, stairs, tile, concrete, framing stud counts, steel plate weight, siding, countertops, insulation, and material estimates.
  • Science & Electronics Calculators — Free science and electronics calculators for projectile motion, force, buoyancy, fluid pressure, Reynolds number, heat transfer, capacitors, RC time constants, resistance, and electrical relationships.

Related guides

  • How to Calculate Probability — Learn basic probability formulas, complementary probability, and how to calculate simple event chances.
  • How to Calculate Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.
  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.

Related terms

  • Probability — Understand probability as a measure of how likely an event is and review simple probability formulas.
  • Budget — Learn what a budget is and how simple income-minus-expenses calculations can support planning.
  • Discount — Understand discounts, percent-off pricing, and how to calculate the amount saved and the final price.

Useful conversions

  • °C to °F — Convert Celsius to Fahrenheit with a free temperature converter, formula, examples, and common temperatures.
  • °F to °C — Convert Fahrenheit to Celsius with a free temperature converter, formula, examples, and common temperatures.
  • cm to feet — Convert centimeters to feet with a free cm to feet converter, formula, examples, and a quick reference table.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.