Formula: F-Beta (F₀.₅ / F₁ / F₂) Score Formula
- precisionPct: Precision Pct (%)
- recallSensitivityPct: Recall Sensitivity Pct (%)
- betaWeightFactor: Beta Weight Factor (β)
Compute F_β, F₀.₅, F₁, and F₂ from Precision, Recall, and weight parameter β.
Because your recall is lower than your precision. F₂ leans toward recall, so when recall is the weaker number, F₂ comes out below F₁. On the default inputs, recall is 76% and precision 84%, giving F₂ of 77.476% against F₁ of 79.8%. If recall were the stronger number, the order would reverse. Equal precision and recall make all three variants identical.
Enter 84. The inputs are percentages. Typing 0.84 is read as 0.84 percent, which produces a misleadingly tiny score. If your tooling reports precision and recall as fractions between 0 and 1, multiply them by a hundred before you type them in.
Yes. The β box accepts any value above zero, and the headline relabels itself to F with that β. On the default inputs, β = 3 gives 76.731%. The three supporting lines stay fixed at β = 1, 0.5 and 2 so you always have the common variants for comparison.
No. Accuracy counts true negatives as well as true positives, while F₁ is built only from precision and recall and ignores true negatives entirely. On a dataset where positives are rare, accuracy can be high while F₁ is poor, which is why F-scores are popular for imbalanced problems. Report both if your audience expects accuracy.
Precision is true positives divided by true positives plus false positives. Recall is true positives divided by true positives plus false negatives. Convert both to percentages and enter them here. Make sure they come from the same threshold and the same test set, or the resulting F-score describes no real model. The F-score itself never looks at true negatives.
The calculator shows an error rather than a score. When either input is 0, every F-score is 0 by definition, because the harmonic mean collapses to zero. Enter a value above 0% if you want to see how a very weak model scores, or simply record the F-score as zero.
F₁ is by far the most common because it is symmetric and needs no justification of a weighting. F₂ and F₀.₅ appear when a task description states that one kind of error matters more. If you are submitting to a benchmark, use whichever β its rules specify rather than choosing your own.
It shows how the harmonic mean reacts to one weak input. Precision drops to 50% while recall stays at 76%. F₁ falls to 60.318%, F₀.₅ to 53.672%, and F₂ only to 68.841%. The recall-weighted score forgives the precision loss far more than the other two.
No. Any weighted harmonic mean lies between its two inputs. If your result is above both numbers or below both, an input was entered wrongly. With the defaults, every score shown sits between 76% and 84%, which is a quick check that the inputs were typed as intended. The same holds for any β you type.
It scores whatever single precision and recall pair you give it. For multi-class work, first compute per-class values and average them by macro, micro or weighted averaging, then enter the averaged pair. The averaging method can change the result noticeably, so state which one you used alongside the score.
The extra precision helps when you are comparing thresholds or checking the formula by hand, as with 77.476% on the default inputs. For reporting, two significant decimals are usually enough, and differences in the third decimal are almost never meaningful on a realistic test set. Rounding before comparing models also avoids over-reading noise.
Not automatically. A very high β makes the score almost identical to recall, so it stops rewarding precision at all. A model that flags everything then scores well. Pick a β that reflects a real ratio of costs, and look at precision directly to make sure the false alarm rate is still something people can handle.
The default describes a classifier with 84% precision and 76% recall, scored with β set to 2. The headline is F_2 = 77.476%. Below it the tool always lists the three standard variants, so you also see F₁ at 79.8% and F₀.₅ at 82.268%.
You can check the headline by hand. Write precision and recall as fractions, P = 0.84 and R = 0.76. With β = 2, β² is 4. The numerator is (1 + 4) × 0.84 × 0.76, which is 5 × 0.6384 = 3.192. The denominator is 4 × 0.84 + 0.76, which is 3.36 + 0.76 = 4.12. Divide and you get 0.77476, the 77.476% at the top.
F₁ uses β = 1, so it becomes 2PR / (P + R): 1.2768 divided by 1.6, which is exactly 0.798. F₀.₅ uses β² = 0.25: 1.25 × 0.6384 divided by 0.25 × 0.84 + 0.76 gives 0.798 over 0.97, or 0.82268. All three match the supporting lines.
The ordering tells the story. Precision is the stronger of the two numbers here, so the score that leans on precision is highest and the one that leans on recall is lowest. F₁ sits between them.
If you are reporting to people who have not met F-scores before, the hand calculation is worth showing once. It makes clear that nothing mysterious happens: two rates go in, a weighting is applied, and one number comes out that is always pulled toward the weaker of the two rates.
The formula F_β = (1 + β²)PR / (β²P + R) is a weighted harmonic mean of precision and recall. The β² in the denominator is the part that sets the weighting. A larger β² multiplies precision there, which makes the score more sensitive to recall and less to precision.
The usual reading, due to van Rijsbergen, is that β says how many times more you care about recall than precision. β = 2 treats recall as twice as important. β = 0.5 treats precision as twice as important. β = 1 is the balanced F₁.
Because β enters squared, the weighting moves quickly. β = 2 gives a factor of 4 in the denominator, not 2. Push β to 3 on the default inputs and the headline falls to 76.731%, closer still to the 76% recall. As β grows the score slides toward recall, and as β shrinks toward zero it slides toward precision. With β set as low as 0.1, the default inputs return 83.913%, almost the full 84% precision.
That limit behaviour is a decent sanity check. Any F_β you compute must lie between the lower and the higher of your two inputs, and the larger β is, the closer it sits to recall.
A short way to remember it: β is the ratio of importance, β² is the ratio that appears in the arithmetic. People who set β = 4 thinking they asked for four times the weight on recall have actually asked for sixteen times in the denominator, which pushes the score very close to recall alone.
A neat property shows up if you enter the default numbers the other way round, with 76% precision and 84% recall. F₁ stays at 79.8%, because it treats both inputs symmetrically. But F₀.₅ and F₂ trade places: F₂ becomes 82.268% and F₀.₅ becomes 77.476%.
This is not a coincidence. Swapping P and R and replacing β with 1/β leaves the formula unchanged, so F_0.5 on one model equals F_2 on the mirrored model. It is a useful reminder that the variant you pick encodes a view about which error is worse.
In practice that means you should decide on β before you look at the results. If you compute all three and report whichever flatters your model, you have quietly chosen the weighting after the fact.
Precision falls when the model raises false alarms. Recall falls when it misses real positives. The question to ask is which of those hurts more in your setting, and roughly by how much.
Screening tasks usually favour recall. If a missed case is expensive and a false alarm only means a second look by a person, a recall-weighted score such as F₂ fits. Tasks where every positive triggers a costly action, such as blocking a payment or sending a message to a customer, often favour precision, which points toward F₀.₅.
When you genuinely cannot say, F₁ is the default people expect to see. Just be clear that balance is also a choice, not the absence of one.
β does not need to be 0.5, 1 or 2. The input accepts any value, so a team that thinks recall matters three times as much can enter 3 directly and report F_3. The headline label changes to match the β you typed.
Some teams find it easier to start from counts. If a missed positive costs about as much as two false alarms, a recall weighting near 2 is a reasonable reading. If the costs are roughly equal, stay with F₁. The calculator will not pick β for you, but it makes it quick to see how sensitive your conclusion is to the choice.
F-scores are harmonic means rather than ordinary averages, and the difference is large when one input is poor. The preset that drops precision to 50% while recall stays at 76% shows it. F₁ falls to 60.318%, below the plain average of 63%, and F₀.₅ drops to 53.672%, close to the weak precision figure.
F₂ in that same case is 68.841%, because it leans toward the 76% recall. Under a recall weighting, a big loss of precision costs less. That is exactly the trade it is designed to make.
Go further and the effect becomes stark. At 20% precision and 95% recall, F₁ is 33.044% and F₀.₅ is 23.75%, while F₂ still reads 54.286%. A model that flags almost everything can look acceptable under F₂ and poor under F₁, which is a good reason to show precision and recall next to any F-score.
The calculator takes precision and recall as percentages, so enter 84 rather than 0.84. If you type 0.84 and 0.76, the tool reads them as less than one percent each and returns an F₂ of 0.775%, which looks like a broken model rather than a typing slip.
Both numbers should come from the same confusion matrix at the same threshold. Precision is true positives divided by everything predicted positive. Recall is true positives divided by everything actually positive. Pairing the precision of one threshold with the recall of another produces a figure that no single model ever achieved.
For multi-class problems you also need to decide how to average before you get here. Macro, micro and weighted averaging give different precision and recall values, and this tool simply scores the pair you give it. Say which averaging you used when you report the result.
Finally, remember that recall in this context is the same quantity medical writers call sensitivity, which is why the input is labelled recall sensitivity. Specificity, the share of true negatives found, plays no part in any F-score.
Precision and recall must be above 0% and no more than 100%, and β must be above zero. Anything outside those limits produces an error message instead of a score, so a typo such as an extra digit in the precision box is caught rather than quietly changed.
The zero case is excluded for a reason. If either precision or recall is 0, every F-score is 0, because a harmonic mean with a zero input is zero. There is nothing to calculate, and the error message says exactly that. Very small values are still accepted, so a model with almost no precision gets a correspondingly tiny score.
Neither issue matters for real model outputs, which sit comfortably inside the range. The preset with 100% precision and 76% recall is a legitimate case: F₁ is 86.364%, F₀.₅ is 94.059% and F₂ is 79.832%. Perfect precision does not rescue the recall-weighted score.
Most classifiers produce a probability, and precision and recall both change as you move the decision threshold. A common use of this calculator is to score a handful of candidate thresholds and pick the one with the best F_β under the β you agreed in advance.
Run each threshold's precision and recall through the tool and note the headline. The best threshold for F₂ will usually be lower than the best for F₁, because lowering the threshold trades precision for recall and F₂ rewards that trade.
When comparing two models, use the same β, the same test set and the same averaging. A gap of a fraction of a percent on a small test set may not be meaningful, so look at the confusion matrices too before declaring a winner.
It also helps to keep a small table of the runs. Write down the threshold, the precision, the recall and the three F-scores the tool shows for each. Seeing F₀.₅, F₁ and F₂ peak at different thresholds is often the clearest way to explain to colleagues why the chosen β matters.