Report

Help us improve this tool

Post-Test Probability Calculator

Calculate pre-test odds, post-test odds, and post-test probability from prevalence and likelihood ratios.

O M T

What Post-Test Probability Means

Post-test probability tells you how likely a condition is after you receive a test result. It combines the starting probability of disease, often called prevalence or pre-test probability, with the test's likelihood ratio. This calculator helps you move from pre-test belief to post-test belief with one Bayesian workflow.

Core Formulas

The full calculation uses three steps:

$$\text{Pre-test odds} = \frac{p}{1-p}$$

$$\text{Post-test odds} = \text{Pre-test odds} \times LR$$

$$\text{Post-test probability} = \frac{\text{Post-test odds}}{1 + \text{Post-test odds}}$$

Here, $p$ is the pre-test probability and $LR$ is the likelihood ratio tied to the observed test result.

Likelihood Ratio Options

If you already know the likelihood ratio, enter it directly. If not, you can derive it from sensitivity and specificity:

$$LR^+ = \frac{\text{Sensitivity}}{1 - \text{Specificity}}$$

$$LR^- = \frac{1 - \text{Sensitivity}}{\text{Specificity}}$$

A strong positive test usually has a large $LR^+$. A strong negative test usually has a very small $LR^-$.

How To Use This Calculator

  • Choose whether to enter prevalence directly or calculate it from TP, FN, FP, and TN.
  • Select whether the observed result is positive or negative.
  • Enter the likelihood ratio directly, or derive it from sensitivity and specificity.
  • Read the pre-test odds, post-test odds, and final post-test probability.

When This Tool Helps

Post-test probability is common in medical diagnostics, screening programs, lab result interpretation, and any setting where you must combine base rates with test performance. If you want to work backward from sensitivity and specificity, also try our Sensitivity and Specificity Calculator, p-hat Calculator, and Sample Size Calculator.

Frequently Asked Questions

What is the difference between pre-test and post-test probability?

Pre-test probability is your starting estimate before the test result. Post-test probability is the updated estimate after combining that starting value with the test's likelihood ratio.

Why convert probability to odds in the middle?

Bayesian updating becomes a simple multiplication in odds form. After multiplying by the likelihood ratio, you convert the updated odds back into probability.

What does a likelihood ratio greater than 1 mean?

A likelihood ratio above 1 increases the probability of disease. A likelihood ratio below 1 decreases it.

Can I use prevalence from a sample?

Yes. If you have observed case counts, prevalence is simply $(TP + FN)$ divided by the total sample size.

What happens if prevalence is very low?

Even a good test may produce only a modest post-test probability when the condition is rare. Base rates matter.