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
Visual Matrix
Ctrl+Enter to recalculate
Example Scenarios
F1 Score Result
Good performance. The model balances precision and recall well for most production use cases.
All Metrics
Extended Metrics
Related tools
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).
Related Tools
Model Accuracy Calculator
Compute accuracy from predictions.
Precision Recall Calculator
Calculate precision and recall metrics.
Confusion Matrix Calculator
Generate confusion matrix metrics.
Dataset Split Calculator
Split datasets into train, validation, and test sets for machine learning.
AI Token Cost Calculator
Estimate cost per token usage.
AI Prompt Length Calculator
Calculate token length.
Time Complexity Calculator
Estimate Big-O complexity growth.
Latency Calculator
Estimate network latency.
Cloud Cost Calculator
Estimate cloud usage cost.
Subnet Calculator
Calculate subnet mask, network, and hosts.
IP Range Calculator
Determine IP address range.
CIDR Calculator
Calculate CIDR notation details.