Confusion Matrix Calculator
Calculate precision, recall, F1-score, and other metrics from your confusion matrix
Confusion Matrix Input
Enter the values from your confusion matrix
Predicted
Actual
Positive
Negative
Positive
Negative
Calculated Metrics
Performance metrics based on your confusion matrix
0%
Accuracy
0%
Precision
0%
Recall
0%
F1-Score
0%
Specificity
Metric Formulas
Understanding how each metric is calculated
Accuracy: (TP + TN) / (TP + TN + FP + FN)
Precision: TP / (TP + FP)
Recall (Sensitivity): TP / (TP + FN)
F1-Score: 2 × (Precision × Recall) / (Precision + Recall)
Specificity: TN / (TN + FP)