Positive Predictive Value Epi

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

Use the Positive Predictive Value Epi

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

This tool computes all standard metrics from a 2x2 diagnostic contingency table: PPV, NPV, sensitivity, specificity, overall accuracy, and both likelihood ratios. Enter the four cell counts (TP, FP, FN, TN) and results appear instantly. All formulas follow standard epidemiological definitions and the results include a prevalence estimate derived from your input data.

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 observed PPV and NPV directly from prospective cohort screening study counts.
  • 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.
  • Evaluate point estimates of diagnostic performance metrics from completed or pilot study data.

Frequently Asked Questions

Last updated: 2026-06-18 · Reviewed by Nham Vu