ToolPatch

One page. One job. Done.

← Back to all tools
Statistics

Bayes Theorem Calculator

Compute posterior probability from prior, sensitivity, and false positive rate.

Formula reviewed: 2026-02-14 Statistics

Use this free online Bayes Theorem Calculator to compute posterior probability from prior, sensitivity, and false-positive/base-rate inputs. It is useful for analysis, reporting, coursework, and experiment planning when you need quick statistical evidence without building a spreadsheet. The form focuses on Prior P(A), Likelihood P(B|A), False positive P(B|¬A) and returns Bayes Inputs, Result, so you can move from input to answer without setting up a spreadsheet or custom script. Run one realistic example, adjust the inputs, and compare how the result changes before you copy or share it. Treat the result as a statistical aid: sample quality, independence, distribution assumptions, and context still determine whether the conclusion is valid.

Permalink

Input Pattern

Enter values in the left panel, keep units explicit, run the calculation, then copy or share the result. Invalid fields are highlighted immediately.

How to use this tool

  1. Enter Prior P(A), Likelihood P(B|A), False positive P(B|¬A) for the bayes theorem calculator, keeping units, dates, or text format consistent with the form labels.
  2. Confirm sample size, ordering, and distribution assumptions before relying on the calculated result.
  3. Click "Run the tool" and review Bayes Inputs, Result for the primary output.
  4. Check the statistical assumptions and sample context before using the result in a report or decision.

Bayes Inputs

All values are percentages.

Result

Evidence P(B): 5.9000%

Posterior P(A|B): 16.1017%

Bayes Theorem and Updating Beliefs

Conditional Probability

Bayes theorem is a rule for reversing conditional probabilities. It connects the probability of evidence given a hypothesis with the probability of the hypothesis given the evidence. In plain terms, it helps answer: now that I have seen this result, how should my belief change?

The theorem combines three ingredients. The prior probability represents what was believed before the new evidence. The likelihood describes how expected the evidence is if the hypothesis is true. The evidence term normalizes the result by considering how common that evidence is overall. The output is the posterior probability, the updated belief after accounting for the evidence.

Base Rates Matter

One of the most important lessons of Bayes theorem is that base rates matter. A test with impressive accuracy can still produce many false alarms when the condition being tested is rare. This surprises people because they focus on the test's sensitivity or specificity and ignore how uncommon the underlying event is.

For example, if a condition affects 1 in 1,000 people, even a low false-positive rate can generate more false positives than true positives in broad screening. The posterior probability may be much lower than intuition suggests. Bayesian reasoning forces the background frequency into the calculation instead of letting vivid evidence dominate the conclusion.

Evidence Strength and Likelihood Ratios

Evidence is powerful when it is much more likely under one hypothesis than another. This comparison is often expressed as a likelihood ratio. Strong evidence can move a prior belief substantially, while weak evidence only nudges it. Repeated independent evidence can accumulate, but dependence between observations must be handled carefully to avoid double-counting.

This is why Bayesian thinking appears in diagnostics, spam filtering, search ranking, risk scoring, and scientific inference. Each new signal is not treated as absolute proof; it changes the odds by an amount related to how discriminating that signal is.

Clear Thinking Under Uncertainty

Bayes theorem does not remove judgment. Priors can be uncertain, measurements can be biased, and real-world evidence may not be independent. What the theorem provides is a disciplined structure for being explicit about assumptions. If two people disagree, they can compare priors, likelihoods, or data quality instead of arguing only about the final number.

Used well, Bayesian reasoning encourages humility. A surprising result should update beliefs, but the size of the update depends on how surprising the result truly is, how reliable the source is, and how plausible the alternatives were before the evidence arrived.

How to interpret the result

Confidence and limitations

Formula References

Assumptions

Explore more versions

Tailored guides for specific audiences, regions, and scenarios.

Related tools and workflows