Post-Test Probability Calculator (Likelihood Ratios)
Diagnostics
- Convert the pre-test probability of 20 percent to odds: 0.250 to 1
- Multiply by the positive (LR+) likelihood ratio 8.50: post-test odds = 2.125 to 1
- Convert the odds back: Post-test probability = 68.00 percent
- The likelihood ratio moved the probability by 48.00 percentage points; ratios near 1 barely move it, ratios above 10 or below 0.1 move it decisively
A test result does not hand you a probability; it hands you a multiplier. The likelihood ratio says how much more (or less) likely the result is in patients with the disease than without it, and Bayes' theorem applies that multiplier to the odds of disease - not, despite every instinct, to the probability itself. This calculator performs the three-step update faithfully: probability to odds, multiply by the likelihood ratio, odds back to probability, and reports the shift in percentage points so the size of the test's contribution is explicit.
The discipline matters because intuition misjudges it in both directions. A powerful positive result on an unlikely diagnosis still leaves it unlikely; a weak negative on a near-certainty barely dents it. The worked examples are chosen at those pressure points - a strong LR+ on a low base, a strong LR- on a coin flip - because they are the cases where unaided intuition writes cheques the arithmetic will not cash.
Worked examples
20% to 68.00%
(Positive (use LR+) · 20 % · 8.5)
| Post-test probability (%) | 68.00 |
| Pre-test odds | 0.250 |
| Post-test odds | 2.125 |
| Probability shift (percentage points) | 48.00 |
50% to 10.71%
(Negative (use LR-) · 50 % · 0.12)
| Post-test probability (%) | 10.71 |
| Pre-test odds | 1.000 |
| Post-test odds | 0.120 |
| Probability shift (percentage points) | -39.29 |
5% to 55.81%
(Positive (use LR+) · 5 % · 24)
| Post-test probability (%) | 55.81 |
| Pre-test odds | 0.053 |
| Post-test odds | 1.263 |
| Probability shift (percentage points) | 50.81 |
Odds are the currency of updating
Probabilities are bounded between 0 and 1, which makes them terrible at absorbing multiplicative evidence: there is no room above 0.95 for a strong result to push. Odds have no ceiling - 19 to 1, 199 to 1 - so evidence multiplies freely and converts back at the end. The likelihood ratio is defined in exactly the terms that make this work: for a positive result, the ratio of the result's probability in disease to its probability in non-disease, which is sensitivity over (1 - specificity); for a negative, (1 - sensitivity) over specificity.
The conversion steps are mechanical - odds = p/(1 - p); post-test odds = pre-test odds x LR; probability = odds/(1 + odds) - and the calculator shows both odds values so the mechanism is auditable. In the first example the pre-test odds of 0.250 (a 20 percent probability, one-to-four against) multiplied by 8.5 give 2.125 - better than two-to-one in favour - which converts to 68.00 percent. Every post-test probability you will ever compute is that shape.
- LR+ = sensitivity / (1 - specificity); LR- = (1 - sensitivity) / specificity.
- Update odds, never probabilities: post-test odds = pre-test odds x LR.
- A test with LR near 1 in either direction is decorative, whatever its p-value said.
The three-step calculation
Step one is the honest estimate: the pre-test probability, from prevalence, clinical prediction rules or structured gestalt. It is the input with the most judgement in it and the one the final answer is most sensitive to at the extremes - a fact the third example demonstrates, where an LR+ of 24, a genuinely powerful result, lifts a 5 percent suspicion only to 55.81 percent. Step two is the multiplication. Step three is the conversion back, where the bounded scale reasserts itself and large odds compress into probabilities in the high nineties.
The probability shift - the third output - is the clinically legible summary: this test moved this patient by this many points. Shifts, unlike ratios, can be compared against decision thresholds directly. If the treatment threshold sits at 80 percent and the test moved the patient from 20 to 68, the test was informative and insufficient; another test, or a different decision, is still owed. That threshold framing is the difference between computing a probability and using one.
| Worked example | Pre-test probability | Result and LR | Post-test odds | Post-test probability |
|---|---|---|---|---|
| 1 | 20% | Positive, LR+ 8.5 | 2.125 | 68.00% |
| 2 | 50% | Negative, LR- 0.12 | 0.120 | 10.71% |
| 3 | 5% | Positive, LR+ 24 | 1.263 | 55.81% |
Worked examples: rule-in, rule-out and a long shot
The first example is the standard rule-in shape: a one-in-five suspicion, a solidly positive result, and a landing at 68.00 percent - high enough to act on in many pathways, short of the certainty the raw 8.5 might have suggested to intuition. The second is the rule-out: at 50 percent the clinician is genuinely undecided, and an LR- of 0.12 cuts the odds from evens to 0.120, a probability of 10.71 percent - usually enough to stop, redirect or safely watch. The shift of -39.29 points is the largest of the three in absolute terms, because mid-range probabilities have the most room to move.
The long-shot example teaches the base-rate lesson in its purest form. An LR+ of 24 is the kind of number attached to genuinely discriminating findings, yet applied to a 5 percent pre-test probability it produces 55.81 percent - a coin flip with a headache. Screening programmes live inside this arithmetic: test a low-prevalence population and even excellent tests generate mostly false positives. The calculator cannot choose your pre-test probability, but it will not let you forget it either.
How much an LR can move you
The conventional bands are worth memorising: LR above 10 or below 0.1 produces large, often decision-changing shifts; 5 to 10 and 0.1 to 0.2 moderate ones; 2 to 5 and 0.2 to 0.5 small ones; and 1 to 2 or 0.5 to 1, shifts so small the test rarely earns its cost and risk. But the bands describe the multiplier, not the outcome - the same LR+ of 8.5 moves a 20 percent suspicion by 48 points and would move a 2 percent suspicion by only about 13. Where you start governs where a given test can take you.
That dependence cuts the other way for the very sick or the certainly-well: near the probability extremes, no single test result should flip management, and when one appears to, the correct response is to doubt an input - the pre-test estimate, the LR's applicability to this patient, or the result itself - rather than to obey the arithmetic off a cliff.
Chaining tests and the independence caveat
Sequential testing invites a seductive shortcut: multiply the LRs. The shortcut is valid only when the tests are conditionally independent - when, among patients with the disease, one result does not predict the other. Two tests that measure the same underlying phenomenon (two inflammatory markers, two views of the same image) violate the condition enthusiastically, and multiplying their ratios double-counts one piece of evidence. The honest chain uses the post-test probability from the first test as the pre-test for the second only when independence is defensible, and otherwise reaches for a multivariable model or a combined LR published for the pair.
Used one at a time, with a defensible pre-test probability and a ratio that matches the result actually obtained - a stratum-specific LR for the band the result fell in, where the literature offers one - the update on this page is the complete Bayesian engine of bedside diagnosis. Fagan's nomogram drew it as a straightedge across three scales; the calculator is the same straightedge, with the arithmetic shown.
Choosing the pre-test probability
Every input to this calculator is an estimate, but the pre-test probability is the estimate with a biography: it may come from a validated prediction rule, from local prevalence audited in your own service, or from a clinician's calibrated experience. The three sources disagree often enough that sensitivity analysis is the professional habit: run the update at the plausible low and high ends of the pre-test range, as the examples here span 5 to 50 percent, and see whether the decision survives the range. If it does, the argument is over; if it does not, the disagreement has been located precisely where more information - or a better test - can resolve it.
A last discipline concerns the result you actually got. Published likelihood ratios are often quoted for a test dichotomised at a single cut-off, but many results arrive on a scale - a D-dimer value, a troponin level, an imaging grade. Using the dichotomous LR for a result at the extreme of the scale throws away exactly the information that makes the result powerful; interval or stratum-specific likelihood ratios, published for bands of results, preserve it. Where only the dichotomous figure exists, treat the update as a floor for extreme results and a ceiling for borderline ones - and let the calculator's honest single number remind you which of those you are holding.
FAQs
Pre-test probability 20 percent, LR+ 8.5 - what is the post-test probability?
68.00 percent: pre-test odds 0.250 times 8.5 gives post-test odds of 2.125.
A coin-flip suspicion of 50 percent meets an LR- of 0.12?
10.71 percent - the negative result cuts the odds from 1.000 to 0.120.
Pre-test 5 percent with a strong LR+ of 24?
55.81 percent: odds climb from 0.053 to 1.263, a shift of 50.81 percentage points but still barely better than even.
Why multiply odds instead of probabilities?
Bayes' theorem is multiplicative in odds: the LR is defined as the odds multiplier, so 0.250 x 8.5 = 2.125 is the whole mechanism.
What LR would take 20 percent to 68.00 percent?
8.5 - the first example run in reverse: post-test odds 2.125 over pre-test odds 0.250.
Can I chain two tests by multiplying both LRs?
Only if the tests are conditionally independent given the disease state; otherwise the combined update overstates the evidence.