Learn AI Math

Pass@K

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.

Σ 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 does Pass@K look like?

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.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.