Bayes' Theorem Calculator
Use our Bayes' theorem calculator to calculate Bayes theorem instantly. Includes a simple explanation of Bayes' theorem, Bayes theorem with examples, and Bayes theorem examples with solutions to show when and why it’s used.
What is Bayes' Theorem?
Bayes' theorem is a probability rule for updating what you believe about an event (A) after observing related evidence (B). In plain terms, it tells you how to revise a probability when you learn new information.
If you’re looking for a simple explanation of Bayes theorem, it connects four probabilities: P(A), P(B), P(B|A), and the result P(A|B). This is why it’s often described as a way to “flip” conditional probabilities.
In statistics and probability, Bayes theorem is used to calculate the probability of a hypothesis given evidence. That’s what is Bayes theorem in probability and what is Bayes theorem in statistics in a practical sense—updating probabilities as new data arrives.
Bayes' Theorem Formula
To calculate Bayes theorem, multiply the probability of A by the probability of B given A, then divide by the probability of B.
This is the core Bayes' theorem formula used by a bayesian theorem calculator.
So after observing B, the probability of A becomes 0.32 (32%).
It takes a prior probability P(A) and updates it using evidence B via P(B|A) and P(B).
How to Use the Bayes' Theorem Calculator
- 1
Enter P(A): the probability of event A.
- 2
Enter P(B): the probability of event B.
- 3
Enter P(B|A): the probability of B given A.
- 4
View the result P(A|B): the probability of A given B (Bayes' theorem result).
Frequently Asked Questions
Use P(A|B) = (P(B|A) × P(A)) ÷ P(B).
It’s a rule for finding the probability of A given B (P(A|B)) using P(A), P(B), and P(B|A).
It’s used to update a probability estimate for a hypothesis after observing data (evidence).
Use it when you want the probability of a cause/hypothesis given an observed effect/evidence—especially when you have P(B|A) but need P(A|B).
Yes—this page is a Bayes' theorem calculator that computes P(A|B) from P(A), P(B), and P(B|A).
Yes—see the simple Bayes theorem example above and the example-style explanations in the formula section.
Yes—the example in the formula section shows the full substitution and final solution for P(A|B).
Bayes' theorem divides by P(B). If P(B)=0, P(A|B) is undefined because the evidence event B has zero probability.