Biology, Genetics & Clinical Lab Epidemiology & Diagnostic Test Statistics Bayes' theorem in odds form (Fagan nomogram)

Diagnostic Likelihood Ratio Calculator (LR+ and LR−)

A likelihood ratio tells you how much a test result should move your belief, in a form that does not depend on how common the disease is. Enter sensitivity and specificity — or the four counts of a validation table — plus your pre-test probability, and this calculator returns LR+, LR−, the post-test probability after a positive and after a negative result, and the diagnostic odds ratio. It does numerically what the Fagan nomogram does with a ruler, and it works at any pre-test probability from a screening prevalence to a strong clinical suspicion.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Input styleUse the published Se and Sp when quoting a study; use counts when you have your own validation table.Sensitivity and specificity
SensitivityShare of people with the condition whom the test calls positive.80 %
SpecificityShare of people without the condition whom the test calls negative.95 %
True positivesCondition present, test positive.90
False negativesCondition present, test negative.10
False positivesCondition absent, test positive.20
True negativesCondition absent, test negative.880
Pre-test probabilityYour estimate of the chance of disease before the result — a prevalence for screening, a clinical judgement for an individual.20 %

It returns

  • Positive likelihood ratio (LR+) — Factor by which a positive result multiplies the pre-test odds.
  • Negative likelihood ratio (LR−)
  • Post-test probability after a positive
  • Post-test probability after a negative
  • Change in probability after a positive — Post-test minus pre-test, in percentage points.
  • Diagnostic odds ratio — LR+ ÷ LR−. One means the result carries no information.

The formula

LR+=Se1SpLR=1SeSp
ppost=O1+O,O=p1pLR

In plain text: LR+ = Se / (1 − Sp); post-test odds = pre-test odds × LR

  • SeSensitivity, as a proportion (0–1)
  • SpSpecificity, as a proportion (0–1)
  • LR+Multiplier applied to the pre-test odds by a positive result (—)
  • LR−Multiplier applied to the pre-test odds by a negative result (—)
  • pPre-test probability of disease (0–1)

Likelihood ratios multiply odds, not probabilities. Convert probability to odds, multiply, convert back.

Updated Category Epidemiology & Diagnostic Test Statistics Verified against published test cases Reading time 10 min

What a likelihood ratio is, and why clinicians prefer it

A likelihood ratio compares how often a particular test result occurs in people with the condition against how often it occurs in people without it. LR+ = Se ÷ (1 − Sp) is that ratio for a positive result; LR− = (1 − Se) ÷ Sp is the ratio for a negative one. An LR+ of 16 means a positive result is sixteen times more likely to come from someone with the condition than from someone without it.

The reason this framing matters is that likelihood ratios are prevalence-free, like sensitivity and specificity, but unlike sensitivity and specificity they are directly actionable. Sensitivity tells you about a group of patients you already know are ill, which is never the situation you are in. LR+ tells you what to do with the result in front of you: multiply your current odds by it.

They also condense two numbers into one per result, which makes tests genuinely comparable. Comparing a test with 95% sensitivity and 70% specificity against one with 80% and 92% is an argument; comparing LR+ of 3.2 against LR+ of 10.0 is an observation. And unlike predictive values, a likelihood ratio published in one country's clinic can be applied unchanged in yours — only the pre-test probability changes.

The underlying sensitivity and specificity, with their confidence intervals, come from the sensitivity and specificity calculator; this page takes them the next step.

Why the arithmetic runs on odds

Bayes' theorem is unwieldy in probabilities and trivial in odds. In odds form it reads: post-test odds = pre-test odds × likelihood ratio. That is the entire theorem. Every complication in the probability form — the denominator with four terms, the sensitivity to prevalence — is an artefact of the units.

So the procedure is three steps. Convert your pre-test probability to odds with O = p ÷ (1 − p). Multiply by LR+ if the result was positive, or by LR− if it was negative. Convert back with p = O ÷ (1 + O). A 20% pre-test probability is odds of 0.25; a positive result on a test with LR+ = 16 gives odds of 4.0; converting back gives 80%.

Two consequences follow directly from the multiplication, and both are worth internalising. First, a likelihood ratio of exactly 1 changes nothing, because multiplying odds by 1 leaves them alone. That is the definition of a useless result, and it happens whenever Se + Sp = 1. Second, the same likelihood ratio moves probability by wildly different amounts depending on where you start. An LR+ of 10 takes a 10% pre-test probability to 53% but takes a 50% pre-test probability only to 91%. The odds always multiply by ten; the probability cannot, because it is bounded at 100%. The reference table below makes that concrete.

Thomas Fagan published a nomogram for this in 1975: a three-column chart where a straight edge laid across your pre-test probability and the likelihood ratio reads off the post-test probability. This calculator does the same arithmetic without the ruler, and the chart it draws is the same relationship plotted continuously.

