Positive and Negative Predictive Value Calculator

Written by Thierno Sadou Diallo, formula verified per our methodology • Last checked on 12/5/2026

⚠️ This calculator provides an estimate for informational purposes only. It is not a substitute for the advice of a healthcare professional.

PPV = Se × P ÷ (Se × P + (1 − Sp) × (1 − P)). A test with 90% sensitivity and 95% specificity, used where 2% of people have the disease, has a PPV of only about 27%: nearly three positive results out of four are false positives.

Explanation

Sensitivity and specificity describe the test itself: sensitivity is the share of sick people it detects, specificity the share of healthy people it correctly calls negative. But the person receiving a result asks a different question: given that my test is positive, how likely am I to actually have the disease? That is the positive predictive value, or PPV. Likewise, the negative predictive value, or NPV, is the probability of being disease-free when the test is negative. Both values depend heavily on prevalence, the proportion of sick people among those tested. Take 10,000 people, 2% of whom are sick: 200 sick and 9,800 healthy. A test with 90% sensitivity detects 180 of them. With 95% specificity, it wrongly flags 5% of the 9,800 healthy people, or 490. Out of 670 positive results, only 180 are true cases: the PPV is 27%. The same test used in a specialist clinic, where 30% of patients are sick, has a much higher PPV. This is why mass screening for a rare disease produces many false positives, and why a positive result is usually confirmed by a second test. The calculation is a direct application of Bayes' theorem. Likelihood ratios do not depend on prevalence: LR+ = Se ÷ (1 − Sp) tells you by how much a positive result multiplies the odds of disease; above 10, a positive test is considered very informative, and an LR− below 0.1 makes a negative test very reassuring. In machine learning, the PPV goes by another name, precision, and sensitivity is called recall: see the F1 score calculator. This calculator is an educational tool: interpreting a medical result is the job of a health professional, who takes your symptoms and history into account.

Example: screening the general population

Inputs

Sensitivity: 90%. Specificity: 95%. Prevalence: 2%.

Calculation

True positives: 0.90 × 0.02 = 0.018. False positives: 0.05 × 0.98 = 0.049. PPV = 0.018 ÷ (0.018 + 0.049) = 26.9%. True negatives: 0.95 × 0.98 = 0.931. False negatives: 0.10 × 0.02 = 0.002. NPV = 0.931 ÷ 0.933 = 99.79%. LR+ = 0.90 ÷ 0.05 = 18; LR− = 0.10 ÷ 0.95 = 0.105.

Result

A positive test means disease only about one time in four, while a negative test is 99.8% reassuring.

Frequently asked questions

Why does the PPV drop when the disease is rare?

Because false positives come from healthy people. When they are the vast majority, even a small error rate produces more false positives than the test finds true cases.

Where can I find a test's sensitivity and specificity?

In the test's package insert, in published evaluation studies or in health authority reviews. They vary with the stage of the disease and the conditions under which the test is performed.

Which prevalence should I enter?

That of the group actually being tested. For general screening, it is the frequency of the disease in the population; for someone with symptoms, the probability is higher, and it is up to the doctor to estimate it.

Related resources

Similar calculators