Sensitivity and Specificity Calculator

Judge a medical test from its results table: sensitivity, specificity, predictive values and overall accuracy.

Your details

Your data stays in your browser

Result

Enter the four cells of the results table, then press “Calculate”.

Analysis and suggestions

Once calculated, this shows what your result means and suggestions based on your numbers.

Behind the result

Judge a medical test from its results table: sensitivity, specificity, predictive values and overall accuracy.

Example · الحساسية = TP ÷ (TP + FN) | النوعية = TN ÷ (TN + FP) | القيمة التنبؤية الإيجابية = TP ÷ (TP + FP)

90 ÷ (90 + 10) = 0.9; 855 ÷ (855 + 45) = 0.95

How it is calculated

Comprehensive Calculator Guide

This calculator turns a test’s 2×2 table (TP, FN, FP, TN) into sensitivity, specificity, PPV, NPV, accuracy and prevalence. With 90, 10, 45 and 855: sensitivity 90%, specificity 95%, but PPV only 66.7%.

Test vs patient

Sensitivity and specificity describe the test; PPV and NPV, which change with prevalence, tell a patient what a result means. Sensitive tests rule out; specific tests rule in.

How to Use

  1. Enter TP and FN.
  2. Enter FP and TN.
  3. Press “Calculate” to see all six measures.

Formula Used

Sens = TP/(TP + FN) | Spec = TN/(TN + FP) | PPV = TP/(TP + FP) | NPV = TN/(TN + FN)

Practical Examples

Example 1
90, 10, 45, 855: 90%, 95%, PPV 66.67%.
Example 2
70, 30, 9, 891: 70%, 99%, PPV 88.61%.

Important Tips

  • Sensitive to rule out, specific to rule in.
  • Don’t compare PPVs across prevalences.
  • Use the post-test calculator for another prevalence.

Common Mistakes to Avoid

  • Swapping FN and FP.
  • Judging by accuracy alone.
  • Treating PPV as fixed.

Frequently Asked Questions

Sensitivity vs specificity?
Catching the ill vs clearing the healthy.
Why is PPV lower?
False positives among the many healthy.
What is accuracy?
All correct results over the total.

Read Also

Results are estimates for educational purposes and may vary depending on your situation and data sources.