# Pass@K

- **Canonical URL:** https://getaimath.com/dictionary/pass-k/
- **Topics:** [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is Pass@K?

**In one sentence:** Pass@K measures the chance that at least one of K attempts by a model solves a problem correctly, often used for coding.

The model generates K answers, and if any one passes the tests, the problem counts as solved. Pass@1 means it must get it right on the first try.

![Measuring AI Quality: The Smoke Detector Trade-Off — Simple cartoon comparing Precision and Recall using a kitchen smoke detector: Low Precision screams at burnt toast (False Alarms), Low Recall sleeps through a real fire (Missed Cases), and Good Evals test both on real-world examples.](https://getaimath.com/diagrams/ai-evaluation-and-performance-metrics.png)
*Napkin Diagram (AI Evaluation & Performance Metrics): Precision means "no false alarms when it speaks up"; Recall means "don’t miss the real problem when it happens."*

### Quick Math / Rule of Thumb

Pass@1 measures getting the solution right on the very first try; Pass@10 checks whether at least 1 out of 10 sampled attempts passes unit tests.

## What is an example of Pass@K?

A model with 80% pass@1 solves 80% of coding problems on the first attempt.

## Why does Pass@K matter?

It shows how useful a model is when you can try several times.

## Related Concepts

- [Exact Match](https://getaimath.com/dictionary/exact-match/): Exact match is a simple metric that counts an answer as correct only if it matches the expected answer exactly.
- [MMLU](https://getaimath.com/dictionary/mmlu/): MMLU, or Massive Multitask Language Understanding, is a benchmark with about 16,000 multiple-choice questions across 57 subjects.
- [ROUGE](https://getaimath.com/dictionary/rouge/): ROUGE is a set of scores that measure how much a generated summary overlaps with reference summaries.
- [HumanEval](https://getaimath.com/dictionary/humaneval/): HumanEval is a coding benchmark of 164 programming problems where models must write Python functions that pass tests.
- [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.
- [SWE-bench](https://getaimath.com/dictionary/swe-bench/): SWE-bench is a benchmark that tests whether AI can fix real bugs in real open-source software projects.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/pass-k/)
