Home · Guides · Calculate Cost per Outcome
How do you calculate cost per successful outcome?
By the Ingenious AI team · Published 2026-11-14 · Reviewed 2026-11-14
Short answer: Add up every AI cost event tagged to one client or one task — including the spend on attempts that failed — and divide that total by the number of outcomes that actually succeeded. If a workflow spent $412 in a month and produced 268 successful outcomes, its cost per successful outcome is $1.54. Failed spend is never subtracted first: the failures are exactly what the metric exists to expose.
Try the free demo measurement See pricing Start free — one provider key
What is cost per successful outcome?
Cost per successful outcome is a unit-cost metric for AI work: the total AI cost attributed to a client, a task or a workflow, divided by the count of outcomes from that work that succeeded. OutcomeMeter computes it from tagged cost events — each event carries a client, a task, a provider, a model, a cost and a success-or-fail outcome — so the division always runs on recorded spend and recorded results, never on estimates.
What goes into the numerator: all of the cost, failures included
The numerator is the full AI cost of the work you are measuring: every provider charge for the calls that produced outcomes, and every provider charge for the calls that did not. Teams instinctively want to count only the spend on successful runs, because that produces a flattering number. Resist that. A support workflow that resolves a ticket on the third attempt consumed three attempts of spend to produce one outcome, and its honest cost per outcome has to carry all three.
OutcomeMeter's cost_per_outcome calculation follows this rule literally. Events arrive through the attribution ingest API with a client, a task, a cost and an outcome of success or fail, and the spend attached to failed events stays in the client's total. That design is deliberate: it means a workflow cannot look cheaper by failing more, and a retry-heavy workflow shows a worse unit cost instead of a busier activity chart.
What goes into the denominator: successes only, counted once
The denominator is the number of successful outcomes — not requests, not calls, not tokens. One resolved ticket is one outcome even if the workflow made six model calls to resolve it. One kept order is one outcome even if a human reviewed the agent's draft first. The outcome is the unit the business values; the calls are just how the cost accumulated on the way there.
Counting once matters more than it sounds. The ingest API accepts an idempotency key with each event, so a duplicate delivery of the same event never charges twice and never double-counts a success. Without that guard, a retried webhook quietly inflates the denominator and the metric drifts optimistic — the worst direction for a number you bill and plan from.
A worked formula, with the arithmetic shown
The formula itself fits on one line: cost per successful outcome = total tagged cost ÷ successful outcomes. Take a document-processing workflow that spent $96.40 across a week and produced 121 successfully processed documents with 14 failed attempts mixed into the same spend. The calculation is $96.40 ÷ 121 = $0.80 per successful document. The 14 failures are not in the denominator, but their cost is in the $96.40 — which is why the number is $0.80 and not the lower figure you would get by costing only clean runs.
Run the same workflow a month later after fixing the failure cause, and suppose it spends $88.10 for 129 successful documents. The unit cost is now $0.68. Nothing about the model changed; the improvement came entirely from removing failure spend, and cost per successful outcome is the metric that makes that improvement visible in money instead of in vibes.
Per client, per task, per workflow: pick the slice deliberately
A single blended number for all AI work hides everything interesting. The useful slices are per client (what does this client's work cost per result, for pricing and pass-through billing), per task within a client (which of their workflows earns its keep), and per workflow across clients (is this automation healthy wherever it runs). OutcomeMeter reports cost per successful outcome per client and per task because those are the slices agencies actually make decisions with.
Choose the slice that matches the decision in front of you. Renewal pricing is a per-client question. A prompt rewrite is a per-task question. A model swap is a per-workflow question, because the same workflow's unit cost before and after the swap is the only honest comparison. Blending slices produces a number that answers none of these and reassures everyone falsely.
Why the verified version of this metric is stricter
Cost per successful outcome trusts the success tag on the event. The verified outcome ledger goes further: it joins cost events to outcome records that a system of record confirms — a ticket actually resolved, a case actually closed, an order actually kept — and computes cost per verified success. Unverified outcomes are counted separately and never blended into the headline, so a workflow cannot improve its number by tagging generously.
You do not need the verified layer on day one. Start with tagged outcomes to find the obvious waste, then add verified records for the workflows you bill on or make scaling decisions about. The two numbers side by side are also diagnostic: a wide gap between cost per tagged success and cost per verified success usually means the tagging is optimistic, and that is worth knowing before a client finds it.
The mistakes that make this metric lie
Three mistakes recur. First, excluding failed spend, covered above. Second, mixing periods: dividing this month's cost by last month's outcomes because the reports were exported on different days. Cost and outcomes must cover the same window, per slice, or the quotient is meaningless. Third, estimating the numerator from a credit-card total instead of tagged events — an untagged total cannot be sliced per client, and per-client is where the decisions live.
A fourth, quieter mistake is measuring once. Unit cost moves as prompts change, models change and failure causes come and goes. OutcomeMeter keeps the events append-only and computes from the recorded rows, so the metric can be re-derived for any period and audited back to the events underneath it. A number you cannot re-derive is a claim, not a measurement.
Sources
OutcomeMeter product record — the cost-per-outcome formula, the verified outcome ledger and the waste report described in this guide are drawn from the product's own metering code, reviewed 23 November 2026. OpenAI API documentation (platform.openai.com/docs) — the usage and cost endpoints the free tier reads for connected OpenAI keys, accessed 23 November 2026. Anthropic API documentation (docs.anthropic.com) — usage and cost reporting for connected Anthropic keys, accessed 23 November 2026.
Calculate your first cost per successful outcome: the 5-action checklist
You can do this with a spreadsheet export before you automate anything. The point of the exercise is the discipline, not the tooling.
- Pick one slice: one client or one workflow, one calendar month. Do not start with everything you run.
- Collect the full cost: every provider charge for that slice in the month, including failed and retried attempts.
- Count successes only: outcomes the work was for — resolved, closed, kept, delivered — counted once each.
- Divide and write it down: total cost ÷ successes, dated and saved next to the raw numbers it came from.
- Repeat next month identically: same slice, same window, same counting rule — the trend is the product.
Worked example: a fictional agency's support workflow, carried through
Consider a fictional agency, Harborline Studio, running an AI-drafted support-reply workflow for one retail client. In October the workflow's tagged events total $612.85 in provider spend. Of 512 outcome events, 438 are tagged success and 74 fail — mostly drafts the workflow abandoned after repeated errors on order-status questions. Cost per successful outcome: $612.85 ÷ 438 = $1.40 per resolved conversation.
Harborline fixes the order-status tool call in November. Spend falls to $541.20 while successes rise to 471 of 489 events. The new unit cost is $541.20 ÷ 471 = $1.15. The agency now has a defensible story for the client — the workflow got 18% cheaper per resolved conversation — and a defensible price, because the number sits on recorded events the client can inspect in a report, not on a spreadsheet someone assembled from memory.
OutcomeMeter runs this measurement on your own provider spend: connect a key on the free tier, watch the demo measurement first if you want to see the shape of the output, and read accepted-outcome economics when you are ready to value accepted work. The guides index collects every guide in this series.
Frequently asked questions
What is cost per successful outcome?
It is the total AI cost attributed to a client, task or workflow divided by the number of successful outcomes that work produced. Failed attempts count in the cost but not in the outcome count, which is what makes the metric honest: workflows that fail expensively show a worse number.
How is it different from cost per token?
Tokens measure activity — what the model did — while outcomes measure results — what anyone got. A retry loop can consume enormous token volume and produce zero outcomes. Cost per token can fall while cost per outcome rises, if the cheaper tokens are being spent on failures.
What if a workflow has cost but zero successes?
Then the metric is honestly undefined rather than infinite or zero: the work spent money and produced nothing, which is a stop signal. OutcomeMeter's verified ledger reports exactly this case as n/a (no verified successes) instead of inventing a number.
Do failed attempts really belong in the cost?
Yes. The provider charged for them, the client ultimately funds them, and excluding them would let a workflow look efficient precisely when it is failing. Failure spend is real spend; the metric's job is to make its cost visible per successful result.
Which plans include cost per successful outcome?
Per-client outcome attribution through the ingest API is a Pro ($29/mo) and Agency ($79/mo) feature in OutcomeMeter. The free tier connects one provider key and produces the real spend pull plus the waste report, which is where most teams find their first savings.
Keep reading
- Cost per outcome vs cost per token: which one should you manage?
- What is a verified outcome, and why does it outrank a success tag?
- How does per-client AI cost attribution work for an agency?
- How do you reduce failure spend without reducing what your AI produces?
- How do you get your first cost-per-outcome report?
- All OutcomeMeter guides
- Free demo measurement
- Accepted-outcome economics
- OutcomeMeter pricing — Free, Pro $29/mo, Agency $79/mo