Post-test Probability Calculator

Post-test Probability Calculator

Update the chance of a diagnosis after a test result, from the pre-test probability and the test's likelihood ratio or its sensitivity and specificity, including several tests in a row.

Post-test odds = pre-test odds × likelihood ratio

Enter the pre-test probability and the test details

What Is Post-test Probability?

Post-test probability is the chance that a patient has a condition after taking a test result into account. It starts from the pre-test probability, the clinician's estimate before the test from symptoms, history and how common the condition is.

The likelihood ratio says how much the result should shift that estimate. Working in odds makes the update a single multiplication: odds after = odds before × LR. An LR of 10 multiplies the odds tenfold; an LR of 0.1 cuts them to a tenth.

Because LRs don't depend on prevalence, the same test can be applied to any patient. A positive result in a low-risk patient may still leave the diagnosis unlikely, while in a high-risk patient it can be decisive.

Post-test Probability Formula

As given in Deeks & Altman, "Diagnostic tests 4: likelihood ratios" (BMJ, 2004), and Fagan (1975). See Sources.

1. Probability to odds

pre-test odds = p ÷ (1 − p)

2. Multiply by the likelihood ratio

post-test odds = pre-test odds × LR · LR+ = sens ÷ (1 − spec) · LR− = (1 − sens) ÷ spec

3. Back to a probability

post-test probability = odds ÷ (1 + odds)

For several independent tests, multiply their LRs together. Tests that measure the same thing aren't independent and shouldn't be chained.

Worked Example: Ruling Out a Blood Clot

Given:
A patient's symptoms suggest a 20% chance of a clot. A blood test with sensitivity 95% and specificity 50% comes back negative (illustrative figures, so LR− = 0.05 ÷ 0.5 = 0.1).
Step 1:
Pre-test odds:
0.2 ÷ 0.8 = 0.25
Step 2:
Apply LR− = 0.1:
0.25 × 0.1 = 0.025
Step 3:
Back to a probability:
0.025 ÷ 1.025 = 2.44%
Result:
From 20% to 2.4%

A negative result makes a clot unlikely enough to avoid a scan. A positive result, though, only raises 20% to 32%: the test is good at ruling out and poor at ruling in.

How Much a Test Moves the Probability

Post-test probability for different starting points and likelihood ratios.

Post-test probability by pre-test probability and likelihood ratio
Pre-testLR 0.1LR 0.5LR 2LR 10
5%0.5%2.6%9.5%34.5%
20%2.4%11.1%33.3%71.4%
50%9.1%33.3%66.7%90.9%
80%28.6%66.7%88.9%97.6%

Common Post-test Probability Mistakes

  • Multiplying the probability instead of the odds. 20% × 10 would be 200%. Convert to odds first: 0.25 × 10 = 2.5, which is 71%.
  • Chaining tests that aren't independent. Two blood markers of the same process share errors; multiplying their LRs overstates the evidence.
  • Using LR+ for a negative result. Each result has its own LR: LR+ for positive, LR− for negative.
  • Ignoring the pre-test estimate. The same positive test means very different things in a low-risk and a high-risk patient.

Post-test Probability FAQs

Where does the pre-test probability come from?

Prevalence in similar patients, adjusted by symptoms and history, often using a validated clinical score such as Wells.

Why use odds rather than probabilities?

Because Bayes’ theorem becomes a simple multiplication in odds form, and LRs can be chained.

How do I enter several tests?

Type their likelihood ratios separated by commas, such as 4, 6. They are applied in order, assuming the tests are independent.

What is a Fagan nomogram?

A printed chart that draws a line from pre-test probability through the LR to read off the post-test probability. This calculator does the same sum.

What LR is useful?

Roughly, LR+ above 10 or LR− below 0.1 changes the picture a lot; LRs between 0.5 and 2 hardly change it.

Is this the same as positive predictive value?

When the pre-test probability equals the study prevalence and the result is positive, yes. PPV is the special case.

Can I use percentages?

Yes: 20%, 0.2 and 1/5 all work for probabilities, sensitivity and specificity.

What if the post-test probability is still uncertain?

Consider another, independent test. Each result multiplies the odds again.

Sources

Related Tools