Bayes' Theorem Calculator

Calculate P(A|B) step by step

P(A|B) = P(B|A) × P(A) P(B)

1 Prior Probability

%

Example: What's the base rate of having a disease?

2 Likelihoods

%

Example: Probability of positive test if you have the disease

%

Example: Probability of positive test if you don't have the disease (false positive rate)

3 Calculate P(B) — Total Probability

P(B) = P(B|A) × P(A) + P(B|¬A) × P(¬A)
P(¬A) = 1 - P(A)
P(B|A) × P(A)
P(B|¬A) × P(¬A)
P(B) =

4 Apply Bayes' Theorem

P(A|B) — Probability of A given B