Home · Statistics · Probability & Combinatorics · Post-Test Probability Calculator

Post-Test Probability Calculator

The probability that a person who tested positive actually has the condition — the positive predictive value, from prevalence, sensitivity and specificity by Bayes' theorem.

Your figures

Example result — edit the figures to make it yours

51.35

Positive predictive value51.351351%
Negative predictive value99.386503%
False positive rate among healthy cases10%

What this calculator does

The probability that a person who tested positive actually has the condition — the positive predictive value, from prevalence, sensitivity and specificity by Bayes' theorem. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

PPV = sens·prev / (sens·prev + (100 − spec)·(100 − prev)) × 100% (all inputs in %)

Bayes' theorem: the numerator is the true positives per 100 tested (sens × prev); the denominator adds the false positives, (100 − spec) × (100 − prev), scaled the same way.

Prevalence is the pre-test probability; the result is the post-test probability after a positive result.

The same test gives very different post-test probabilities in different populations, because prevalence does the heavy lifting.

Worked example

With the example inputs this page opens with (prevalence (%) 10, sensitivity (%) 95, specificity (%) 90), the result is 51.35. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying prevalence (%)
Prevalence (%)Result
533.33
845.24
1051.35
12.557.58
1562.64
2070.37

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why is the post-test probability so much lower than the sensitivity?

Sensitivity says how the test behaves on people known to have the condition. Post-test probability asks the reverse question, and the answer is dragged down by false positives from the much larger healthy group whenever prevalence is low.

What about after a negative result?

The mirror calculation gives the negative predictive value: spec·(100−prev) / (spec·(100−prev) + (100−sens)·prev). A high NPV means a negative result is trustworthy reassurance.

How does the Post-Test Probability Calculator work?

The probability that a person who tested positive actually has the condition — the positive predictive value, from prevalence, sensitivity and specificity by Bayes' theorem. Prevalence (%) · Sensitivity (%) · Specificity (%) → Post-test probability / PPV (%). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Post-Test Probability Calculator need?

Prevalence (%) · Sensitivity (%) · Specificity (%) → Post-test probability / PPV (%). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.