Specificity
Calculate diagnostic test specificity (true negative rate) from TN and FP values. Free online specificity calculator with charts, breakdown tables, and formula reference.
About This Calculator
The Specificity Calculator helps you compute the true negative rate (TNR) of a diagnostic test or classification model using the standard formula: Specificity = TN / (TN + FP). Specificity, also called the true negative rate, measures the proportion of actual negative cases that a test correctly identifies. It is one of the most important metrics in diagnostic test evaluation, medical screening, and machine learning classification. A highly specific test is essential when false positives carry significant costs — such as unnecessary treatment, patient anxiety, or invasive follow-up procedures.
The calculation uses your input of true negatives (TN) — healthy people who tested negative — and false positives (FP) — healthy people who tested positive. The specificity is expressed as a percentage, where a higher value indicates the test is better at avoiding false alarms. Unlike positive predictive value (PPV), specificity does not depend on disease prevalence, making it a stable characteristic of the test itself across different populations.
Regional Notes
India: The Indian Council of Medical Research (ICMR) evaluates diagnostic tests for diseases like tuberculosis, COVID-19, and HIV using specificity analysis. The National AIDS Control Organisation (NACO) requires high-specificity tests to minimize false positives in HIV screening protocols. Medical laboratories follow ICMR guidelines for test validation and quality control.
United States: The FDA evaluates test specificity in 510(k) and PMA submissions, requiring detailed clinical studies. Clinical laboratories follow CLIA regulations for test performance characteristics. The CDC uses specificity benchmarks in infectious disease surveillance, particularly for sexually transmitted infections and emerging pathogens.
United Kingdom: The UK National Screening Committee evaluates specificity alongside sensitivity when assessing screening programmes. NICE diagnostic guidelines reference specificity thresholds for technologies like MRI, CT, and blood-based biomarkers. NHS laboratories validate all diagnostic tests against specificity benchmarks before clinical deployment.
Frequently Asked Questions
What is specificity in diagnostic testing?
Specificity, also called the true negative rate (TNR), measures the proportion of actual negative cases that are correctly identified by a diagnostic test. It answers the question: 'Of all healthy people, how many did the test correctly identify as negative?' A test with high specificity rarely produces false positives, making it valuable for confirming a diagnosis.
What is the formula for specificity?
The specificity formula is: Specificity = TN / (TN + FP), where TN is the number of true negatives (correctly identified healthy people) and FP is the number of false positives (healthy people incorrectly labeled as positive). The result is typically expressed as a percentage.
What is the difference between specificity and sensitivity?
Specificity measures how well a test identifies true negative cases (TN / (TN + FP)), while sensitivity measures how well it identifies true positive cases (TP / (TP + FN)). A highly specific test rarely mislabels healthy people as positive, while a highly sensitive test rarely misses sick people. Both metrics are needed to fully evaluate test performance.
What is a good specificity value for a diagnostic test?
For confirmatory tests, specificity above 99% is often required to minimize false positives. In general, values above 90% are considered good, and above 95% excellent. Screening tests may accept lower specificity in favor of high sensitivity. The FDA and UK National Screening Programme evaluate specificity against disease-specific benchmarks.
How does specificity relate to false positives?
Specificity and false positive rate (FPR) are complementary: FPR = 1 − Specificity. A test with 95% specificity has a 5% false positive rate, meaning 5 out of every 100 healthy people will receive a positive test result. High specificity reduces the burden of unnecessary follow-up tests and patient anxiety caused by false positives.
What is the difference between specificity and negative predictive value?
Specificity (TN / (TN + FP)) measures the test's ability to correctly identify negative cases among all healthy people. Negative Predictive Value or NPV (TN / (TN + FN)) measures the probability that a negative test result truly indicates absence of the condition. NPV depends on disease prevalence, while specificity is a property of the test itself.
Can specificity be 100%?
Yes, a test can have 100% specificity if it correctly identifies all negative cases (FP = 0). However, such tests often have lower sensitivity because the threshold is set very high. A test with 100% specificity but low sensitivity would miss many positive cases, making it unsuitable for screening but useful for confirming a diagnosis after a positive result.