Productive Toolbox

F1 Score Calculator

Calculate F1 score instantly using confusion matrix or precision and recall values. Free online F1 score calculator for AI, machine learning, classification, and data science.

🧮

F1 Score Calculator

Calculate F1 score from confusion matrix values (TP, FP, FN) or directly from precision and recall. Instant results with step-by-step formulas. We do not collect or store what you enter.

Confusion Matrix

Correct positive

Missed positive

Wrong positive

Correct negative

Total: 1,000TN not needed for F1

Visual Matrix

80
TP
8.0%
10
FN
1.0%
20
FP
2.0%
890
TN
89.0%

Ctrl+Enter to recalculate

Example Scenarios

F1 Score Result

84.21%
0.8421 · Good
80.00%
Precision
88.89%
Recall
✅ Good F1 Score

Good performance. The model balances precision and recall well for most production use cases.

All Metrics

F1 Score84.21%
Precision80.00%
Recall88.89%
Accuracy97.00%
Specificity97.80%

Extended Metrics

Accuracy97.00%
Specificity97.80%
NPV98.89%
MCC0.8270

Frequently Asked Questions

What is a good F1 score?

It depends on the problem. For most production ML systems, an F1 score ≥ 0.85 is considered good. For safety-critical domains (medical diagnosis, fraud detection), you may target ≥ 0.90 or higher. For research baselines, 0.75+ is often acceptable.

Can F1 score be calculated without a confusion matrix?

Yes. If you already know your model's precision and recall values, you can calculate F1 directly: F1 = 2 × (Precision × Recall) ÷ (Precision + Recall). Use the Precision & Recall mode in this calculator.

What is macro vs micro F1 score?

For multi-class problems, micro F1 aggregates TP/FP/FN across all classes before computing the metric. Macro F1 computes F1 per class then averages them. Macro F1 gives equal weight to all classes; micro F1 is influenced by larger classes.

When should I use F1 score over precision or recall alone?

Use F1 when both false positives and false negatives carry meaningful cost. If one type of error is much more costly than the other, optimise directly for precision (if FP is costly) or recall (if FN is costly) instead.

What is the F-beta score?

F-beta is a generalisation of F1 where you can weight precision or recall more heavily. F1 uses β=1 (equal weight). F0.5 weights precision twice as much; F2 weights recall twice as much. This calculator computes the standard F1 (β=1).