How to measure the ROI of AI coding tools.
The ROI of an AI coding tool is the value of the engineering capacity and delivery gains it produces, minus its full cost (licenses, tokens, infrastructure, training and the temporary productivity dip), divided by that cost. Measure it per tool and per team against a pre-AI baseline, and track cost per merged pull request as the unit metric. This guide covers GitHub Copilot, Claude Code and Cursor, and how to report the result to a CFO or board.
- Hard costs$200,000
- J-curve cost$450,000
- Total investment$650,000
- Capacity value (8% time saved)$2,880,000
Jump to the question you need answered.
The AI ROI formula
Use first-year figures. These are the same inputs as the Waydev AI ROI calculator.
Total first-year investment = license cost + additional AI costs (tokens, usage overages) + AI infrastructure + training + J-curve cost
J-curve cost = engineers x loaded salary x productivity drop % x (drop duration in months / 12)
Capacity value = engineers x loaded salary x net time saved %
First-year value = capacity value + revenue from extra features shipped + downtime savings from a lower change failure rate
AI ROI % = (first-year value - total first-year investment) / total first-year investment x 100
Payback period (months) = total first-year investment / (first-year value / 12)
Cost per merged PR = total AI spend / merged pull requests in the periodNet time saved means time saved after the extra time spent reviewing, fixing and reworking AI-generated code. Use measured rework and review time, not survey estimates alone.
Worked example
Illustrative assumptions, not customer data: 200 engineers, $180,000 fully loaded cost per engineer, AI tools at $40 per seat per month plus $10 per seat per month in token overages, $300 training per engineer, $20,000 infrastructure, a 5% productivity dip for 3 months, and 8% net time saved.
| Line | Calculation | Result |
|---|---|---|
| Hard costs | 200 x ($480 + $120 + $300) + $20,000 | $200,000 |
| J-curve cost | 200 x $180,000 x 5% x 3/12 | $450,000 |
| Total first-year investment | $200,000 + $450,000 | $650,000 |
| Capacity value | 200 x $180,000 x 8% | $2,880,000 |
| AI ROI | ($2,880,000 – $650,000) / $650,000 | 343% |
| Payback | $650,000 / ($2,880,000 / 12) | 2.7 months |
| Cost per merged PR | $200,000 / 19,200 merged PRs (8 per engineer per month) | $10.42 |
Scroll the table sideways to see every column.
Capacity value is reinvestable engineering time, not cash saved. Present it to finance as capacity (for example, the equivalent of 16 engineers) and show where it went: more features, less unplanned work, or lower contractor spend.
How to calculate the ROI of GitHub Copilot
- Set a baseline: cycle time, throughput, change failure rate and rework for each team over the 90 days before rollout.
- Track true adoption: active users and accepted suggestions per developer, not seats assigned. Idle seats are pure cost.
- Compare Copilot users with non-users on the same teams, and each team with its own baseline.
- Measure quality: rework and reverts on Copilot-assisted pull requests versus others.
- Apply the formula above with Copilot license and usage cost, and report cost per merged PR.
How Waydev measures it: AI Adoption tracks Copilot usage by team and individual, AI Impact compares delivery against the pre-AI baseline, and AI Spend Hub reports Copilot cost per merged PR and idle seats.
How to measure the ROI of Claude Code
Claude Code is usage-priced, so token spend varies far more by team than a flat seat license. Measure ROI per task type, not per seat.
- Pull token and model spend per user and team from the Claude Code usage data.
- Attribute merged pull requests to Claude Code sessions and agent identities.
- Compute tokens per merged PR and cost per merged PR, by team and workflow (feature work, tests, migrations, code review).
- Check quality: review rounds, rework and change failure rate on Claude Code-authored changes.
- Flag outliers: long sessions and AI work that stalls before merge are spend with no return.
How Waydev measures it: Human and Agent Spend separates human, AI-assisted and agent-authored work and shows cost per workflow; AI Spend Hub shows spend by model.
Is Cursor worth it for enterprise?
Cursor is worth it for a team when its cost per merged PR falls and cycle time improves without a rise in rework or change failure rate. It is not worth it where spend rises while cycle time stays flat, which usually signals low adoption or review bottlenecks.
- Compare Cursor teams with Copilot or Claude Code teams on the same metrics before renewals.
- Reallocate idle Cursor seats before the next renewal.
- Model expansion first: estimate token spend if seats double, and set a positive-ROI gate before scaling.
How Waydev measures it: AI Spend Hub raises a signal when a team’s Cursor spend rises while cycle time is flat; Waydev Agent answers “what happens to our token spend if we double Cursor seats?”
How to measure developer time saved by AI assistants
Measure net time saved from delivery data, then check it against surveys. Self-reported time saved alone overstates the gain because it ignores extra review and rework.
- Change in coding time and cycle time per pull request against each team’s baseline.
- Change in throughput per engineer (merged PRs, completed work items).
- Minus added review time and rework on AI-assisted changes.
- Cross-check with a developer experience survey on where saved time went.
Read more: AI adoption is not the same as AI ROI.
How to track AI license usage and spend per team
- Bring seat, token, model and agent costs from every tool into one ledger.
- Map users to teams from your identity provider or Git organization.
- Report per team: active seats, idle seats, spend, cost per merged PR and ROI.
- Roll spend up to features and initiatives so finance sees cost per outcome, not per tool.
How Waydev measures it: AI Spend Hub (spend by tool, team and model, idle seats) and AI Feature Spend (AI cost per initiative, budget versus actual, export for finance).
How to track code written by AI agents vs humans
Classify every merged change as human, AI-assisted or agent-authored using commit and PR metadata, bot and agent identities, and usage data from connected AI tools. Then compare cycle time, review depth, rework and change failure rate across the three groups.
Read more: The AI SDLC: what frontier engineering teams do differently and Code churn and AI agent churn.
How to justify AI coding spend to the CFO and board
- Lead with one number per tool: cost per merged PR and ROI, against last quarter.
- Show capacity gained in engineer-equivalents and where it was reinvested.
- Show quality held or improved: change failure rate and rework.
- Show decisions: seats cut, tools expanded, renewals renegotiated.
- Give finance a view they can open without an engineering login.
Read more: How to prove AI coding ROI to the board, How to present engineering ROI to the CFO and Cost per accepted change is the right unit.
Metrics table
| Metric | Definition | Answers | Waydev feature |
|---|---|---|---|
| True adoption rate | Active AI users / engineers with access | Are seats used? | AI Adoption |
| AI-assisted delivery share | Merged PRs that are AI-assisted or agent-authored / all merged PRs | How much work involves AI? | Human and Agent Spend |
| Cycle time impact | Cycle time now vs pre-AI baseline, per team | Did delivery speed up? | AI Impact |
| Quality delta | Rework, reverts and change failure rate on AI vs non-AI changes | Did quality hold? | AI Impact |
| Cost per merged PR | AI spend / merged PRs | What does AI cost per unit of output? | AI Spend Hub |
| Idle seats | Licensed seats with no activity in 30 days | Where is spend wasted? | AI Spend Hub |
| ROI per team | (Value – cost) / cost, per team and tool | Where to expand or cut? | AI ROI |
Scroll the table sideways to see every column.
Questions engineering leaders ask
What is a good ROI for AI coding tools?
How long until AI coding tools pay back?
Can I measure AI ROI without reading source code?
See AI ROI on your own data
Waydev calculates cost per merged PR, ROI per tool and team, and time saved against your own pre-AI baseline.
Free proof of concept · read-only access · SOC 2 Type II