Confusion Matrix Calculator
Compute accuracy, precision, recall and F1 from a confusion matrix.
Compare Your Options And Get Clear Answers
Compute accuracy, precision, recall and F1 from a confusion matrix.
Confusion Matrix Estimator
Enter your numbers below for an instant estimate.
How It Works
Key concepts behind this calculator
Enter Values
Fill in each field with your own numbers.
Calculate
Results update as you change the inputs.
Review
Read the breakdown and the explanation.
Adjust
Change values to compare scenarios.
Confusion Quick Guide
Typical values for reference.
| TP | FP | FN | Accuracy |
|---|---|---|---|
| 50 | 10 | 5 | 90.9% |
| 80 | 20 | 20 | 80.0% |
| 10 | 5 | 15 | 98.0% |
| 90 | 2 | 10 | 94.0% |
| Rule of Thumb | Check inputs | Use as a guide | Round sensibly |
Confusion Matrix Calculator FAQ
Answers to common questions about this calculator.
A table of true and false positives and negatives for a classifier.
The harmonic mean of precision and recall.
When one class is much rarer than the other.
The share of actual negatives correctly identified.
