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

  1. Enter the number of True Positives — correctly predicted positive cases.
  2. Enter the number of False Positives — negative cases incorrectly predicted as positive.
  3. Enter the number of False Negatives — positive cases incorrectly predicted as negative.
  4. Precision, recall, and F1 score are computed and displayed instantly.
  5. A confusion-matrix summary card shows all four quadrants for quick reference.
  6. Copy any metric value to clipboard with the copy button.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-23 · Reviewed by Nham Vu