Positive Predictive Value Epi

Enter your 2x2 contingency table values to instantly compute PPV, NPV, sensitivity, specificity, and likelihood ratios for diagnostic test evaluation.

2×2 Contingency Table

Enter raw cell counts from your diagnostic study.

Disease +
Disease −
Test +
Test −

TP — True Positives: disease+ & test+

FP — False Positives: disease− & test+

FN — False Negatives: disease+ & test−

TN — True Negatives: disease− & test−

Enter values and click Calculate to see results.

Summary

Enter your 2x2 contingency table values to instantly compute PPV, NPV, sensitivity, specificity, and likelihood ratios for diagnostic test evaluation.

How it works

  1. Fill in the four cells of the 2x2 table: True Positives, False Positives, False Negatives, True Negatives.
  2. The tool calculates totals for disease-positive, disease-negative, test-positive, and test-negative groups.
  3. Sensitivity = TP / (TP + FN); Specificity = TN / (TN + FP).
  4. PPV = TP / (TP + FP); NPV = TN / (TN + FN).
  5. LR+ = Sensitivity / (1 − Specificity); LR− = (1 − Sensitivity) / Specificity.
  6. Prevalence and overall accuracy are computed from the full table totals.

Use cases

  • Evaluate a screening test before clinical adoption.
  • Compare the accuracy of two competing diagnostic assays.
  • Calculate post-test probability for a patient given a known prevalence.
  • Teach epidemiology students the relationship between prevalence and PPV.
  • Assess a rapid antigen test vs. a reference PCR standard.
  • Determine whether a high-specificity or high-sensitivity test is appropriate.
  • Audit published diagnostic studies for reported accuracy metrics.
  • Plan sample sizes for diagnostic accuracy studies based on target PPV.

Frequently Asked Questions

Last updated: 2026-07-24 · Reviewed by Nham Vu