When to use this calculator
Combine precision and recall into a harmonic binary classification score. True negatives are not used and the score is undefined if all included counts are zero.
Explore the descriptive statistics calculators for other questions in this topic. For a related calculation, use the Weighted Mean Calculator: Combine three values using non-negative weights.
Understand the classification f1 score result
Combine precision and recall into a harmonic binary classification score. For the example inputs Integer true positives = 40, Integer false positives = 10, Integer false negatives = 10, the result is 0.8 fraction. True negatives are not used and the score is undefined if all included counts are zero.
PUTTING IT INTO PRACTICE
Classification F1 Score: a worked example
The values below are an illustrative example, not a recommendation. Replace them with measurements or assumptions that match your question.
| Input | Example value |
|---|---|
| Integer true positives | 40 |
| Integer false positives | 10 |
| Integer false negatives | 10 |
| Result | 0.8 fraction |
- Check the input labels and enter the example values above.
- Apply the relationship: F1 = 2TP/(2TP+FP+FN).
- The result is 0.8 fraction, rounded for display.
How to interpret your result
True negatives are not used and the score is undefined if all included counts are zero. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
The result is expressed in fraction. True negatives are not used and the score is undefined if all included counts are zero.
Frequently asked questions
Which assumptions matter for classification f1 score?
True negatives are not used and the score is undefined if all included counts are zero. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
When is the classification f1 score calculator useful?
Combine precision and recall into a harmonic binary classification score. True negatives are not used and the score is undefined if all included counts are zero.
How do I use the classification f1 score calculator?
Enter integer true positives, integer false positives, integer false negatives. The result updates automatically. Use the units shown beside each input; the example values illustrate the method.
Which formula does this calculator use?
F1 = 2TP/(2TP+FP+FN).
What should I check before using the result?
True negatives are not used and the score is undefined if all included counts are zero. Counts must come from the same binary classification evaluation set. Positive and negative labels must be defined consistently.
How are results rounded?
Scalar numbers display up to six decimal places, with scientific notation for very large or small values. Text, fraction, date and schedule outputs use the format described on the tool. Intermediate calculations use JavaScript floating-point arithmetic. Keep sensible precision for your measurements.
Further reading
For background on this topic, see Scikit-learn: classification evaluation metrics ↗. This is a topic reference, not an external review or endorsement of this tool.
Calculators Map editorial process · Updated · Methods and limitations