Worked on the two-by-two table

Post-Test Probability Calculator

Combine a pre-test probability with a test’s sensitivity and specificity or its likelihood ratios to find the probability of disease after a positive or negative result, with the odds-form working shown.

Post-Test Probability Calculator

Start with the probability before the test

No test result can be interpreted on its own. The same positive result means different things in a person with classic symptoms and in someone tested at random, and the pre-test probability is how that difference enters the arithmetic. The default example is a screening setting where 2% of the people tested have the condition, and the test has 90% sensitivity and 95% specificity. Its positive likelihood ratio is 0.90 ÷ 0.05 = 18. Bayes’ theorem is easiest in odds form: the pre-test odds are 0.02 ÷ 0.98 = 0.0204, multiplying by 18 gives post-test odds of 0.367, and converting back, 0.367 ÷ 1.367, gives a post-test probability of 26.9%. In natural frequencies the same result reads: of 10,000 people, 200 have the condition and the test flags 180 of them, but it also flags 490 of the 9,800 who do not, so 180 of 670 positives are true. A negative result, with a likelihood ratio of 0.105, takes the probability from 2% down to 0.21%.

The same test in three settings

Keep the test and change the starting point. At a pre-test probability of 2% a positive result gives 26.9%: most positives are still false alarms and a confirmatory test is needed. At 10%, as in a clinic where people present with suggestive symptoms, the same positive result gives 66.7%. At 50%, when the clinician is genuinely unsure between two diagnoses, it gives 94.7%. A negative result works the other way: from 10% it falls to 1.16%, low enough in many situations to stop looking. This is why guidelines discourage testing people with a very low pre-test probability, and why the same laboratory report can justify treatment in one patient and reassurance in another.

Chaining tests

When a second test is done after the first, the post-test probability of the first becomes the pre-test probability of the second. Repeat the example: after a positive first result at 26.9%, a second positive result on an equally good test raises the probability to 86.9%. That only holds if the two tests are conditionally independent, meaning they do not tend to make the same mistakes in the same people. Two imaging tests that both miss small lesions, or a repeat of the same assay, are not independent, and multiplying their likelihood ratios overstates the certainty.

Common mistakes

The most common error is base-rate neglect: treating sensitivity as if it were the probability of disease after a positive result. A second is borrowing sensitivity and specificity from a study of people unlike the person being tested; tests usually perform better in obvious cases than in early or mild ones. A third is forgetting that the pre-test probability is an estimate. Try a range, for example 1% to 5%, and see whether the conclusion changes. This calculator is a teaching and evidence-appraisal aid; it does not replace the judgement of the clinician who knows the patient.

How to use it

  1. Enter the pre-test probability as a percentage, from prevalence data or a validated clinical score.
  2. Choose whether to describe the test by sensitivity and specificity or by likelihood ratios.
  3. Enter those values from a diagnostic accuracy study done in a similar population.
  4. Read the probability after a positive and after a negative result, and the odds working underneath.
  5. Repeat with a lower and higher pre-test probability to see how sensitive the conclusion is.

Questions from journal club

How do you calculate post-test probability?

Convert the pre-test probability to odds, p ÷ (1 − p), multiply by the likelihood ratio of the result, then convert back with odds ÷ (1 + odds). At 2% pre-test probability and LR+ 18, the odds go from 0.0204 to 0.367, a post-test probability of 26.9%.

Why is a positive screening test often a false alarm?

When a condition is uncommon, false positives from the large healthy group outnumber the true positives. With 2% prevalence, a test with 90% sensitivity and 95% specificity produces 180 true and 490 false positives per 10,000 people screened, so only about 27% of positive results are correct.

Where does the pre-test probability come from?

From the prevalence of the condition among people like the one being tested, from published data for a clinical setting, or from a validated prediction rule such as the Wells score. It is always an estimate, so it is sensible to check whether the conclusion holds across a plausible range rather than a single number.

Can I multiply likelihood ratios from two different tests?

Only if the tests are conditionally independent, meaning their errors are unrelated within people who have and do not have the disease. Repeating the same assay, or two tests that rely on the same sign, violates that assumption, and multiplying their likelihood ratios gives a falsely confident post-test probability.

Disclaimer: These calculators are for education and for reading published research only. They work with summary counts from studies and populations and do not diagnose disease, interpret an individual’s test result or advise on treatment, testing or vaccination. Study measures such as relative risk, NNT and predictive values describe groups, not individuals, and confidence intervals use standard approximations that can differ from exact methods in small tables. Do not use the results for personal health decisions: consult a qualified health professional, and follow national and local public health agencies on outbreaks, screening and vaccination.