Sensitivity & Specificity Calculator

Compute sensitivity, specificity, PPV, NPV and accuracy with 95% CIs from a 2×2 table, plus likelihood ratios and the Youden index. For clinical research.

What each index of the 2×2 table measures

Why PPV changes with prevalence

Sensitivity and specificity are properties of the test; predictive values also depend on how many people have the condition where you use it. Take a screening test with a sensitivity of 0.85 and a specificity of 0.90.

Same test: in one setting almost 8 in 10 positives are real, in the other 3. That is why the calculator also reports your sample prevalence: if your sample does not reflect the prevalence of the population you want to generalize to (for example, because you recruited cases and controls separately), do not report PPV and NPV as if they held for that population.

Wilson confidence intervals

All five percentages come with a 95% confidence interval by Wilson’s (1927) score method. The textbook interval (p ± 1.96·√(p(1 − p)/n)) fails exactly where diagnostic accuracy uses it most: with proportions close to 100% and small groups it can exceed 100% or have zero width. Wilson’s stays within 0-100% and has better coverage with small n.

How to report it

Always give sensitivity and specificity with their intervals, the cutoff and the reference standard, plus the full 2×2 table (in the text or in supplementary material). The reporting guideline for these studies is the STARD 2015 checklist, with its 30 items; you can check your paper against STARD before you submit. If you still need to choose the cutoff, the ROC curve calculator gives the AUC and the Youden cutoff, and the full explanation is in sensitivity, specificity and ROC curves.

How to cite this tool

If you use it in your thesis or in a paper, cite it so that readers of your Methods section know how the calculation was done.

Ciudad-Fernández, V. (2026). Sensitivity and specificity calculator [Web application]. Ciudad Science. Retrieved October 6, 2026, from https://analisisdedatospsicologia.com/en/tools/sensitivity-specificity-calculator

For your Methods section: Sensitivity, specificity and predictive values were computed with Wilson (1927) 95% confidence intervals using the Ciudad Science sensitivity and specificity calculator (Ciudad-Fernández, 2026).

@misc{ciudadfernandez2026sensibilidad,
  author       = {Ciudad-Fern{\'a}ndez, V{\'i}ctor},
  title        = {{Sensitivity and specificity calculator}},
  year         = {2026},
  publisher    = {Ciudad Science},
  howpublished = {Web application},
  url          = {https://analisisdedatospsicologia.com/en/tools/sensitivity-specificity-calculator},
  urldate      = {2026-10-06},
  note         = {Accessed 2026-10-06},
}

You may also be interested in

Home · Contact for a quote