ROC AUC Explainer
Enter TP, FP, TN, and FN to instantly plot the ROC curve, compute the AUC score, and understand model discrimination power.
Confusion Matrix Inputs
Enter the four counts from your classifier at one threshold.
Actual +, predicted +
Actual −, predicted +
Actual +, predicted −
Actual −, predicted −
Quick Examples
TPR / Recall
—
TP / (TP + FN)
FPR
—
FP / (FP + TN)
AUC Score
—
Interpretation
—
0.5 (random)
1.0 (perfect)
Enter confusion matrix values and click Plot ROC Curve.
ROC Curve
The diagonal dashed line represents a random classifier (AUC = 0.5). Your operating point is marked in red.
Copied!
Summary
Enter TP, FP, TN, and FN to instantly plot the ROC curve, compute the AUC score, and understand model discrimination power.
How it works
- Enter the four confusion matrix counts: TP (true positives), FP (false positives), FN (false negatives), and TN (true negatives).
- The tool derives the true positive rate (TPR = recall) and false positive rate (FPR) from your inputs.
- A three-point ROC curve is plotted — origin (0,0), your operating point (FPR, TPR), and (1,1) — representing the full threshold sweep.
- The AUC is estimated using the trapezoidal rule over those three points.
- Metric cards show TPR, FPR, AUC, and a plain-English interpretation of your model's discrimination ability.
Use cases
- Quickly estimate AUC from a single reported confusion matrix without writing code.
- Visualize where a binary classifier sits on the ROC space.
- Compare multiple model checkpoints at a glance by changing the TP/FP/FN/TN counts.
- Understand the trade-off between sensitivity and false positive rate for medical tests.
- Explain ROC curves and AUC to stakeholders using the interactive chart.
- Verify AUC estimates from research papers or model evaluation reports.
- Identify whether a classifier performs better or worse than random chance (AUC = 0.5).
- Explore how changing a threshold (adjusting TP/FP/FN/TN) shifts the operating point.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu