Free math and education calculator

Confusion Matrix Calculator

Calculate accuracy, precision, recall, and specificity from classification counts.

Open the interactive confusion matrix calculator

Free tools and planners

Formula

Accuracy = (TP + TN) ÷ total; precision = TP ÷ (TP + FP); recall = TP ÷ (TP + FN); specificity = TN ÷ (TN + FP).

Worked example

For example, TP 80, TN 90, FP 10, and FN 20 yield 85% accuracy, 88.89% precision, and 80% recall.

Assumptions and limitations

Uses the stated assumptions and conventional formula shown. Results are estimates, not professional, legal, financial, or statistical advice.

Keep moving with a practical next step

Browse free calculators, planners, and templates, or explore the blog and business directory. No subscription is required.