Likelihood Ratio Calculator
Enter test sensitivity and specificity to calculate positive and negative likelihood ratios (LR+ and LR-). Optionally add a pre-test probability to estimate post-test probabilities.
Why calculating likelihood ratio matters
When clinicians, researchers, and students evaluate diagnostic tests, they often begin with sensitivity and specificity. Those metrics are helpful, but they do not directly tell you how much a test result changes the probability of disease in an individual patient. That is exactly what likelihood ratios are designed to do.
A likelihood ratio compares how likely a test result is in people with a condition versus people without it. Instead of stopping at “this test is 92% sensitive,” you can ask a more practical question: “After a positive or negative result, how much should I update my confidence that the condition is present?”
The two key formulas
Positive likelihood ratio (LR+)
LR+ = Sensitivity / (1 - Specificity)
This tells you how much more likely a positive test appears in someone with the condition than in someone without it. Higher LR+ values are better for ruling in disease.
Negative likelihood ratio (LR-)
LR- = (1 - Sensitivity) / Specificity
This tells you how likely a negative test appears in someone with the condition compared with someone without it. Lower LR- values are better for ruling out disease.
Quick interpretation guide
- LR+ > 10: strong evidence to rule in disease
- LR+ 5 to 10: moderate evidence
- LR+ 2 to 5: small but sometimes meaningful evidence
- LR- < 0.1: strong evidence to rule out disease
- LR- 0.1 to 0.2: moderate evidence
- LR- 0.2 to 0.5: small evidence
From likelihood ratios to post-test probability
Likelihood ratios become even more useful when combined with pre-test probability. This is the probability you estimate before the test, based on clinical history, prevalence, risk factors, and exam findings.
Bayesian update steps
- Convert pre-test probability to odds: odds = p / (1 - p)
- Multiply by LR to get post-test odds
- Convert post-test odds back to probability: p = odds / (1 + odds)
A positive result uses LR+. A negative result uses LR-. This approach is often more clinically realistic than interpreting sensitivity and specificity in isolation.
Worked example
Suppose a diagnostic test has sensitivity 92% and specificity 88%:
- LR+ = 0.92 / (1 - 0.88) = 0.92 / 0.12 = 7.67
- LR- = (1 - 0.92) / 0.88 = 0.08 / 0.88 = 0.09
Interpretation: a positive result gives moderate-to-strong evidence for disease, while a negative result gives strong evidence against disease.
If your pre-test probability were 20%, the pre-test odds are 0.2 / 0.8 = 0.25. Multiply by LR+ to get post-test odds of 1.92, which converts to a post-test probability of about 65.8% after a positive test. For a negative test, 0.25 × 0.09 = 0.0225 odds, or about 2.2% probability. That is a major shift in clinical decision-making.
Common mistakes when calculating likelihood ratio
- Using percentages directly without conversion: always convert 92% to 0.92 before applying formulas.
- Confusing LR with predictive values: positive predictive value and negative predictive value depend heavily on prevalence; LR does not.
- Ignoring pre-test probability: the same LR can produce very different post-test probabilities depending on starting risk.
- Forgetting extreme edge cases: specificity of 100% makes LR+ approach infinity; sensitivity of 100% makes LR- approach zero.
When likelihood ratios are especially useful
Likelihood ratios shine in evidence-based medicine, emergency triage, and specialist referral decisions. They are also valuable in teaching because they force a disciplined way to update belief based on evidence rather than intuition alone.
In research, LR helps compare competing tests and determine whether a new assay actually improves clinical discrimination. In practice, LR supports transparent communication: instead of saying “the test is good,” you can explain exactly how much a result changes probability.
Bottom line
Calculating likelihood ratio is one of the most practical statistical skills for diagnosis. If you know sensitivity and specificity, you can compute LR+ and LR- quickly, interpret test strength, and translate results into post-test probabilities that are directly useful for decisions.
Use the calculator above to test different scenarios and build intuition. Over time, this approach will make your interpretation of diagnostic tests sharper, clearer, and more clinically grounded.