Opens in a new tab

Home / Resources / Clinical Statistics

How to Calculate Likelihood Ratios for a Diagnostic Test

To calculate likelihood ratios, divide sensitivity by (1 minus specificity) for LR+, and divide (1 minus sensitivity) by specificity for LR−. Multiply the pre-test odds by the relevant ratio to obtain post-test odds, then convert back to a probability, which is only as credible as the pre-test probability you start from.

Clinical Statistics
TERMSLR+, LR−, post-test odds
NEEDSSe, Sp, pre-test prob.
REPORTCounts, Se, Sp, LRs, CIs
GUIDELINESTARD 2015
COMMON ERRORConfusing LR with PPV

The calculation begins with a diagnostic test’s sensitivity and specificity. The positive likelihood ratio (LR+) compares how likely a positive result is in people with versus without the target condition. LR− does the same for a negative result. Likelihood ratios update prior clinical probability; they do not directly measure the probability of disease (Deeks & Altman, 2004).

How to calculate likelihood ratios: the two formulas

For a binary test with sensitivity Se and specificity Sp:

FORMULA

LR+ = Se / (1 − Sp)
LR− = (1 − Se) / Sp

Sensitivity and specificity must be expressed as proportions. A test with sensitivity 90% and specificity 80% has LR+ = 0.90 / 0.20 = 4.5 and LR− = 0.10 / 0.80 = 0.125.

These values are hypothetical, included only to demonstrate arithmetic. They do not describe the accuracy of any named medical test.

What each ratio means

Value General direction of evidence
LR = 1 No change in odds after that test result
LR+ > 1 Positive result raises the odds of the condition
LR− < 1 Negative result lowers the odds of the condition

The clinical impact depends on the pre-test probability and the situation. Do not treat convenient thresholds as substitutes for a full diagnostic pathway. The same LR produces very different post-test probabilities in low- and high-risk populations.

Convert pre-test probability to post-test probability

The calculation works in odds:

  1. Pre-test odds = prior probability / (1 − prior probability).
  2. Post-test odds = pre-test odds × relevant likelihood ratio.
  3. Post-test probability = post-test odds / (1 + post-test odds).
WORKED EXAMPLE (HYPOTHETICAL VALUES)

A clinician judges pre-test probability as 10%. The odds are 0.10 / 0.90 ≈ 0.1111. After a positive result with LR+ = 4.5, post-test odds are 0.5 and post-test probability is 0.5 / 1.5 ≈ 33.3%. A positive result increased probability from 10% to 33.3%; it did not establish certainty.

For a negative result with LR− = 0.125, post-test odds are 0.01389 and post-test probability is about 1.37%. Interpret in context of consequences of missed diagnosis and the reliability of the initial probability.

Where does the pre-test probability come from?

It may be based on a validated prediction rule, clinical findings or an appropriately matched population prevalence. General population prevalence is not always suitable for an individual already selected for testing. Spectrum effects, selection, threshold choice and reference-standard error can alter diagnostic accuracy estimates.

Important limits

Larger LR+ and smaller LR− generally provide stronger discrimination for their respective test results, but uncertainty matters. Report confidence intervals. If sensitivity or specificity equals 0 or 1 in a small study, raw ratios can become zero or infinite; this is not proof of a perfect test.

Reporting checklist

State the population, index test and threshold, reference standard, 2×2 counts, sensitivity, specificity, LR+ and LR− with precision, and the relevant use case. Diagnostic accuracy studies should consider STARD (Bossuyt et al., 2015). Do not interchange likelihood ratios with positive and negative predictive values: predictive values depend directly on the population’s disease prevalence.

Frequently asked questions

No. That is the positive predictive value; LR+ is a ratio of test-result probabilities across disease groups.

Yes, LR+ and LR− come from sensitivity and specificity; prevalence or other pre-test probability is needed to estimate post-test probability.

Not automatically. Interpretation depends on pre-test probability, clinical consequences and uncertainty.

Quantitative Data AnalysisNeed your diagnostic accuracy analysis checked? A statistician can verify sensitivity, specificity, likelihood ratios and their confidence intervals against your study design.

Request an Assessment

Quantitative Data Analysis

Quantitative Data Analysis at OnlineSPSS provides the agreed methodological, analytical and statistical reporting support for your study, carried out in-house by PhD-level statisticians. A statistically trained Research Coordinator reviews your request, and the analytical work, deliverables, timeline and one fixed project fee are confirmed before work begins. The research question, interpretation and conclusions remain with you.

References

  • Bossuyt, P. M., Reitsma, J. B., Bruns, D. E., Gatsonis, C. A., Glasziou, P. P., Irwig, L., Lijmer, J. G., Moher, D., Rennie, D., de Vet, H. C. W., Kressel, H. Y., Rifai, N., Golub, R. M., Altman, D. G., Hooft, L., Korevaar, D. A., & Cohen, J. F. (2015). STARD 2015: An updated list of essential items for reporting diagnostic accuracy studies. BMJ, 351, h5527. https://doi.org/10.1136/bmj.h5527
  • Deeks, J. J., & Altman, D. G. (2004). Diagnostic tests 4: Likelihood ratios. BMJ, 329(7458), 168–169. https://doi.org/10.1136/bmj.329.7458.168

Last reviewed November 2026 by the OnlineSPSS Statistical Team. Worked examples use hypothetical values and are not client data.

NEXT STEP

Need this done for
your study?

Share your research in about a minute and receive a complimentary assessment the same day: scope, timeline and one fixed fee.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response

Serving Researchers Since 2014