%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

F-beta Score Calculator

Results update as you type.

Your numbers

Understanding the F-beta score calculator — concept and principle

The F-beta score combines precision and recall into one number while letting you decide how much more one matters than the other. It is used to compare classifiers, search systems and detection models when false negatives and false positives have different costs: β = 2 for tasks where missing a case is worse, β = 0.5 where false alarms are worse, and β = 1 for the ordinary F1 score.

F2 score weighs recall four timesWith precision 80 and recall 60, β = 2 puts weight 4 on recall, so F2 = 63.16 lands nearer recall than the plain F1 of 68.6.β = 2: recall counts 4× as much1Precision 80Recall 605060708090F1 68.6F₂ 63.2(1+4) × 80 × 60 ÷ (4×80 + 60)= 24,000 ÷ 380 = F₂ 63.16
β = 2 tips the balance toward recall: F₂ = 63.16, below F1 = 68.6.

How it is calculated

F_β = (1 + β²) × P × R ÷ (β² × P + R)

The principle

F_β is a weighted harmonic mean of precision and recall. A harmonic mean is dominated by the smaller value, so a model cannot score well by being excellent at one and poor at the other. C. J. van Rijsbergen derived the measure from an effectiveness function for information retrieval, choosing the weighting so that a user who attaches β times as much importance to recall as to precision gets the right trade-off. In practice, raising β pulls the score toward recall; lowering it pulls the score toward precision.

Worked example

  1. Inputs: P = 80, R = 60, β = 2, so β² = 4.
  2. Numerator: (1 + 4) × 80 × 60 = 24,000.
  3. Denominator: 4 × 80 + 60 = 380.
  4. F₂ = 24,000 ÷ 380 = 63.16.

For comparison, the same model has F1 = 68.57 and F0.5 = 75. Because β = 2 favours recall, and recall (60) is the weaker value, F₂ falls closer to 60.

How F-beta changes with Recall (%)How F-beta changes with Recall020406080100120153045607590120Example: 63.15789474Recall (%)
Each point is the calculator re-run with only “Recall (%)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Recall (%)F-beta
1517.91044776
3034.28571429
4549.31506849
6063.15789474
7575.94936709
9087.80487805
120109.0909091

How to read the result

F_β always lies between the smaller and the larger of P and R (inclusive). If changing β moves the score a lot, precision and recall are far apart, and you should look at both directly. Only compare F_β values computed with the same β, the same positive class and the same test set.

Common mistakes

Keep in mind: F_β ignores true negatives, so it says nothing about how well the model handles the negative class. Check specificity or MCC as well when both classes matter.

Frequently asked questions

Does β = 2 mean recall counts twice as much?

In van Rijsbergen's definition, β is the ratio of importance the user places on recall versus precision; the formula then squares it.

When should I use F0.5?

When false positives are expensive, for example flagging legitimate transactions as fraud or showing irrelevant search results.

Can I average F-beta across classes?

Yes, either macro-averaged (mean of per-class scores) or micro-averaged (from pooled counts); say which one you used.

Sources: C. J. van Rijsbergen, Information Retrieval, 2nd ed., Butterworths, 1979 · C. D. Manning, P. Raghavan and H. Schütze, Introduction to Information Retrieval, Cambridge University Press, 2008

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →