Updated
Using Bayes theorem calculator
Update a prior probability with the likelihood of an observation under an event and its complement.
Enter probabilities from 0 to 1 for mutually exclusive A and not A. This performs probability arithmetic; it does not supply or validate the real-world probabilities you enter.
A worked example
With prior probability p(a) = 0.1, p(b given a) = 0.8, p(b given not a) = 0.2, the posterior p(a given b) is 0.3076923076923077.
Before you use the result
Enter probabilities from 0 to 1 for mutually exclusive A and not A. This performs probability arithmetic; it does not supply or validate the real-world probabilities you enter.
Example results for prior probability p(a)
These examples use P(B given A): 0.8; P(B given not A): 0.2. They are reference calculations, not recommended settings.
| Prior probability P(A) | Posterior P(A given B) |
|---|---|
| 0.05 | 0.173913043478 |
| 0.1 | 0.307692307692 |
| 0.2 | 0.5 |
Cite this page
ToolOctopus. “Bayes theorem calculator.” Updated 2026-09-26. https://tooloctopus.com/bayes-theorem-calculator.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
