Search tools...
Developer

ConfusionMatrixCalculator

Calculate accuracy, precision, recall, F1 score, specificity, MCC and other key metrics from your confusion matrix data.

Confusion Matrix Calculator

Actual vs Predicted Values

Total Samples

200

Accuracy

87.5%

(TP + TN) / Total

Precision

85%

TP / (TP + FP)

Recall

89.47%

TP / (TP + FN)

F1 Score

87.18%

2 × (P × R) / (P + R)

Specificity

85.71%

TN / (TN + FP)

MCC

75.09%

Matthews Corr. Coef.

Additional Metrics

FPR (Type I Error)

14.29%

FNR (Type II Error)

10.53%

PPV

85%

NPV

90%

Prevalence

47.5%

About This Tool

This confusion matrix calculator helps data scientists and machine learning engineers quickly evaluate classification model performance. Enter your true positives, false positives, false negatives, and true negatives to get accuracy, precision, recall, F1 score, specificity, Matthews Correlation Coefficient, and more.