Skip to content

Confusion Matrix Calculator

Statistics
0.0(0)

Evaluates the performance of a classification model using metrics derived from a confusion matrix, including accuracy, precision, recall, and specificity.

How To Use

How to use this calculator

Start with your values, or try a preset.

Step 1

Enter True Positives (TP), False Positives (FP), True Negatives (TN), and False Negatives (FN) in the units shown.

Step 2

Read Specificity, Recall (Sensitivity), Precision, Accuracy, and F1 Score in the results panel. Results update as you change the inputs.

Step 3

Choose a preset to load an example, then adjust the values for your situation.

Worked Examples

Example calculations

See the inputs and their calculated results.

Good Performance

True Positives (TP): 90 count; False Positives (FP): 10 count; True Negatives (TN): 85 count; False Negatives (FN): 5 count

Specificity: 0.8947368421 percentage; Recall (Sensitivity): 0.9473684211 percentage; Precision: 0.9 percentage; Accuracy: 0.9210526316 percentage; F1 Score: 0.9230769231 percentage

Moderate Performance

True Positives (TP): 60 count; False Positives (FP): 20 count; True Negatives (TN): 50 count; False Negatives (FN): 10 count

Specificity: 0.7142857143 percentage; Recall (Sensitivity): 0.8571428571 percentage; Precision: 0.75 percentage; Accuracy: 0.7857142857 percentage; F1 Score: 0.8 percentage

High False Positives

True Positives (TP): 70 count; False Positives (FP): 30 count; True Negatives (TN): 40 count; False Negatives (FN): 10 count

Specificity: 0.5714285714 percentage; Recall (Sensitivity): 0.875 percentage; Precision: 0.7 percentage; Accuracy: 0.7333333333 percentage; F1 Score: 0.7777777778 percentage

Explore the topic

Explore More Math & Statistics Calculators

Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.

Explore tools
People Also Calculate

Related Calculators

Continue with another tool on a related topic.