Specificity Calculator - True Negative Rate

Use this specificity calculator to turn true negatives and false positives into a true negative rate with the matching false positive rate, shown from your own 2x2 table.

Updated: July 8, 2026 • Free Tool

Specificity Calculator

People with the condition who tested positive.

People without the condition who tested positive.

People without the condition who tested negative.

People with the condition who tested negative.

Results

Specificity
0%
False Positive Rate 0%

What Is Specificity Calculator?

A specificity calculator finds how reliably a diagnostic or screening test labels healthy people as negative. It takes the four cells of a 2x2 confusion matrix and returns specificity, the true negative rate, as a percentage you can compare against a test's threshold.

  • Clinicians judging a screening test: A doctor weighing a new assay checks how often it wrongly alarms healthy patients before recommending it for routine use.
  • Students learning test accuracy: Learners in biostatistics or epidemiology practice turning a contingency table into a true negative rate without doing the division by hand.
  • Researchers comparing classifiers: A model builder reports the true negative rate alongside the true positive rate to describe a binary classifier's behavior on both classes.
  • Lab managers validating instruments: A lab reviewing a device's performance logs sums true and false negatives from known-negative samples to confirm the claimed specificity.

Specificity answers one narrow question: of everyone who truly lacks the condition, how many did the test get right? It deliberately ignores people who are actually positive, which is why it pairs with sensitivity rather than replacing it.

Because the two measures describe opposite halves of the population, many teams keep them side by side. Our sensitivity calculator covers the true positive side; this page covers the true negative side, and a single confusion matrix calculator can produce both at once. Reading the two side by side keeps a team from over-trusting a single headline number when they report a test result.

Because specificity and sensitivity describe opposite halves of the same table, the sensitivity calculator is the natural companion for seeing the true positive rate.

How Specificity Calculator Works

This specificity calculator divides the true negatives by all the actual negatives, then converts the ratio into a percentage you can compare against a published specification.

Specificity = TN / (TN + FP) x 100%
  • Variable: True negatives: people without the condition who tested negative.
  • Variable: False positives: people without the condition who tested positive.
  • Variable: All actual negatives, the denominator for the true negative rate.

The result is the true negative rate. Its complement, 1 minus specificity, is the false positive rate: the proportion of healthy people the test incorrectly flags. They always sum to 100 percent, so reporting one tells you the other.

The threshold of 'all actual negatives' matters. If a sample has no truly healthy people at all, the denominator is zero and specificity cannot be computed; the tool reports the result as undefined instead of guessing.

A screening panel of 300 people

TN = 180, FP = 20, so actual negatives = 200.

Specificity = 180 / (180 + 20) x 100% = 180 / 200 x 100% = 90%.

Specificity = 90%, so the false positive rate = 10%.

Nine in ten healthy people are correctly cleared, while one in ten healthy people is needlessly flagged.

According to Wikipedia: Sensitivity and specificity.

If you only have raw test outcomes, build the four counts first with the confusion matrix calculator and paste them into this tool.

Key Concepts Explained

Four terms recur whenever specificity comes up; understanding each one keeps the calculation from being misread.

True negative rate

The share of healthy people the test labels negative. It is specificity by another name and the figure this calculator returns.

False positive rate

1 minus specificity, or FP divided by all negatives. It quantifies how often a healthy person is wrongly alarmed by the test.

Actual negatives

The denominator TN + FP. If this is zero the true negative rate is undefined, because there is no healthy group to measure against.

Binary classifier framing

In machine learning the same four cells describe any yes/no model, so specificity is the negative-class analogue of recall.

Specificity is a property of the test, not of the population being tested. The same assay keeps the same true negative rate whether it screens a high-risk clinic or a healthy workplace; what changes is how often that rate turns into a correct answer in practice.

That population effect is why specificity alone never settles a diagnosis. It sets the false positive rate, and the false positive rate combined with how common the condition is determines the chance a positive result is real. A high true negative rate therefore lowers the number of false alarms, which matters most when the condition is rare and most positive screens would otherwise be wrong.

When you want to see how a test result shifts the odds of having the condition, the relative risk calculator extends the same 2x2 table into risk ratios.

How to Use This Calculator

Enter the four table counts, and the calculator returns the true negative rate immediately.

  1. 1 Count the true negatives: From your known-negative cases, note how many the test labeled negative (TN).
  2. 2 Count the false positives: From the same known-negative group, note how many the test wrongly labeled positive (FP).
  3. 3 Enter the two counts: Type TN and FP into their fields. True positives and false negatives are optional for specificity but help confirm the full table.
  4. 4 Read the specificity: The tool divides TN by TN + FP and shows the true negative rate as a percentage.
  5. 5 Read the false positive rate: The complement (100% minus specificity) appears next to it so you can quote both.
  6. 6 Confirm the denominator: If TN and FP are both zero, the result shows undefined; add at least one actual negative to compute a rate.

