techlifeadventuresVol. 03 · Nov 2026
How to Measure ROI from AI in Engineering Teams
·10 min read·AI & Machine Learning

How to Measure ROI from AI in Engineering Teams

AI coding feels faster than it is. How to measure real ROI with DORA and SPACE, with my own before-and-after numbers and the confounders I found.

Here is the most uncomfortable finding in software engineering right now. In a 2025 randomized controlled trial, METR gave experienced open-source developers AI coding tools and measured what happened. The developers expected to be 24% faster. After the experiment, they believed they had been 20% faster. They were actually 19% slower.

That gap—between how fast AI feels and how fast it actually delivers—is the single biggest reason engineering leaders are misjudging their AI investment. If your ROI case rests on "the team says it's a huge help," you are measuring a feeling, not a return.

This post is about measuring the return properly: what to count, what to ignore, and why the most common AI productivity metrics are the most misleading.


The Perception Gap Is Real (and Expensive)

The METR study is worth understanding because it was designed to be hard to dismiss. Sixteen experienced developers worked on 246 real tasks in mature codebases they already knew well—an average of five years of prior experience each. Tasks were randomly assigned: half allowed AI tools (mostly Cursor Pro with Claude), half didn't.

The result wasn't subtle. AI-assisted tasks took 19% longer. Yet every layer of perception pointed the other way—forecast, self-report, even gut feel after the fact all said "faster."

MeasureExpectationReality
Developers' forecast24% faster—
Developers' after-the-fact belief20% faster—
Measured outcome—19% slower
Two caveats matter, and I won't bury them. First, this was experienced developers in codebases they knew cold, exactly the scenario where AI helps least, because the human already holds the context the AI has to rediscover. Second, the tools tested were early-2025 models.

METR ran a larger follow-up from August 2025 and, in February 2026, published what it found. The raw numbers pointed to a speedup this time: about 18% for returning developers and about 4% for new ones, both with wide confidence intervals. But METR called its own data an unreliable signal, because many developers declined to take part or withheld tasks since they did not want to work without AI. Its view is that AI probably sped developers up more in early 2026 than in early 2025, with only weak evidence on how much. The perception gap from the first study has not been disproved; the field just got harder to measure.

But the lesson isn't "AI makes everyone slower." The lesson is: perceived productivity and real productivity are different variables, and AI inflates the first one hard. Any ROI process built on surveys alone will systematically overstate the gain.


Why Naive ROI Metrics Lie

When a vendor pitches an AI coding tool, the ROI math usually looks like this:

"Developers accept 30% of suggestions × 200 lines/day × team size × hourly rate = $X saved."

Every term in that equation is a trap.

1. Lines of code is an input, not an output

More code is not more value. It is more surface area to review, test, secure and maintain, and AI is exceptionally good at producing more code. In my own numbers, lines added rose about 4x while merged PRs rose about 10x, because agent-made PRs tend to be smaller. Count PRs alone and you overstate the gain; count lines alone and you reward bloat.

2. Suggestion acceptance rate measures typing, not shipping

A 30% acceptance rate tells you developers pressed Tab. It says nothing about whether that code shipped, survived review, or had to be reworked next sprint. Acceptance rate is a vendor metric because it always looks good.

3. "Time saved" surveys measure the perception gap

We just covered this. Self-reported time savings are the exact number METR proved unreliable.

4. Speed without stability is a loan, not a gain

The 2025 DORA report found AI adoption is now linked to higher delivery throughput—a genuine reversal of 2024's gloomier finding. But it also confirmed AI has a negative relationship with delivery stability. Faster changes expose weak testing and review systems downstream. You can borrow speed today and repay it in incidents next quarter. This is the heart of why faster code generation doesn't automatically mean faster delivery: the bottleneck in most teams was never typing speed—it's review, testing, coordination, and integration, none of which AI autocomplete touches.


A Measurement Framework That Survives Scrutiny

Real ROI = (value of outcomes delivered − fully-loaded cost) ÷ fully-loaded cost. The hard part is measuring outcomes honestly. Use three layers.

Layer 1: DORA — does work actually reach users faster and safely?

The four DORA metrics are the closest thing engineering has to a North Star, and they resist gaming because they measure flow end-to-end:

MetricWhat it catches that "lines of code" misses
Lead time for changeWhether AI speeds the whole path to production, not just typing
Deployment frequencyWhether throughput genuinely rose
Change failure rateWhether speed came at the cost of quality
Time to restoreWhether you can recover when AI-assisted changes break
The rule: never report a velocity metric without its quality counterpart. Lead time and change failure rate. Throughput and stability. If only the first improves, you haven't gained—you've shifted cost downstream.

Layer 2: SPACE — is this sustainable for humans?

The SPACE framework (Satisfaction, Performance, Activity, Communication, Efficiency) adds the dimensions DORA misses. AI can boost output while wrecking it: developers spending their day reviewing plausible-but-wrong AI code report higher cognitive load, not less. Track developer satisfaction and review burden alongside throughput.