Worked example: a test with 80% sensitivity and 95% specificity

A patient has a clinical picture that puts the probability of the condition at roughly 20% before testing. The test in question has 80% sensitivity and 95% specificity.

  1. LR+. 0.80 ÷ (1 − 0.95) = 0.80 ÷ 0.05 = 16.0.
  2. LR−. (1 − 0.80) ÷ 0.95 = 0.20 ÷ 0.95 = 0.2105.
  3. Pre-test odds. 0.20 ÷ 0.80 = 0.25.
  4. If the result is positive. Post-test odds = 0.25 × 16.0 = 4.00. Probability = 4.00 ÷ 5.00 = 80.0%.
  5. If the result is negative. Post-test odds = 0.25 × 0.2105 = 0.05263. Probability = 0.05263 ÷ 1.05263 = 5.0%.
  6. Diagnostic odds ratio. 16.0 ÷ 0.2105 = 76.0, which is also (0.80 × 0.95) ÷ (0.20 × 0.05) = 0.76 ÷ 0.01.

Read the two answers as a pair. A positive result takes you from 20% to 80% — a fourfold rise in probability and a sixteenfold rise in odds. A negative result takes you from 20% to 5%, which is a useful but not decisive reduction: one in twenty of these patients still has the condition. Whether 5% is low enough to stop investigating is a clinical judgement about the consequences of a miss, not a statistical one. That threshold — the probability below which you stop testing — is the number the likelihood ratio framework was designed to help you argue about explicitly.

How big does a likelihood ratio need to be?

The conventional bands come from the JAMA Users' Guides to the Medical Literature. For LR+, values above 10 produce large shifts, 5 to 10 moderate, 2 to 5 small, and 1 to 2 minimal. For LR−, below 0.1 is large, 0.1 to 0.2 moderate, 0.2 to 0.5 small, and 0.5 to 1 minimal. These are conventions for describing the multiplier, not thresholds for clinical action.

Whether a shift is clinically useful depends on where it lands you relative to your treatment threshold. A test with LR+ of 3 is worthless in a patient at 2% pre-test probability, because the result lands at 5.8% and you were never going to treat at either number. The same test is decisive in a patient at 40%, taking them to 67%. The value of a test depends on the pre-test probability, and a test ordered at the wrong pre-test probability wastes money whatever its likelihood ratios.

The diagnostic odds ratio — LR+ divided by LR−, equivalently (Se × Sp) ÷ ((1 − Se) × (1 − Sp)) — compresses the two into a single figure that is useful for comparing tests and for meta-analysis. Its weakness is that it is blind to the trade-off: a test with LR+ 20 and LR− 0.5 and a test with LR+ 2 and LR− 0.05 both score 40, yet the first is a rule-in test and the second a rule-out test. Use the DOR for ranking, never for choosing.

Post-test probability for a given likelihood ratio

Post-test probability = O ÷ (1 + O) where O is the pre-test odds multiplied by the likelihood ratio. Applies to LR+ after a positive result and to LR− after a negative one.
Likelihood ratioPre-test 10%Pre-test 25%Pre-test 50%
0.11.10%3.23%9.09%
0.22.17%6.25%16.67%
0.55.26%14.29%33.33%
110.00%25.00%50.00%
218.18%40.00%66.67%
535.71%62.50%83.33%
1052.63%76.92%90.91%
2068.97%86.96%95.24%

The row for LR = 1 reproduces the pre-test probability exactly, which is the definition of an uninformative result.

Pitfalls and assumptions

  • Multiplying probabilities instead of odds. The most common error. A 20% probability times an LR of 16 is not 320%; convert to odds first.
  • Chaining likelihood ratios from correlated tests. Multiplying LRs from two tests assumes they are conditionally independent given disease status. Two tests measuring the same biology are not, and the chained result will overstate certainty.
  • Collapsing a continuous result to positive or negative. A strongly abnormal value carries far more information than a marginal one. Stratum-specific likelihood ratios by result band preserve that; a single cut-off throws it away.
  • Using a population prevalence as a pre-test probability for a symptomatic patient. Symptoms have already raised the probability. Starting from the population rate systematically understates the post-test probability.
  • Taking a specificity of exactly 100% at face value. It makes LR+ infinite and almost always reflects a control group too small to contain a false positive.
  • Ignoring the confidence intervals on Se and Sp. A likelihood ratio inherits both, and LR+ is especially unstable because 1 − Sp appears in the denominator.
  • Assuming the LR transfers between settings. It transfers far better than a predictive value, but not perfectly: spectrum differences change sensitivity, and referral filters change specificity.

Where likelihood ratios sit among the other measures

All the diagnostic measures are views of the same 2×2 table. Sensitivity and specificity read down its columns and describe the test. PPV and NPV read across its rows and describe the patient, but only for the prevalence in the study that produced them. Likelihood ratios are the bridge: they carry the column information in a form you can apply across any row.

