AI Accuracy Calculator

Calculate precision, recall, and F1 score for your machine learning models effortlessly.

Enter Confusion Matrix Values

Correctly predicted positive cases

Incorrectly predicted as positive

Correctly predicted negative cases

Incorrectly predicted as negative

🎯

Accuracy

0%

📊

Precision

0%

📈

Recall

0%

🧮

F1 Score

0%

 

Understanding the Metrics

Accuracy

The ratio of correct predictions to total predictions. Formula: (TP + TN) / (TP + FP + TN + FN)

Precision

How many of the positive predictions were actually correct. Formula: TP / (TP + FP)

Recall (Sensitivity)

How many actual positive cases were correctly identified. Formula: TP / (TP + FN)

F1 Score

Harmonic mean of precision and recall, providing a single score. Formula: 2 × (Precision × Recall) / (Precision + Recall)

How to Use This Calculator

Gather Your Data

From your confusion matrix, identify the four values: True Positives, False Positives, True Negatives, and False Negatives.

Input the Values

Enter each value in the corresponding field. Make sure all values are non-negative numbers.

Calculate & Analyze

Click "Calculate Metrics" to see all four performance metrics instantly displayed.

Common Use Cases:

  • Evaluating classification model performance
  • Comparing different ML algorithms
  • Medical diagnosis systems evaluation
  • Fraud detection systems assessment
  • Quality control and testing validation