Skip to content
All guides

[ Guide ] · 9 min read

How to Calculate an AI Agent Success Rate

Learn how to calculate an AI agent success rate: the per-step formula, sample sizes, confidence bounds, and reliability metrics like pass^k and worst-of-n.

Key takeaways

  • Success rate = successful tasks / attempted tasks, graded against a written outcome definition, not a vibe check.
  • End-to-end odds decay fast: 99% per step over ten steps gives 90.4%, 98% gives 81.7%, and 90% gives 34.9%.
  • A 90% result on 50 runs only supports a claim of about 79% at 95% confidence.
  • Agents that pass a task once often fail it when repeated, so run each task several times and report pass^k or worst-of-n.
  • Failed runs cost more than successful ones: unresolved attempts consumed more than 4x the tokens and wall time of successes.

To calculate an AI agent success rate, define what a finished task means, grade a random sample of real runs against that definition, and divide successes by attempts. Then check what that number can carry: agents chain many steps, and each step multiplies the odds against you. Ten steps at 95% each sounds like a rounding error away from perfect, yet multiplied out it is 59.9%, which means the agent fails about four tasks in every ten. Inferya builds agentic AI for growing businesses through an assessment, build, evaluation and deploy-and-monitor process, and the arithmetic below is where an honest success-rate claim starts.

How to Calculate an AI Agent Success Rate

The basic success rate formula

The simple version is one division: tasks the agent completed without human rescue, divided by tasks it attempted. That number answers the operator's question, not the buyer's. The buyer's question is whether an entire multi-step job gets done, and the multiplication formula answers that.

Multiply each step's success rate together. If every step succeeds 99% of the time, ten steps give you 90.4%. At 98% per step you are at 81.7%. At 90% per step you land on 34.9%, which is worse than a coin flip with extra steps. Stretch a 95% agent to twenty steps and it finishes just 35.8% of its tasks.

Run the multiplication backwards and the per-step demand gets steep. To reach 95% end to end over ten steps, every step has to succeed about 99.5% of the time. Very few agents doing open-ended tool calls reach that without help, which is why verification steps, retries and human handoffs matter so much in real deployments.

The formula also has limits worth knowing. It assumes each step fails independently and nothing catches an error once it happens. Real agents break both assumptions: a bad retrieval at step two poisons steps three through nine, so failures cluster instead of spreading evenly, while a verification step can claw some of the loss back. Use the formula to see what is coming, then measure the actual number from actual runs.

What counts as a success: define the outcome first

Before you count anything, define success as an outcome and write the definition down before you look at results. A checkable definition looks like "refund issued for the right amount against the right order, ticket closed, no human edit." "The reply looked fine" cannot be checked, and post-hoc oracle design introduces confirmation bias.

Compute success per task type, not across the whole agent. A short account lookup and a multi-system refund should not share one number, and a customer who only buys the lookup should not be quoted the refund's figure. If a human handoff happens, count it as its own outcome rather than folding it into success or failure. This is the distinction that stops a single flattering accuracy figure, often a step-level or answer-level number picked because it is the biggest one available, from being read as a promise about the entire job. Writing these definitions before the build is part of how an AI agent development process actually runs.

Count steps from real traces, not the architecture diagram

Your diagram says the support agent has four stages. The trace usually says otherwise. Open a sample of production runs and count every model call, tool call and handoff. A refund task might look up the account, fetch the order, check the policy, draft a reply, call the payments API and write a ticket note: six steps on a good day, fourteen when the agent retries a search twice and stops to ask itself a clarifying question.

Pull step counts for a few hundred runs and look at the spread, not the average; a median of seven steps with a 90th percentile of twenty are two different products with two different sets of odds. Then plot failures by position in the run. If a third of your lost tasks die at the same retrieval call, you do not have a ten-step reliability problem. You have one bad step, and fixing it is cheaper than anything else on the list. A customer-support agent's traces, including the handoffs that email triage agents create, are where this counting gets done in practice.

Sample size and confidence: how many runs you need

Sample size decides how strong your claim can be. A 90% result on 50 runs only supports a claim of about 79% at 95% confidence. The gap between measured and provable widens with small samples, and it cuts both ways: if your test of 30 runs produced zero failures, the standard rule of three says the true failure rate could still be as high as 10%.