In fact the post-test probability after a positive result that this page reports is numerically identical to the PPV that the predictive-value calculator gives for the same sensitivity, specificity and prevalence. The two pages differ only in which route through Bayes' theorem they show you. Use whichever framing makes the decision clearer.

Outside diagnostics, the same cross-product that gives the diagnostic odds ratio measures association between an exposure and an outcome — see the odds ratio calculator — and its cohort-study counterpart is the risk ratio from the relative risk calculator. Once a diagnosis has been made and treatment is being weighed, the number needed to treat calculator converts trial event rates into the number of patients you must treat to prevent one event, which is the natural next question after “how sure am I?”.

Key terms

Odds
p ÷ (1 − p). A probability of 0.20 is odds of 0.25; a probability of 0.80 is odds of 4.
Pre-test probability
Your belief that the condition is present before the result arrives. A prevalence in screening, a clinical estimate at the bedside.
Fagan nomogram
A three-scale chart published in 1975 that solves post-test odds = pre-test odds × LR graphically with a straight edge.
Diagnostic odds ratio
LR+ ÷ LR−. A single summary of test discrimination; 1 means no information, and it does not distinguish rule-in from rule-out tests.
Stratum-specific likelihood ratio
A separate LR for each band of a continuous result, which preserves the information that a single cut-off discards.

Frequently asked questions

What is a good positive likelihood ratio?

Above 10 is conventionally called a large shift, 5 to 10 moderate, 2 to 5 small and 1 to 2 minimal. But usefulness depends on where you start: an LR+ of 3 moves a 2% pre-test probability to only 5.8%, which changes nothing, while the same LR+ moves a 40% probability to 67%, which may well change management. Judge the LR against your treatment threshold, not against the bands alone.

Why can't I just multiply my probability by the likelihood ratio?

Because likelihood ratios multiply odds, and odds are not probabilities. Probability is bounded at 1 and would immediately exceed it — 20% times 16 would be 320%. Odds are unbounded above, which is precisely why Bayes' theorem is a simple product in odds and a four-term fraction in probabilities. Convert, multiply, convert back.

What does a likelihood ratio of 1 mean?

That the result carries no information at all: it is exactly as common in people with the condition as in people without it, so your odds after the test equal your odds before it. This happens whenever sensitivity plus specificity equals 1, which is also the point where the Youden index is zero and the ROC curve touches the diagonal.

Can I multiply likelihood ratios from two different tests?

Only if the two results are conditionally independent given disease status — that is, knowing one result tells you nothing extra about the other once you know whether the person is ill. Two tests measuring related biology (say, two inflammatory markers) violate this badly, and multiplying their LRs will overstate your certainty, sometimes by a great deal. When in doubt, use a multivariable model fitted to joint data.

How do I get a likelihood ratio for a continuous test result?

Band the result and compute a separate LR for each band: the proportion of diseased people whose value falls in that band, divided by the proportion of healthy people whose value falls in it. A ferritin of 10 µg/L and one of 45 µg/L carry very different information even if both fall below the same cut-off, and stratum-specific likelihood ratios preserve that distinction where a single dichotomy destroys it.

Is post-test probability the same as positive predictive value?

Yes, when the pre-test probability you use equals the prevalence in the population the predictive value was measured in. Both are the probability of disease given a positive result, arrived at by different arrangements of Bayes' theorem. PPV is the term used for a population; post-test probability is the term used for an individual whose pre-test probability you estimated clinically.

Why is my LR+ shown as undefined?

Because specificity is exactly 100%, which puts a zero in the denominator of Se ÷ (1 − Sp). The true value is infinite. In practice this means your control group was too small to have produced a single false positive — with 30 controls and no false positives, the upper limit of the false-positive rate is still around 10%, so the true LR+ could be as low as 9. Report a one-sided interval rather than an infinite point estimate.

Does the likelihood ratio depend on prevalence?

No, which is its main advantage over predictive values. It is built entirely from sensitivity and specificity, both of which are computed within a disease group. That said, it does depend on the case spectrum and on referral patterns, so a likelihood ratio measured in a tertiary referral centre may not hold in primary care even though the prevalence adjustment has already been handled.

References

  • Users' guides to the medical literature. III. How to use an article about a diagnostic test. B. What are the results and will they help me in caring for my patients? JAMA 271:703–707 (1994) — Roman Jaeschke, Gordon H. Guyatt & David L. Sackett
  • Nomogram for Bayes theorem, New England Journal of Medicine 293:257 (1975) — Terrence J. Fagan
  • The diagnostic odds ratio: a single indicator of test performance, Journal of Clinical Epidemiology 56:1129–1135 (2003) — Afina S. Glas et al.
  • Evidence-Based Medicine: How to Practice and Teach It, 4th ed. — Churchill Livingstone Elsevier (Straus, Glasziou, Richardson & Haynes)