CalcWorldHub
Free online calculator · no signup

F1 score calculator

Summarize precision and recall with their harmonic mean for a binary classifier.

Worked example
Relevant result
Clear result · useful details
Default calculator result0.8235

Calculator

4,000 tools
F1 score calculator — True positives, False positives, False negatives and calculation method
F1 score calculator: inputs and calculation method.

How to use this calculator

Summarize precision and recall with their harmonic mean for a binary classifier.

  1. Enter True positives, False positives, False negatives. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

F1 score calculator

Summarize precision and recall with their harmonic mean for a binary classifier.

Inputs and units

  • True positives: Positive cases correctly predicted positive in the same labeled evaluation set.
  • False positives: Negative cases incorrectly predicted positive; used in F1 or as the numerator of FPR.
  • False negatives: Positive cases incorrectly predicted negative; used in F1 or as the numerator of FNR.

Formula and method

F1 = 2TP/(2TP+FP+FN)

Worked example

For TP=42, FP=8, FN=10, F1=84/(84+8+10)=0.8235.

Interpreting the result

F1 is between zero and one and balances false positives against false negatives; true negatives do not enter it.

Assumptions and limits

Counts are nonnegative whole numbers and the denominator must be positive. This score does not encode class prevalence or the cost difference between error types.

Sources and method

  • Defines confusion-matrix counts and precision/recall-derived classifier measures; the page formulas are checked directly against those count definitions. scikit-learn: model evaluation

Frequently asked questions

Which inputs determine this result?

The visible inputs are True positives, False positives, False negatives. Each is used by the displayed formula; the calculator does not use any other hidden measurement.

When does this method apply?

Counts are nonnegative whole numbers and the denominator must be positive. This score does not encode class prevalence or the cost difference between error types.

How do I use the F1 score calculator?

Enter True positives, False positives, False negatives. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of F1 score?

For TP=42, FP=8, FN=10, F1=84/(84+8+10)=0.8235.

What does the F1 score calculator calculate?

Summarize precision and recall with their harmonic mean for a binary classifier.

Good calculators show their work.

CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units