PPV and NPV Calculator

Enter sensitivity, specificity, and prevalence to instantly compute PPV, NPV, and the full 2×2 confusion matrix.

Use the PPV and NPV Calculator

Test Parameters

Positive Predictive Value
Probability disease present given positive test
Negative Predictive Value
Probability no disease given negative test

Derived Metrics

False Omission Rate
1 − NPV
False Discovery Rate
1 − PPV
Accuracy
(TP + TN) / N
F1 Score
Harmonic mean: sens & PPV
Likelihood Ratio (+)
Sens / (1 − Spec)
Likelihood Ratio (−)
(1 − Sens) / Spec

2×2 Confusion Matrix (cohort: 1,000)

Disease Present Disease Absent Total
Test Positive
Test Negative
Total
TP = True Positives (top-left)
FP = False Positives (top-right)
FN = False Negatives (bottom-left)
TN = True Negatives (bottom-right)

Summary

Enter sensitivity, specificity, and prevalence to instantly compute PPV, NPV, and the full 2×2 confusion matrix.

How it works

  1. Enter the test sensitivity (true positive rate) as a percentage.
  2. Enter the test specificity (true negative rate) as a percentage.
  3. Enter the disease prevalence in the population as a percentage.
  4. Optionally enter a cohort size to see absolute counts in the 2×2 table.
  5. PPV, NPV, and derived metrics update instantly as you type.

Use cases

  • Evaluate a screening test before rolling it out to a low-prevalence population.
  • Compare two diagnostics with different sensitivity/specificity trade-offs.
  • Teach Bayesian reasoning and the base-rate effect to medical students.
  • Estimate how often a positive COVID or strep test is a true positive.
  • Plan research studies by modeling expected true/false positive rates.
  • Understand why a highly sensitive test can still have poor PPV at low prevalence.

Frequently Asked Questions

Last updated: 2026-09-22 · Reviewed by Nham Vu