Overview
Sensitivity and specificity describe how well a test sorts positives from negatives. This works out both, along with the positive and negative predictive values.
Enter true positives, false negatives, true negatives and false positives from your test results. For a medical test, ask a clinician to interpret it.
Worked examples
| Inputs | Result |
|---|---|
| True Positives88False Negatives12True Negatives190False Positives18 | Sensitivity: 88%Specificity: 91.35%PPV: 83.02%NPV: 94.06% |
Show 2 more examples
| True Positives45False Negatives5True Negatives900False Positives50 | Sensitivity: 90%Specificity: 94.74%PPV: 47.37%NPV: 99.45% |
| True Positives99False Negatives1True Negatives95False Positives5 | Sensitivity: 99%Specificity: 95%PPV: 95.19%NPV: 98.96% |
Sensitivity by true positives
With the calculator's starting values, the sensitivity is 88%. The table shows how it changes with the true positives.
| True Positives | Sensitivity |
|---|---|
| 60 | 83.33% |
| 80 | 86.96% |
| 88starting value | 88% |
| 100 | 89.29% |
| 120 | 90.91% |
Other inputs: False Negatives: 12 · True Negatives: 190 · False Positives: 18. Change them in the calculator above for your own numbers.
How it works
Sensitivity is the share of real positives the test catches: TP ÷ (TP + FN). Specificity is the share of real negatives it correctly clears: TN ÷ (TN + FP). PPV and NPV show how often a positive or negative result is correct, and those depend on how common the condition is in the group tested.
The formula
| TP, FN | Real positives caught and missed |
| TN, FP | Real negatives cleared and false alarms |
Practical tips
- 88 TP, 12 FN, 190 TN and 18 FP give 88% sensitivity and 91.35% specificity.
- A highly sensitive test is good for ruling a condition out, and a highly specific one for ruling it in.
- False positive rate is 100% − specificity.
Frequently asked questions
Which matters more?
It depends on whether missing a case or raising a false alarm is worse.
Why do PPV and NPV change between groups?
They depend on prevalence. The same test gives a lower PPV where the condition is rarer.
Is specificity the same as precision?
No. Precision is PPV, the share of positive results that are correct.