pass@k vs success rate: how to read AI coding benchmark numbers
31 Oct 2026 · Rate AI Agent
Two benchmark tables can both say “70%” and mean very different things. The difference is usually how many attempts the system got, and whether one success out of several counts. For coding agents that difference is large, because agents are not deterministic: the same agent on the same task can pass once and fail the next time.
pass@k: did any attempt succeed?
pass@k comes from the 2021 paper that introduced the HumanEval benchmark. Generate k solutions per problem; the problem counts as solved if at least one of them passes the tests. pass@1 is one attempt. pass@10 gives ten chances.
pass@k always goes up as k grows. That makes it a good measure of what a model can do, and a flattering one for what it will do. In practice you don't get ten tries with a hidden oracle telling you which one is right: you get the change the agent hands you.
pass^k: did every attempt succeed?
A newer measure, written pass^k, flips the question: run k attempts and count the task only if all of them pass. It goes down as k grows, and it measures reliability. An agent with a high pass@k and a low pass^k is capable but erratic.
Success rate: the average over attempts
The plainest measure is the share of all attempts that pass. Run every task three times, count passes, divide by attempts. It sits between the other two and answers the question most teams care about: “if I give this agent a task like these, how often will it come back done?”
That is what our success score reports, with one strict rule: only fully passed attempts count. An attempt that passes six of eight hidden tests is a failure in the score. We show that partial progress separately, because it is useful to know an agent got close, but it is never blended in.
A worked example
Imagine one task, run three times, with results pass, fail, pass:
- pass@3 counts it as solved (at least one pass).
- pass^3 counts it as unsolved (not all passed).
- Success rate counts two out of three attempts, about 67%.
Same runs, three different headlines. None is wrong; they answer different questions.
What to look for in any benchmark table
- How many attempts per task, and how are they combined?
- Does partial credit count towards the score?
- Is there a measure of consistency between attempts?
- Are cost and time reported next to accuracy?
- Which benchmark version? For example, SWE-bench and SWE-bench Verified scores are not comparable (see SWE-bench explained).
On Rate AI Agent each result shows the success score, tasks passed, repeatability across attempts, cost per successful task and median time, along with the exact conditions. The definitions are on the methodology page.