AskCalc
Home › General & Anthropometrics › 2×2 diagnostic stats

Sensitivity, Specificity, PPV, NPV from a 2×2 Table

From a 2×2 table of true positives (TP), false positives (FP), false negatives (FN) and true negatives (TN): sensitivity = TP/(TP+FN), specificity = TN/(TN+FP), PPV = TP/(TP+FP), NPV = TN/(TN+FN), LR+ = sens/(1 − spec), LR− = (1 − sens)/spec.

  • True positives (TP)
  • False positives (FP)
  • False negatives (FN)
  • True negatives (TN)
—

Formula

Sens = TP/(TP+FN) · Spec = TN/(TN+FP) · PPV = TP/(TP+FP) · NPV = TN/(TN+FN) · LR+ = sens/(1−spec) · LR− = (1−sens)/spec · Prevalence = (TP+FN)/N · Accuracy = (TP+TN)/N

Clinical pearls

  • PPV and NPV depend on prevalence: they apply only to populations with a disease prevalence similar to the study sample.
  • Sensitivity and specificity (and LRs) are more portable between settings, but can still vary with disease spectrum.

Examples

FAQ

What is the difference between sensitivity and PPV?

Sensitivity is the proportion of people with disease who test positive; PPV is the proportion of positive tests that truly have disease, and it changes with prevalence.

What does SnNout and SpPin mean?

A highly Sensitive test, when Negative, rules out disease; a highly Specific test, when Positive, rules in disease.

Evidence

  1. Altman DG, Bland JM. Diagnostic tests 1: sensitivity and specificity. BMJ 1994;308:1552.
  2. Altman DG, Bland JM. Diagnostic tests 2: predictive values. BMJ 1994;309:102.

General & Anthropometrics · Reviewed 2026-10-14 · Methodology