Skip to content
Medicine Medium #sensitivity#specificity#diagnostic

Sensitivity vs Specificity

Sensitivity = TP/(TP+FN); Specificity = TN/(TN+FP). The diagnostic 2x2 table animated.

A free, animated sensitivity vs specificity you can read here or embed on any website, from Scrollchart.

Sensitivity vs Specificity

Sensitivity vs SpecificitySensitivity = TP/(TP+FN) | Specificity = TN/(TN+FP) | 200 patients, troponin exampleDisease PresentDisease AbsentTest (+)Test (-)Test result92TPTrue PositiveDisease detected13FPFalse PositiveAlarm without disease8FNFalse NegativeMissed diagnosis87TNTrue NegativeCorrectly clearedSensitivity and specificity are fixed test properties; PPV and NPV shift with disease prevalence.

A 2x2 confusion matrix with Disease Present/Absent columns and Test Positive/Negative rows. TP=92, FP=13, FN=8, TN=87 cells appear in staggered sequence using a troponin-for-AMI teaching example. Sensitivity (92%) and specificity (87%) are annotated as braces beside the relevant rows. A right panel shows all four metrics with the clinical rule: minimize FN for cancer screening, minimize FP for high-risk interventions.

Good for

  • Diagnostic-test explainer pages for medical students learning sensitivity and specificity for the first time
  • Cancer-screening articles explaining why high sensitivity is prioritized over specificity in population programs
  • COVID-test and rapid antigen accuracy posts comparing lateral flow versus PCR performance characteristics

Source & accuracy

This sensitivity vs specificity is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

The diagnostic two by two table

Every test result falls into one of four cells: true positive, false positive, false negative, or true negative. Sensitivity is true positives divided by all who actually have the disease, that is TP over (TP plus FN). Specificity is true negatives divided by all who are actually disease free, TN over (TN plus FP). One reads down the diseased column, the other down the healthy column.

Because they condition on true disease status, sensitivity and specificity stay stable across populations with different prevalence, unlike predictive values.

Using the two metrics to rule in or rule out

A common mnemonic is that a highly sensitive test, when negative, helps rule a condition out, while a highly specific test, when positive, helps rule it in. Few tests excel at both, which is why sensitivity and specificity are reported as a pair rather than a single accuracy figure.

This is general educational information, not medical advice. How a result should change management depends on the clinical setting and is a matter for a qualified clinician.

Embed this diagram

Add this animated sensitivity vs specificity to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated sensitivity vs specificity for any website.
Who uses it
Medical educators, Health journalists, Patient-info sites, Data journalists.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="sensitivity-specificity-clinical" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Sensitivity vs Specificity" for my website?
Scrollchart provides "Sensitivity vs Specificity" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a sensitivity vs specificity diagram in a health or wellness blog?
Copy the HTML snippet from the Scrollchart diagram page and paste it into any post or page in your CMS. It works in WordPress, Webflow, Ghost, Substack, and plain HTML without any plugin or account. The diagram renders as animated SVG directly in your page, so search engines can index the accompanying explainer text.