Home / Diagnostic Test Metrics Calculator

Diagnostic Test Metrics Calculator

Summarise a binary classifier or screening test from its four confusion-matrix counts. The result separates how well the test detects positives from how well it identifies negatives.

How to use this calculator

  1. Enter the true positives using the units shown beside the field.
  2. Enter the false negatives using the units shown beside the field.
  3. Enter the true negatives using the units shown beside the field.
  4. Review the calculated values and check that the assumptions match your scenario.
  5. Change one input at a time when comparing scenarios so you can see which assumption drives the result.

Formula and assumptions

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

  • Predictive values change with the prevalence of the condition in the tested population. This calculator is a statistics aid, not medical advice or an assessment of a real test’s clinical suitability.
  • The result is computed from the values you provide; it does not fetch external rates, live account data or local rules.

Worked examples

Worked example

For TP=48, FN=12, TN=130 and FP=10, sensitivity is 80% and specificity is about 92.86%.

Example inputs: True positives = 48, False negatives = 12, True negatives = 130, False positives = 10.

Compare the displayed output with your own measurements before using it in a decision.

Understanding the result

Predictive values change with the prevalence of the condition in the tested population. This calculator is a statistics aid, not medical advice or an assessment of a real test’s clinical suitability.

Results are estimates based on the stated model. If the situation depends on measured conditions or contractual specifications, use those source values rather than typical assumptions.

Important notes

Predictive values change with the prevalence of the condition in the tested population. This calculator is a statistics aid, not medical advice or an assessment of a real test’s clinical suitability.

Frequently asked questions

What formula does this calculator use?

It uses the method described above: Sensitivity=TP/(TP+FN); specificity=TN/(TN+FP); PPV=TP/(TP+FP); NPV=TN/(TN+FN); accuracy=(TP+TN)/total.

What should I verify before relying on the result?

Predictive values change with the prevalence of the condition in the tested population. This calculator is a statistics aid, not medical advice or an assessment of a real test’s clinical suitability.

Can I compare different scenarios?

Yes. Change the inputs while keeping units and definitions consistent, and record the assumptions used for each scenario.

Related calculators

  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • Sensitivity and Specificity Calculator — Calculate sensitivity, specificity, predictive values and total sample count from confusion-matrix counts.
  • A/B Test Sample Size Calculator — Estimate per-variant sample size for a two-sided conversion-rate A/B test using a normal approximation, baseline rate and relative minimum detectable lift.
  • Lens Depth of Field Calculator — Estimate near and far focus limits from focal length, aperture, subject distance and an assumed circle of confusion.
  • API Error Rate Calculator — Calculate the fraction of API requests that meet your defined error criterion in a measured period.
  • API Latency Percentile Calculator — Calculate median, p95 and p99 latency estimates from a list of measured request durations in milliseconds.

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.
  • Percentage Change — Learn what percentage change means, how to calculate increases and decreases, and how the original value affects the result.

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

  • Sensitivity and Specificity Calculator — Calculate sensitivity, specificity, predictive values and total sample count from confusion-matrix counts.
  • Lens Depth of Field Calculator — Estimate near and far focus limits from focal length, aperture, subject distance and an assumed circle of confusion.
  • 2×2 Matrix Calculator — Add, subtract and multiply 2×2 matrices and calculate each determinant with transparent row and column inputs.
  • A/B Test Sample Size Calculator — Estimate per-variant sample size for a two-sided conversion-rate A/B test using a normal approximation, baseline rate and relative minimum detectable lift.
  • API Latency Percentile Calculator — Calculate median, p95 and p99 latency estimates from a list of measured request durations in milliseconds.
  • API Error Rate Calculator — Calculate the fraction of API requests that meet your defined error criterion in a measured period.
Browse by categoryScience & Electronics CalculatorsFinancial CalculatorsDate & Time CalculatorsMath CalculatorsBusiness CalculatorsHealth & Fitness Calculators

Task collections

  • Science & Electronics Calculators — Free science and electronics calculators for projectile motion, force, buoyancy, fluid pressure, Reynolds number, heat transfer, capacitors, RC time constants, resistance, and electrical relationships.
  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Business & Work Calculators — Free business and work calculators for ROI, markup, break-even, sales commission, DSO/DPO, customer-acquisition payback, weighted sales pipelines, labour cost per unit, FTE staffing, email growth, and creator RPM.
  • 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 Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.
  • How to Calculate Percentage Change — Learn the percentage change formula, how to calculate increases and decreases, and why the original value matters.

Related terms

  • Percentage Change — Learn what percentage change means, how to calculate increases and decreases, and how the original value affects the result.
  • Return on Investment (ROI) — Understand ROI, the basic ROI formula, and how to interpret a positive or negative return.
  • Z-Score — Learn what a z-score measures and how it describes a value relative to a mean and standard deviation.

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.