Bayes Theorem Calculator

Calculate posterior probabilities using Bayes' theorem — perfect for medical testing, spam filters, and conditional probability problems.

Posterior Probability

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

Base rate / prevalence of event A

Probability of B given A is true

Probability of B given A is false

Posterior Probability P(A|B)
Prior P(A)
Evidence P(B)

Adjust the sliders or select a preset, then tap Calculate.

Prior vs Posterior Comparison
Step-by-step Solution