Home / Sensitivity and Specificity Calculator

Sensitivity and Specificity Calculator

Sensitivity and specificity summarize classification against a chosen reference label. Predictive values are also included, but they depend on the prevalence in the evaluated sample.

How to use this calculator

  1. Enter all four integer counts from the same evaluation.
  2. Check that all inputs use the same units, period and population scope.
  3. Change one assumption at a time when comparing scenarios.

Formula used by sensitivity specificity calculator calculator

Sensitivity = TP/(TP+FN); specificity = TN/(TN+FP); PPV = TP/(TP+FP); NPV = TN/(TN+FN).

  • Sensitivity = TP/(TP+FN); specificity = TN/(TN+FP); PPV = TP/(TP+FP); NPV = TN/(TN+FN).
  • The results depend on the reference standard, thresholds and population. They do not determine whether a diagnostic test is suitable for an individual.
  • The tool validates inputs and rounds displayed figures for readability; it does not validate assumptions against external records.

Worked examples

Worked example

A test has 82 true positives, 18 false negatives, 145 true negatives and 25 false positives.

Sensitivity = 82%; specificity = 145/170 ≈ 85.29%.

The calculator reports sensitivity, specificity and predictive values where denominators exist.

Understanding the result

Sensitivity and specificity summarize classification against a chosen reference label. Predictive values are also included, but they depend on the prevalence in the evaluated sample.

The results depend on the reference standard, thresholds and population. They do not determine whether a diagnostic test is suitable for an individual.

Important notes

The results depend on the reference standard, thresholds and population. They do not determine whether a diagnostic test is suitable for an individual.

Treat the result as an estimate from the entered assumptions. For commercial, statistical, engineering or health-related decisions, verify relevant specifications and professional guidance.

Frequently asked questions

Why do predictive values change between populations?

Positive and negative predictive values depend on prevalence as well as test performance.

Is overall accuracy enough?

No. Class balance and the cost of different errors may require additional metrics.

How should I interpret this result?

The results depend on the reference standard, thresholds and population. They do not determine whether a diagnostic test is suitable for an individual.

Related calculators

  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.
  • Insulation R-Value Calculator — Estimate material-layer R-value and corresponding U-value from insulation thickness and thermal conductivity.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
  • Arc Length Calculator — Calculate circular arc length and sector area from a radius and central angle in degrees.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Percentage Change — Learn the percentage change formula, how to calculate increases and decreases, and why the original value matters.
  • Return on Investment (ROI) — Understand ROI, the basic ROI formula, and how to interpret a positive or negative return.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Circle Calculator — Calculate circle area, circumference, and diameter from radius.
  • Pythagorean Theorem Calculator — Find the hypotenuse of a right triangle from the two perpendicular sides.
  • Arc Length Calculator — Calculate circular arc length and sector area from a radius and central angle in degrees.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
  • Insulation R-Value Calculator — Estimate material-layer R-value and corresponding U-value from insulation thickness and thermal conductivity.
Browse by categoryMath CalculatorsFinancial CalculatorsDate & Time CalculatorsScience & Electronics CalculatorsBusiness CalculatorsHealth & Fitness Calculators

Task collections

  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Math & Statistics Calculators — Free math and statistics calculators for Bayes theorem, set operations, matrices, complex numbers, vector products, normal distributions, averages, percentages, standard deviation, geometry, equations, and number systems.
  • Home Project Calculators — Free home and construction calculators for square footage, roofing, stairs, tile, concrete, framing stud counts, steel plate weight, siding, countertops, insulation, and material estimates.
  • Everyday Money Calculators — Free money and operating calculators for salary, overtime, VAT, pricing, budgets, fuel costs, receivables and payables days, acquisition payback, staffing, email-list growth, and creator RPM estimates.

Related guides

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Age from a Date of Birth — Learn how exact age is calculated using years, months, and days rather than a rough year difference.
  • How to Calculate Days Between Dates — Learn how date intervals work, including leap years and inclusive vs exclusive day counting.

Related terms

  • Discount — Understand discounts, percent-off pricing, and how to calculate the amount saved and the final price.
  • Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.
  • Percent Difference — Understand percent difference, when it is appropriate, and how it differs from percentage change and percent error.

Useful conversions

  • cm to inches — Convert centimeters to inches with a fast cm to inches converter, formula, examples, and common conversion values.
  • feet to cm — Convert feet to centimeters instantly with a free feet to cm converter, formula, examples, and common values.
  • feet to meters — Convert feet to meters with a free feet to meters converter, formula, examples, and common values.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.