Bayes' Theorem Calculator

Update a probability with new evidence.

P(A | B) 0.1538
P(A | B) (%) 15.385

Formula: P(A|B) = P(B|A)P(A) ÷ [P(B|A)P(A) + P(B|¬A)P(¬A)]

Step-by-step with your numbers:
1. Values used:
2. P(A) prior = 0.01
3. P(B | A) true positive = 0.9
4. P(B | not A) false positive = 0.05
5.
6. P(A | B) = 0.1538
7. P(A | B) = 15.385%
Did we solve your problem today?

Bayes' theorem revises a prior probability after seeing evidence — key for medical tests.

The math behind it

P(A|B) = P(B|A)·P(A) ÷ [P(B|A)·P(A) + P(B|¬A)·P(¬A)].

Worked example

1% prior, 90% sensitivity, 5% false positive → ~15.4%.

FAQ

Surprising result?

With a rare condition, even an accurate test gives many false positives.