A workplace screen of 500 known-negative samples yields 470 true negatives and 30 false positives. Entering TN = 470 and FP = 30 returns a specificity of 94% and a false positive rate of 6%.

Once you have the rate, the hypothesis testing calculator helps decide whether an observed true negative rate differs from a claimed specification.

Benefits of Using This Calculator

A dedicated specificity calculator removes the arithmetic and the guesswork from test evaluation, so a reviewer can quote a true negative rate without rebuilding the table by hand.

  • Avoids hand-division errors: Dividing TN by TN + FP looks simple but is easy to flip; the calculator keeps the numerator and denominator in the right place.
  • Shows the false positive rate at once: Because it pairs specificity with 1 minus specificity, you can quote both figures from one entry.
  • Makes the 2x2 table transparent: Displaying all four cells lets a reviewer confirm the inputs before trusting the percentage.
  • Speeds up study write-ups: Reporting a true negative rate with its complement is standard in method sections, so the output drops straight into a table.
  • Handles the undefined case cleanly: When no actual negatives exist, the tool says so instead of returning a misleading number.

The biggest practical payoff is comparability. A true negative rate of 90 percent means little until you see the false positive rate beside it, and this specificity calculator always renders the pair from a single entry.

For teaching, the visible four-cell table turns an abstract ratio into something a student can point at, which is why instructors pair it with the confusion matrix breakdown.

To show students the four cells behind the rate, open the confusion matrix calculator alongside this one.

Factors That Affect Your Results

A few conditions change what a specificity result means or whether it can be computed at all.

Denominator size

With few actual negatives, the true negative rate is unstable; a small change in one false positive swings the percentage.

Reference standard quality

TN and FP are only as trustworthy as the gold-standard diagnosis that decided who truly lacked the condition.

Spectrum of negatives

Healthy volunteers differ from hospital patients with other illnesses, so specificity can shift across settings even for the same test.

Cutoff threshold

Moving a test's positive cutoff trades false positives for false negatives, lowering or raising the true negative rate directly.

  • Specificity says nothing about positive results. A test can be near-perfect at clearing healthy people yet miss many who are sick, so it must be read with sensitivity.
  • This calculator reports the rate you enter; it does not adjust for disease prevalence or tell you the chance a positive result is correct. That inference needs Bayes' theorem.

Treat the true negative rate as a property of the test in your setting, not a universal constant. Re-estimate it whenever the population or the threshold changes. Re-estimate it for each new cohort so the number you report reflects the patients you actually tested.

For the formal link between test accuracy and post-test probability, the relationship is derived from conditional probability as laid out in Bayes' theorem.

According to Wikipedia: Bayes' theorem.

Since prevalence affects positive results more than the true negative rate, compare both with the sensitivity calculator before drawing conclusions.

Specificity calculator showing a 2x2 confusion matrix with true negatives and false positives feeding the true negative rate.
Specificity calculator showing a 2x2 confusion matrix with true negatives and false positives feeding the true negative rate.

Frequently Asked Questions

Q: What is specificity in a diagnostic test?

A: Specificity, also called the true negative rate, is the proportion of people who truly lack the condition that the test correctly labels negative. It is calculated as true negatives divided by all actual negatives (true negatives plus false positives).

Q: What is a good specificity value?

A: A higher true negative rate is generally better because it means fewer healthy people are wrongly flagged. A confirmatory test often targets 90% or above, while a broad screening test may accept a lower rate if its job is to catch as many cases as possible.

Q: How is specificity different from sensitivity?

A: Sensitivity measures how many truly sick people the test catches (true positive rate), while specificity measures how many truly healthy people it correctly clears (true negative rate). A test can score high on one and low on the other, so both are reported together.

Q: Why does specificity matter for a positive screening result?

A: Specificity sets the false positive rate. When a condition is rare, even a small false positive rate produces many false alarms, so a positive screen may still be unlikely to indicate true disease. Specificity works with prevalence to determine a result's real meaning.

Q: What is the relationship between specificity and the false positive rate?

A: The false positive rate is exactly 1 minus specificity. If the true negative rate is 90%, the false positive rate is 10%. They always sum to 100%, so knowing one gives you the other.

Q: Can specificity be 100 percent?

A: Yes, when every actual negative is correctly labeled negative and there are zero false positives. That means the false positive rate is 0%. It is uncommon in real screening because no test is perfect across every patient.