Specificity
Reviewed bySatya R Panigrahi
Definition
In diagnostic testing, specificity is the ability of a test to correctly identify individuals who do not have the condition, calculated as the number of true negatives divided by the total number of individuals who truly do not have the condition (true negatives plus false positives).[4][1] It is also called the true negative rate. High specificity means fewer false positive results.
Explore the concept
A tiny sliver of a huge crowd
See specificity counted among women without cancer, then watch its small false positive share turn into a pile of positive results, and see what it cannot tell you.
99,960 women without ovarian cancer · one dot ≈ 500 women
Specificity
99.5%
true negative rate
False positives
≈ 500
0.5% of 99,960
One dot in 200 is a false alarm
The big idea: Specificity is the share of people without the condition whom the test calls negative: TN ÷ (TN + FP). Prevalence does not enter it, but a tiny false positive rate in a huge healthy group can still swamp the true cases, and specificity says nothing about the cases a test misses.
The article's ovarian cancer biomarker example, recomputed: 100,000 women, 40 cancers (0.04%), sensitivity 80% (32 found, 8 missed), specificity 99.5%, false positives 0.5% × 99,960 = 499.8 (about 500), PPV 32 ÷ 532 = 6.0% (about 1 in 17). The other specificities on the slider are illustrative, same population and sensitivity: 98% gives 1,999 false positives (about 2,000, PPV 1.6%), 99% gives 1,000 (3.1%, about 31 false per true), 99.9% gives 100 (24%). In the grid, one dot stands for 99,960 ÷ 200 = 499.8 women (199 dots correctly negative, 1 false positive); 99.9% specificity is a 0.1% false positive rate.
Why it matters
Specificity determines how effectively a test avoids false positive results in people who do not have the condition. A highly specific test produces few false positives, so a positive result from a highly specific test helps rule in the condition (the "SpPin" mnemonic: Specificity Positive rules In).[3] The mnemonic is a simplification: how far a positive result raises the probability of the condition also depends on sensitivity and on prevalence, and in the example below a positive result from a test with 99.5% specificity is still usually a false positive. This property is especially important when the consequences of a false positive diagnosis are severe, such as unnecessary surgery, toxic treatment, or psychological harm. In screening programs, specificity determines the volume of false positives that require follow up evaluation, directly affecting the program's cost and acceptability.
How it works
Specificity is calculated from a two by two table comparing test results against a reference standard. The formula is: true negatives divided by the sum of true negatives and false positives. A specificity of 98% means the test correctly identifies 98 out of 100 people without the condition as negative, while 2 out of 100 receive false positive results.[4]
Like sensitivity, specificity is calculated within one group, here the people without the condition, so prevalence does not enter its formula; it can still vary between settings with the spectrum of people tested, such as which other conditions they have. However, the practical implications of a given level of specificity depend heavily on prevalence. In a low prevalence population, even a small false positive rate translates to a large number of false positives relative to true positives, reducing the positive predictive value.[2]
The tradeoff between sensitivity and specificity is governed by the threshold for a positive result. Raising the threshold (requiring a more extreme result to call the test positive) increases specificity, or at least does not lower it, and decreases sensitivity, or at least does not raise it. The ROC curve plots this tradeoff, and the optimal threshold depends on the clinical consequences of false positives versus false negatives.
When to use it
Prioritize specificity when the consequences of a false positive are serious (such as invasive follow up procedures, toxic treatment, or significant psychological burden) and when a positive result will be used to initiate treatment. Report specificity with confidence intervals alongside sensitivity, predictive values, and likelihood ratios to give a complete picture of test performance. In sequential testing strategies, a highly specific confirmatory test is often paired with a highly sensitive screening test.
Key takeaways
- Specificity determines how effectively a test avoids false positive results in people who do not have the condition.
- The formula is: true negatives divided by the sum of true negatives and false positives.
- Prioritize specificity when the consequences of a false positive are serious (such as invasive follow up procedures, toxic treatment, or significant psychological burden) and when a positive result will be used to initiate treatment.
- A common error is neglecting the relationship between specificity and positive predictive value, assuming that a high specificity guarantees a high PPV regardless of prevalence.
Common mistakes
- A common error is neglecting the relationship between specificity and positive predictive value, assuming that a high specificity guarantees a high PPV regardless of prevalence.[2]
- Another mistake is evaluating specificity in a control group that is clearly healthy rather than representative of the clinical population, inflating the apparent specificity (spectrum bias).
- Researchers sometimes report specificity at a single threshold without acknowledging that the value changes as the threshold is adjusted.
- Finally, interpreting a negative result from a highly specific test as ruling out disease is incorrect: ruling out disease requires high sensitivity, not high specificity.[3][4]
Example
A blood biomarker test for early detection of ovarian cancer achieves a specificity of 99.5% and a sensitivity of 80%. In a screening population of 100,000 women where the prevalence of undiagnosed ovarian cancer is 0.04% (40 cases), the test would correctly identify 32 of the 40 cases (true positives) but would also produce approximately 500 false positives (0.5% of 99,960 women without cancer). The PPV would be 32 divided by 532, or about 6%, meaning that only about 1 in 17 positive results would indicate true cancer.
Test your understanding
5 questions that adapt as you go: answer two in a row correctly and they get harder.
Question 1 of 5
Scenario:
In the article's screening example, a blood test for ovarian cancer with 99.5% specificity and 80% sensitivity is used in 100,000 women, of whom 40 have undiagnosed ovarian cancer and 99,960 do not.
Question:
Of the women with a positive result, about what share have cancer?
Hardness: Interpret
Sources
- [1]Lash TL, VanderWeele TJ, Haneuse S, Rothman KJ. Modern Epidemiology. 4th ed. Wolters Kluwer, 2021. ISBN 9781451193282
- [2]Altman DG, Bland JM. Diagnostic tests 2: predictive values. BMJ. 1994;309(6947):102. doi:10.1136/bmj.309.6947.102
- [3]Pewsner D, Battaglia M, Minder C, Marx A, Bucher HC, Egger M. Ruling a diagnosis in or out with "SpPIn" and "SnNOut": a note of caution. BMJ. 2004;329(7459):209-213. doi:10.1136/bmj.329.7459.209
- [4]Altman DG, Bland JM. Diagnostic tests 1: sensitivity and specificity. BMJ. 1994;308(6943):1552. doi:10.1136/bmj.308.6943.1552
Cite this term
Paperguide. (2026, October 16). Specificity. In Paperguide Research Glossary. https://paperguide.ai/research-glossary/specificity/(Paperguide, 2026)