Cost per merged PR calculator
Updated November 25, 2026
Enter a month of your team's AI coding: what you pay for the AI subscriptions and API usage behind every coding agent you use, and the pull requests you merge. The calculator works out what each merged PR costs, what each agent-assisted PR costs in AI spend, and whether the engineer time agents save covers the bill. Everything runs in your browser.
Example values for a made-up team. Replace them with yours.
Your team's results
| Merged PRs a month | 120 |
|---|---|
| Agent-assisted PRs a month | 48 |
| Cost per merged PR | $16.67 |
| AI cost per agent-assisted PR | $41.67 |
The 72 hours agents save are worth $7,200 a month, $5,200 more than the $2,000 spent: a 260% return.
Want the real number on your team's work? Get a free company benchmark. Related reading: how to build an AI coding benchmark for your company, how to cut your coding agents' costs and how to roll out AI coding tools to a team.
How is it worked out?
The calculator takes one month. It multiplies out how many pull requests the team merges, divides the spend over them, then prices the time agents save at the hourly rate and sets it against the spend. Each line below shows the formula in words, then the same formula with your numbers.
-
Merged PRs a month = engineers × merged PRs per
engineer per month. Yours:
10 × 12 = 120 -
Agent-assisted PRs a month = merged PRs a month × the
agent-assisted share. Yours:
120 × 40% = 48 -
Cost per merged PR = monthly AI coding spend ÷ merged
PRs a month. Yours:
$2,000 ÷ 120 = $16.67 -
AI cost per agent-assisted PR = monthly AI coding
spend ÷ agent-assisted PRs a month. Yours:
$2,000 ÷ 48 = $41.67 -
Value of time saved = agent-assisted PRs a month ×
hours saved per agent-assisted PR × loaded hourly rate. Yours:
48 × 1.5 h × $100 = $7,200 -
Return = (value of time saved − monthly AI coding
spend) ÷ monthly AI coding spend. Yours:
($7,200 − $2,000) ÷ $2,000 = 260%
The spend is split evenly, so a large PR and a one-line fix cost the same. Review time, reverted PRs and work that never merges aren't counted. Hours saved is your own estimate: no public figure holds across teams, so the calculator doesn't supply one. Compare your own team month to month rather than against another team's number.
Questions
What is cost per merged PR?
A month's AI coding spend divided by the pull requests the team merged that month. It counts every merged PR, whether an agent helped or not, so it falls when the same spend ships more work and rises when spend grows faster than output.
Why is the AI cost per agent-assisted PR higher?
It divides the whole spend over only the PRs where an agent did most of the work, so it is an upper bound. Some of the spend goes to questions, reviews, smaller help on other PRs and work that never merges.
How can a team lower its cost per merged PR?
Spend less on each PR, or merge more with the same spend. One lever is model choice: the same spend goes further when each task runs on a model sized for it. AutoRouter, a Mac app, picks the model for each turn in every coding agent you use, so quick work doesn't run on the most expensive model.
How do I measure cost per PR on my team's real work?
The calculator works from the averages you type in. AutoRouter's free company benchmark is built from pull requests your team has already merged and scores models and agent setups on pass rate and cost per task. The benchmark is free, and the team keeps it.