How to measure AI coding cost per accepted change
Divide the cost of all attempts by the number of changes that passed the same test and review criteria.
Example
A trial spent $18 across 12 attempts and delivered nine accepted changes. Its cost per accepted change is $2.
What to do
- Choose a representative batch of fixes and additions. Define what qualifies as an accepted change before the trial.
- Record model usage and relevant coding-tool fees, including failures, retries and reviews. Match the totals to the same billing window.
- Group results by task type. Compare the median and expensive tail before changing the default model.
How to verify
A reviewer can reproduce the acceptance count and trace the spending figure to usage or invoices.
Limits
Synthetic calculations illustrate the method. Your rates, workload and acceptance criteria determine actual costs.