# F1 Score

- **Canonical URL:** https://getaimath.com/dictionary/f1-score/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/), [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is F1 Score?

**In one sentence:** The F1 score combines precision and recall into one number, rewarding models that are good at both.

It is a special kind of average that drops a lot if either precision or recall is low. A model with great precision but terrible recall gets a poor F1 score. That makes it a fair single number for comparing models, especially when the data is unbalanced.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

### Quick Math / Rule of Thumb

F1 = 2 × (Precision × Recall) ÷ (Precision + Recall) — the harmonic mean, so if either Precision or Recall drops near 0, F1 drops near 0 too.

## What is an example of F1 Score?

A model with 90% precision and 10% recall has an F1 score of only 18%, which exposes its weakness.

## Why does F1 Score matter?

F1 stops people from hiding a bad weakness behind one good-looking number.

## Related Concepts

- [Recall](https://getaimath.com/dictionary/recall/): Recall tells you, of all the real "yes" cases, how many the model managed to find.
- [Benchmark](https://getaimath.com/dictionary/benchmark/): A benchmark is a standard test used to measure and compare how well different AI models perform.
- [Perplexity](https://getaimath.com/dictionary/perplexity/): Perplexity measures how surprised a language model is by a piece of text; lower perplexity means the model predicted it better.
- [Precision](https://getaimath.com/dictionary/precision/): Precision tells you, of all the times the model said "yes," how often it was actually right.
- [Evaluation](https://getaimath.com/dictionary/evaluation/): Evaluation is the process of testing an AI model to see how well it works, how safe it is, and where it fails.
- [BLEU](https://getaimath.com/dictionary/bleu/): BLEU is a score that measures how closely a machine translation matches human reference translations, by counting shared word sequences.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/f1-score/)
