Metrics that backfire
Last reviewed November 8, 2026
A metric backfires when people change their behavior to improve the number instead of the thing it was meant to show. It happens most when a metric becomes a target, is tied to rewards, or is used to compare people or teams. Velocity targets, lines of code, hours logged, utilization and bugs closed are the usual examples. The safer approach is to measure outcomes the team can't easily inflate, to use several measures together, and to keep team-level metrics inside the team.
Goodhart's law puts it simply: when a measure becomes a target, it stops being a good measure. The cobra effect is the extreme case, where the incentive makes the problem worse.
The usual suspects
| Metric | Why it backfires | Measure instead |
|---|---|---|
| Velocity as a target | Estimates grow, and forecasts break | Delivery time, Sprint Goals met |
| Lines of code | Rewards verbose code and punishes simplification | Outcomes for users |
| Hours logged | Rewards presence, not results | Outcomes for users |
| Utilization near 100% | Queues grow and everything slows down | Cycle time |
| Bugs closed | Bugs are closed fast and poorly, or split to count twice | Bugs that reach customers, reopened bugs |
| Code coverage target | Tests that execute code without checking anything | Escaped defects, change failure rate |
| Story points per person | Destroys collaboration, because helping others lowers your number | Team outcomes |
| Number of releases | Releases with nothing in them | Value delivered and change failure rate |
None of these numbers is useless. Code coverage can point to untested areas. Utilization can show overload. They backfire when they become targets, or when they are used to judge.
Why it happens
- People respond to incentives. If a number is praised or paid for, it rises, one way or another.
- Numbers are easier than outcomes. It is easier to count bugs closed than to know whether customers are happier.
- Single metrics have blind spots. Any one number can be improved by sacrificing something it doesn't measure.
- Comparison invites gaming. League tables of teams or people turn colleagues into competitors.
A worked example
Choosing metrics that help
- Measure outcomes, not activity. What changes for users and the business?
- Use several measures together. Speed with quality, output with satisfaction. Improving one at the cost of another becomes visible.
- Let the team choose its own measures. People are less likely to game numbers they chose to learn from.
- Look at trends, not targets. "Is it improving?" is a better question than "did we hit 80%?".
- Keep team metrics inside the team. Share outcomes and forecasts upward, not raw velocity or individual numbers.
- Review metrics regularly. If a metric stops teaching anything, drop it.
The four measures from the DORA research are a widely used, balanced set for software delivery: how often a team deploys, how long changes take to reach production, how often changes fail, and how quickly service is restored. Two measure speed, and two measure stability, so improving one at the expense of the other shows up. See Quality metrics and escaped defects.
Common pitfalls
"It's just for information." Once a number is collected and shown, someone will start using it as a target.
Individual metrics in a team sport. Measuring individuals in a team discourages helping, pairing and reviewing.
Replacing one bad target with another. Dropping a velocity target and adding a "story points per Developer" target changes nothing.
Never retiring a metric. Dashboards grow until nobody reads them.
Ignoring what people say. Numbers miss things that a conversation at the retrospective would reveal. See Measuring team health.
Questions
What is Goodhart's law?
The observation that when a measure becomes a target, it stops being a good measure, because people change their behavior to improve the number rather than the thing it represents.
Should velocity be a target?
No. If velocity is a target, the easiest way to raise it is to give items bigger estimates. The number rises while delivery stays the same, and forecasts stop working.
Which metrics should agile teams use?
Measures of outcomes and flow, used together: delivery time, Sprint Goals met, quality measures such as bugs that reach customers, and team health. The DORA measures are a good balanced set for software delivery.
Is it wrong to measure individuals?
In a team, individual output measures usually backfire, because they discourage collaboration. Measure the team's results, and handle individual development through conversation.
How do we stop a metric from being gamed?
Use it to learn, not to reward or compare. Pair it with a measure that would show the damage if it were gamed, such as speed with quality.
What is the cobra effect?
An incentive that makes the problem it targets worse. The name comes from a story, possibly untrue, about a reward for dead cobras that led people to breed them. In teams, a bonus for closing bugs that leads to more reopened bugs is the same pattern.
How many metrics should a team track?
A few. Three to five measures, chosen by the team and reviewed regularly, are usually enough. With more than that, nobody looks at them.