researchtools
Medical Research

Diagnostic Accuracy Calculator

Sensitivity, specificity, PPV, NPV, LR± and 95% confidence intervals.

Explore the 1,000-person prevalence simulator →
YOUR INPUTS
Positive/negative refers to the test; condition status is determined by the reference standard.
All calculations happen in your browser.
RESULT

Ready when you are.

Enter your values and select Calculate to see your result here.

ABOUT THIS TOOL

Analyze a 2×2 diagnostic classification table, including Wilson 95% confidence intervals, likelihood ratios, diagnostic odds ratio, F1 and prevalence-adjusted predictive values.

Important: Wilson intervals assume binomial observations and do not adjust for study design or selection bias. Predictive values reflect disease prevalence; prevalence-adjusted estimates assume transportable sensitivity and specificity. An ROC curve or AUC cannot be recovered from only one confusion matrix.

How it works

Method: Sensitivity = TP/(TP + FN), specificity = TN/(TN + FP); LR+ = sensitivity/(1 − specificity), LR− = (1 − sensitivity)/specificity. Youden J = sensitivity + specificity − 1. F1 = 2TP/(2TP + FP + FN). Wilson score intervals are supplied only for proportions.

Example: With TP = 85, FN = 15, FP = 10 and TN = 90, sensitivity is 85%, specificity 90%, LR+ 8.5 and LR− ≈ 0.167. Population PPV/NPV can be estimated for a given prevalence using Bayes’ theorem.

Statistical references

Wilson EB. Probable inference, the law of succession, and statistical inference. J Am Stat Assoc. 1927. DOI. See also STARD 2015 for reporting diagnostic accuracy studies.

INTERACTIVE EXPLORER

1,000 people. How many test positive?

Move the prevalence slider to see how the same test creates different numbers of true and false positives. First click Calculate above to use your test’s sensitivity and specificity.

Calculate the diagnostic metrics to activate this visualization.
True positive False positive False negative True negative

Expected values under the assumed test sensitivity, specificity and prevalence; dots are rounded for display. This is not a simulated clinical study or a prediction for an individual.

Cite this toolCopy · BibTeX · RIS

If you use this calculator in research, you may cite the software and report the statistical methods separately. Citation is appreciated, not required. No DOI is registered for this release.

Biotech Insight Solutions. ResearchTools: Diagnostic Accuracy Calculator (version 1.4) [Software]. 2026. Available at: https://tools.biotech-insight.com/tools/diagnostic-accuracy/

A citation cannot replace a methods description or independent verification. Report version, statistical assumptions and data-processing choices.

← Back to Medical Research