Canonical: https://toolipedia.app/roc-curve-and-auc-calculator

# ROC Curve and AUC Calculator

Builds the ROC curve and the area under it from scores and true labels, lists the best threshold by Youden's J, and draws the curve as a PNG or SVG picture.

Breadcrumbs: Toolipedia > Online calculators > Maths and school calculators > ROC Curve and AUC Calculator

## About ROC Curve and AUC Calculator

A ROC curve shows how a classifier trades true positives against false positives as the decision threshold moves. Paste one case per line with its score and its true label (1 or 0). The tool sorts the scores, steps the threshold through every distinct value, draws the curve and integrates the area under it with the trapezoid rule. For scores 0.1, 0.4, 0.35, 0.8 and labels 0, 0, 1, 1 the AUC is 0.75. It also marks the threshold that maximises Youden's J and gives the Hanley-McNeil standard error and an approximate interval.

## How to use ROC Curve and AUC Calculator
1. Paste one case per line as score, label, using 1 for positive and 0 for negative.
2. Check the curve and the AUC, and read the best threshold with its sensitivity and specificity.
3. Download the picture as PNG or SVG, or copy the curve points as CSV.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- roc curve and auc calculator
- roc curve maker
- auc calculator
- best threshold youden
- roc curve from scores
- area under the curve calculator

## Frequently asked questions

### What does an AUC of 0.5 mean?

The scores carry no information: a random positive scores above a random negative only half the time. The curve follows the diagonal. An AUC of 1 means perfect separation, and values below 0.5 mean the scores point the wrong way.

### How is the best threshold chosen?

It is the cut-off where sensitivity plus specificity minus 1, Youden's J, is largest. If a missed positive costs more than a false alarm, you may prefer a lower threshold than the one shown.

### How are tied scores handled?

Cases with the same score move together, which draws a diagonal segment and counts ties as half in the AUC, the standard treatment.

### Is ROC Curve and AUC Calculator free?

Yes. ROC Curve and AUC Calculator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with ROC Curve and AUC Calculator:
- [Curve Fitting Calculator](https://toolipedia.app/curve-fitting-calculator)
- [Z-score and p-value calculator](https://toolipedia.app/z-score-calculator)
- [Applications of Integrals](https://toolipedia.app/applications-of-integrals)
- [Venn diagram maker](https://toolipedia.app/venn-diagram-maker)
- [Bezier curve length calculator with equally spaced points](https://toolipedia.app/bezier-curve-length-calculator)