Layer 3: Business outcomes — did it move a number that pays salaries?

Features shipped that customers use. Incidents avoided. Onboarding time for new hires. Support tickets deflected. This is the layer executives actually fund, and it's the one most AI ROI decks skip entirely.


How to Run the Measurement (So the Number Means Something)

Methodology decides whether your ROI figure is evidence or theater.

Track the same engineers over time, not team-vs-team. The most rigorous approach compares each engineer to their own pre-AI baseline. Cross-team comparisons drown in confounders—tenure, domain, seasonality. Same-person, before-and-after isolates the AI effect.

Allow a 3–6 month learning curve. Measuring in week two captures fumbling, not capability. Effective AI use is a skill (see Prompt Engineering in 2026); early numbers are noise.

Set a baseline before rollout. If you didn't capture DORA metrics pre-AI, your "after" number has nothing to compare against. Baseline first, then deploy.

Segment by task type. AI ROI is wildly uneven. Greenfield boilerplate, test scaffolding, and unfamiliar-API exploration: large gains. Deep changes in mature code you know well: the METR zone, often negative. Blended averages hide both.

Separate adoption from impact. "93% of developers use it" is an adoption stat, not an ROI stat. Adoption is necessary, not sufficient.


What It Looked Like When I Measured Myself

Between April and October 2026 I moved my own engineering work onto Claude Code agents, and I measured it with the method above: same person, before and after, from git history and PR data. The full write-up is in my six-month case study. The headline numbers, per month:

MetricBeforeAfter
Merged pull requests11.6113.6
Commits reaching a main branch39167
Test cases added4731,347
Median PR cycle time2.0 h0.7 h
The quality counterpart: reverts stayed rare, 3 to 4 in twelve months.

Here is why I don't lead with "10x":

  • My role grew over the same period, and the number of repositories I worked in doubled.
  • PRs got smaller. Lines grew about 4x while PRs grew about 10x.
  • Cycle time is partly an artefact. Faster medians mostly reflect agents removing waits between steps. They don't show that human review got faster.
  • The baseline wasn't zero AI. Most of my commits already had an AI co-author before the split date. This is lighter versus heavier agent use, not no-AI versus AI.
  • I picked the less flattering split date. Splitting at the start of daily use shows bigger multipliers but rests on only 19 PRs.

So the range I defend is 4x to 10x, for one engineering manager's own output. That is a single-person case, not a team benchmark, and I wouldn't promise it to anyone else. What I would promise is that the confounders above exist in your data too, and you only see them if you look.

What Separates Good Results

The 2025 DORA report's central finding is that AI amplifies the engineering system it operates in. Strong testing, clean version control, fast feedback loops, good documentation—AI multiplies those. Weak systems get their chaos amplified just as fast. The tool is a multiplier; your organization is the number being multiplied.


A Practical Scorecard

If you do one thing after reading this, replace your AI ROI survey with a scorecard like this, reviewed quarterly:

DimensionMetricHealthy signal
SpeedLead time for changeDown, sustained
QualityChange failure rateFlat or down (not up)
ThroughputDeploys/week, PR cycle timeUp without stability loss
HumanDeveloper satisfaction, review loadUp, or at least not worse
BusinessFeatures adopted, incidents avoidedTied to revenue/cost
CostFully-loaded AI spend per engineerTracked, not assumed
The discipline isn't complicated. It's just honest. And honesty is exactly what the perception gap erodes.

The Bottom Line

AI in engineering can absolutely deliver returns—the grounded numbers are positive, if modest. But the path runs directly through measurement discipline:

  1. Distrust the feeling. Perceived speed overstates real speed; that's now a documented effect, not a hunch.
  2. Never report velocity without quality. Speed that raises your change failure rate is debt.
  3. Measure outcomes, not activity. Lines, suggestions, and acceptance rates are vanity metrics.
  4. Compare engineers to their own baseline, over 3–6 months, segmented by task type.
  5. Fix the system, then add the multiplier. AI amplifies what you already have.

The teams winning with AI aren't the ones with the flashiest tools. They're the ones who can prove, with numbers that survive a skeptic, that the spend is paying off. Everyone else is paying for a feeling.

The other half of ROI is the cost side. I wrote up what actually drives our AI coding bill, with the routing and session rules that kept it in check.


Sources:

  • METR, Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity (July 2025) and Changing our Developer Productivity Experiment Design (Feb 2026)
  • DORA, State of AI-Assisted Software Development 2025 (Google Cloud)
  • Agent-Driven Delivery: Six Months of Real Numbers (my own measured data)


Related Reading:

Enjoying this article?

Get posts like this in your inbox. No spam, unsubscribe anytime.

Share this article
Vinod Kurien Alex

Vinod Kurien Alex

Engineering Manager with 20+ years in software. Writing about AI, careers, and the Indian tech industry.

Related Articles

© 2026 TechLife AdventuresBuilt with care · v3.2.1