Diagnostic Test Accuracy Calculator
Compare a test result with a reference standard and get sensitivity, specificity, predictive values, likelihood ratios and the diagnostic odds ratio, each with a confidence interval where one applies.
When to use this calculator
- You are evaluating a screening or diagnostic test against a reference standard in a study sample.
- You need sensitivity and specificity with confidence intervals for a protocol, thesis or manuscript.
- You want likelihood ratios to update the probability of disease after a positive or negative result.
How to use it
- Enter the true positives, false positives, false negatives and true negatives from your 2 x 2 table.
- Choose a confidence level.
- Read sensitivity, specificity and the predictive values with their intervals.
- Check the prevalence in your sample before you interpret the predictive values.
How to read the result
Sensitivity is the proportion of people with the disease who test positive. Specificity is the proportion of people without the disease who test negative.
Positive and negative predictive values depend on how common the disease is. The values shown apply only at the prevalence in your sample, so they may not transfer to a population where the disease is rarer or commoner.
A positive likelihood ratio well above 1 and a negative likelihood ratio well below 1 mean the test changes the probability of disease substantially. The farther from 1, the stronger the evidence.
Results depend on the quality of the reference standard and on how participants were selected. Report the study following the STARD guideline.
Frequently asked questions
- What is the difference between sensitivity and specificity?
- Sensitivity measures how well a test detects people who have the disease. Specificity measures how well it correctly clears people who do not.
- Why do predictive values change with prevalence?
- A positive result is more likely to be a true positive when the disease is common and more likely to be a false positive when it is rare, even if sensitivity and specificity stay the same.
- What is a likelihood ratio?
- The positive likelihood ratio is sensitivity divided by one minus specificity. The negative likelihood ratio is one minus sensitivity divided by specificity. They describe how much a result shifts the odds of disease.
- Do I need a reference standard?
- Yes. Accuracy is measured against the best available way of knowing who truly has the disease. Without a reference standard the figures cannot be interpreted.
- How many participants do I need for a diagnostic accuracy study?
- Use the diagnostic accuracy sample size calculator, which sizes the study for a target sensitivity or specificity with a chosen precision.
Related calculators
Use this in a full research protocol
A free ToProt account lets you save calculations to a study, build your protocol and objectives, manage references and generate your data dictionary in one place.