Bayes Theorem Calculator
Update an entered prior with two conditional likelihoods and display the evidence denominator.
Loading tool…
How to use Bayes Theorem Calculator
Posterior P(A|B) equals P(A)P(B|A) divided by P(A)P(B|A)+(1−P(A))P(B|not A). The inputs are your assumptions, not estimated prevalence or measured evidence.
- Enter prior p(a), likelihood p(b|a), likelihood p(b|not a).
- Choose the stated convention and check the units and supported model.
- Calculate, inspect the result, then copy or download it.
Good to know
- Probabilities0–1; zero evidence denominator rejects. No clinical defaults, diagnosis, causal certainty or inferred likelihoods.
- Runs locally. Text/JSON fields are capped at30,000 characters; stricter page-specific and numeric-string limits also apply. Numeric inputs are bounded to magnitude1e15 and nonzero magnitude at least1e-100 unless an exact-string mode states otherwise. Approximate summaries use12 significant digits; CSV numeric cells retain the complete stored value and potentially formula-like string cells gain a protective apostrophe; unsupported, non-finite or detected underflow states return an error.
Common questions
Can a high likelihood alone establish a high posterior?
No. The prior and the likelihood under the alternative both affect the denominator and must be entered explicitly.
Is the input uploaded or saved?
No. The tool calculates inside this browser tab and provides a local download; it does not persist your input.
Keep going with related tools
All math →Percentage Calculator
Calculate a percentage of any amount, then see the totals after adding or subtracting that percentage.
MathBinomial Probability Calculator
Find exact-count and cumulative probabilities for independent trials with a fixed success chance.
MathConfusion Matrix Metrics Calculator
Calculate explicitly oriented binary or multiclass prediction metrics from a whole-count confusion table.
EducationBeta–Binomial Evidence Workbench
Update an entered beta prior with success and failure counts, then inspect exact future-count probabilities.
MathAbsorbing Chain Outcome Workbench
Inspect eventual outcome probabilities, expected transition counts and transient-state visits in a finite absorbing chain.
CalculatorsPayoff and Information Value Workbench
Compare expected payoff, expected regret and the value of perfect information for your scenario table.