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.
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
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
| Prevalence (%) | Result |
|---|---|
| 5 | 33.33 |
| 8 | 45.24 |
| 10 | 51.35 |
| 12.5 | 57.58 |
| 15 | 62.64 |
| 20 | 70.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.