Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Sensitivity and specificity calculator

Enter the four confusion-matrix cells: true positive, false negative, true negative and false positive.

Sensitivity: —

Fill in the fields above — the result is computed on this page.

Specificity
—
Accuracy
—
Sample prevalence
—
Positive predictive value PPV
—
Negative predictive value NPV
—
F1 score
—
Positive likelihood ratio LR+
—
Negative likelihood ratio LR−
—
Total
—

2 × 2 matrix

Test result Condition present Condition absent
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • High sensitivity reduces false negatives.
  • High specificity reduces false positives.

Results describe the entered sample and classification threshold. Transferring PPV and NPV to a population with different prevalence can be misleading. This tool does not replace clinical judgment.

How do I use this page?
  1. Enter TP, FN, TN and FP.
  2. Inspect sensitivity and specificity.
  3. Compare PPV, NPV, F1 and likelihood ratios.

What this page does not do: Results describe the entered sample and classification threshold. Transferring PPV and NPV to a population with different prevalence can be misleading. This tool does not replace clinical judgment.

Further reading

Theory — how do sensitivity and specificity differ?

Sensitivity is the share of cases detected by a test among all people who actually have the condition, while specificity is the share correctly excluded among those who do not. The calculator computes these from four confusion-matrix cells: true positive, false negative, true negative and false positive. Positive and negative predictive values also depend on how common the condition is in the tested population. Sensitivity and PPV are not the same: sensitivity conditions on the true state, while PPV conditions on the test result.

Frequently asked questions

Are sensitivity and PPV the same?
No. Sensitivity conditions on the true state, while PPV conditions on a positive test result.
Why does PPV change between populations?
It also depends on prevalence, which can differ even when sensitivity and specificity stay the same.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.