F1 Score Calculator
Enter TP, FP, and FN counts to instantly compute precision, recall, and F1 score for your binary classifier.
Confusion Matrix Inputs
Enter counts from your classifier's confusion matrix.
Positive cases correctly predicted as positive.
Negative cases incorrectly predicted as positive.
Positive cases incorrectly predicted as negative.
Precision
—
TP / (TP + FP)
Recall
—
TP / (TP + FN)
F1 Score
—
2 × P × R / (P + R)
F1 Score Gauge
—
0.00
0.50
1.00
Confusion Matrix Summary
Predicted Positive
Predicted Negative
Actual Positive
True Positive
—
Actual Positive
False Negative
—
Actual Negative
False Positive
—
Actual Negative
True Negative
N/A
True Negatives are not required to compute F1.
Copied!
Summary
Enter TP, FP, and FN counts to instantly compute precision, recall, and F1 score for your binary classifier.
How it works
- Enter the number of True Positives — correctly predicted positive cases.
- Enter the number of False Positives — negative cases incorrectly predicted as positive.
- Enter the number of False Negatives — positive cases incorrectly predicted as negative.
- Precision, recall, and F1 score are computed and displayed instantly.
- A confusion-matrix summary card shows all four quadrants for quick reference.
- Copy any metric value to clipboard with the copy button.
Use cases
- Evaluate spam-detection or fraud-detection models where class imbalance is common.
- Compare two classifier configurations using a single F1 metric.
- Check how recall and precision trade off as you adjust a decision threshold.
- Quickly sanity-check model outputs after a training run.
- Teaching or studying the relationship between precision, recall, and F1.
- Debugging classifiers where false negatives are especially costly (e.g., medical diagnosis).
- Reporting model performance in a research paper or project writeup.
- Validating NLP named-entity-recognition or information-retrieval results.
Frequently Asked Questions
Related tools
Last updated: 2026-05-23 ·
Reviewed by Nham Vu