The standard fix is to report uncertainty with the number. Every published result should include bootstrap confidence intervals, at 95% confidence with at least 1,000 resamples, on all aggregate metrics. Compute the success rate per task type with that 95% bootstrap confidence interval, then quote the lower bound. Before claiming agent A beats agent B, test whether the rank difference exceeds the overlap of those intervals; a result with overlapping intervals is not a meaningful difference no matter how large the point-estimate gap looks. The same rigor applies when choosing between an AI agent development company and a freelancer: ask for interval bounds, not point estimates.

Grade a random sample of real production runs, not the demo cases your team remembers. An LLM grader is fine for triage, but have a person check a slice of its verdicts, because graders tend to share blind spots with the agent they are grading.

Reliability metrics: pass^k, worst-of-n and silent failures

A single average hides agents that look good on paper and fail unpredictably in production. Two reliability metrics fix that: pass^k, the probability of at least one success in k attempts, useful for stochastic tasks, and worst-of-n, the minimum score across n runs, a reliability floor that penalizes high-variance agents. Sierra's tau-bench found agents that pass a task once often fail it when repeated, so test consistency by running each task several times.

Separate loud failures your system catches from silent failures it does not, since silent ones are what trigger SLA credits and legal exposure. Final-answer scoring cannot see them: an agent that reaches the correct terminal state via an unsafe or wildly inefficient path looks identical to a well-behaved agent under final-answer scoring. Path-based metrics such as Path Correctness, Harmful-Call Rate and Step Efficiency expose the difference, because a "successful" agent that skipped a verification step or looped through 40 redundant API calls is not a good agent. Any partner you hire should be able to report these; what to expect from an AI agent development services provider covers the questions to ask.

A worked example: from traces to a quoted success rate

Here is the process in steps you can run this week:

  • 1. Write the outcome definition for each task type before looking at any results, including how human handoffs count.
  • 2. Capture full execution traces, not just terminal states, so you can detect silent failures and inefficient paths.
  • 3. Pull step counts from a few hundred runs, group them by task type, and look at the spread rather than the average.
  • 4. Grade a random sample of production runs against the written definition, using an LLM grader for triage and a human check on a slice of its verdicts.
  • 5. Compute the success rate per task type with a 95% bootstrap confidence interval, and quote the lower bound.
  • 6. Re-run the same tasks each month, because a provider update can move the end-to-end rate by several points in either direction and you will not see it unless you graded the same tasks before and after.

Beyond the success rate: cost and variance

A success rate without cost tells half the story. SWE-Effi documented that unresolved agent attempts consumed more than 4x the tokens and wall time of successful ones. An agent that fails expensively is a different problem from one that fails cheaply, so treat cost per task, tokens and wall time as first-class metrics alongside accuracy. Cost per task depends heavily on the setup: why agents can burn far more tokens than a direct model call explains the mechanics, and benchmark costs per solved task show what a successful run actually spends.

Variance is the other blind spot. ClawBench found that 47% of score variance was seed noise and only 52.7% reflected genuine capability differences. In practice, swapping plugin configuration can produce score swings 10x larger than swapping the model itself. Fingerprint your scaffold, including framework version, tool routing and system prompt, or a mid-experiment upgrade can quietly invalidate your baseline.

Sources

Frequently asked questions

What per-step accuracy do I need for 95% end-to-end success over ten steps?

About 99.5% per step. A vendor's accuracy figure is usually step-level or answer-level, chosen because it is the biggest one available, while the end-to-end rate falls with every step added.

How many test runs do I need before quoting a success rate?

It depends on how strong the claim must be. Fifty runs at 90% measured supports only about 79% at 95% confidence, and 30 clean runs with zero failures still allow a true failure rate up to 10% by the rule of three.

What is pass^k and when should I use it?

Pass^k is the probability of at least one success in k attempts, suited to stochastic tasks where a retry is acceptable. Use worst-of-n instead when you need a reliability floor, because it penalizes high-variance agents.

Should a human handoff count as a failure?

Count it as its own outcome, not as success or failure. Folding handoffs into success inflates the number; folding them into failure hides agents that fail safely.

How do I set an error budget for a production agent?

Pick a target below 100% reliability, then multiply volume by the allowed error rate: a 10,000-call agent at 99% gets a 100-mistake daily budget to spend.

How often should I re-measure the success rate?

Put a monthly regrade on the calendar, using the same tasks each time. A provider update can move the end-to-end rate by several points in either direction, and you will not see it unless you graded the same tasks before and after.

Related services

Want a professional site without the agency invoice?

Tell us about your project below and we'll reply within 24 hours with a clear, fixed quote, no surprises.

We'll use your details only to reply to this enquiry. See our Privacy Policy.

Prefer WhatsApp or email?