DeepGraph
All posts

"Change failure rate: what it is and how to measure it"

24 November 2026 · The DeepGraph team

Change failure rate is the share of production deploys that fail and need a fix. It is one of the four DORA metrics, and the one that keeps the other three honest: shipping faster only helps if changes keep working.

This guide explains how to calculate change failure rate, what should count as a failure, how to measure it on GitHub, GitLab, Bitbucket, and SourceCraft, and how to bring it down. It is written by the team behind DeepGraph, which measures it from your projects. For all four DORA metrics together, read DORA metrics explained in plain words.

Twelve weeks of deploys from a sample web shop. Bars below the line are failed deploys, so their share of all deploys is the change failure rate. Point at a week to see its numbers.

How to calculate change failure rate

Divide the number of failed production deploys by the number of all production deploys in the same period, then multiply by 100.

For example: a team made 40 production deploys in a month, and 4 of them failed. Its change failure rate for that month is 4 divided by 40, which is 10%.

Count a failure once, even if the team retried the same deploy three times before it worked. Otherwise one bad afternoon looks like three separate failures.

What counts as a failed deploy

DORA's research counts a change as failed when it causes a problem in production that needs a fix, such as a rollback, a hotfix, or a patch. Teams record this in two main ways:

  • Failed deploys. The deploy itself failed: the deployment ended with a failure status, or the pipeline that deploys failed or timed out. Your code host records this on its own, so it needs no extra work.
  • Incidents. The deploy worked, but it broke something that users noticed, and someone opened an incident. This catches more problems, but only if your team records every incident and links it to a deploy.

Failed deploys are the simpler place to start. Know which one you count, and say so when you share the number.

How to measure change failure rate on GitHub, GitLab, Bitbucket, and SourceCraft

You need a place that records failures. Releases, tags, and merged pull requests only say that something shipped, so they can't tell you that it failed.

GitHub

Count deployments to production whose last status is failure or error, or runs of the deploy workflow that failed or timed out, and divide by all production deployments or runs.

GitLab

Count deployments to environments in the production tier whose status is failed. GitLab's own DORA charts count incidents instead, and they are part of GitLab Ultimate. Read how to measure DORA metrics on GitLab on any plan.

Bitbucket

Count failed deployments to your production environment, or failed runs of the pipeline that deploys.

SourceCraft

SourceCraft has no deployments. Count failed runs of the workflow that deploys, and divide by all its runs.

Common mistakes

  • Counting test failures as deploy failures. A pipeline that fails in its tests never reached production. Count only failures of the deploy itself, or a run that deploys.
  • Counting retries as new failures. One problem, retried three times, is one failure.
  • Counting staging. A failed staging deploy protected production. That is the point of staging.
  • Hiding failures. A deploy job that always ends green, even when the deploy breaks, makes the rate look perfect and tells you nothing.

How to lower change failure rate

  • Ship smaller changes. A small change has fewer ways to break, and it is easier to check.
  • Test before merging. Automated tests on every pull request catch problems before production.
  • Deploy in steps. Release to a few users or servers first, and stop if something goes wrong.
  • Make rollback easy. A failure that is undone in minutes hurts much less. Watch the time to restore too.
  • Learn from each failure. A short write-up after each failed deploy often finds a check that would have caught it.

Change failure rate in DeepGraph

DeepGraph reads deployments, workflow runs, pipelines, and CI runs from your GitHub, GitLab, Bitbucket, and SourceCraft projects. Its number for change failure rate is Failed deploys: the share of production deploys that GitHub, GitLab, Bitbucket, or SourceCraft marked as failed. A failure that is retried until it works counts once.

  • Failed deploys only. DeepGraph reads no incidents from tools such as PagerDuty or Jira, so a deploy that worked but broke something later is not counted.
  • For people and teams. A person's numbers count the deploys that shipped their merged pull requests, and a team counts everyone in it.
  • Seen on the chart. Failed deploys hang below the line, so a bad week stands out.

See DORA in DeepGraph for the other three numbers.

Questions

What is a good change failure rate?

Lower is better, but zero is rarely realistic, and it can mean failures aren't recorded. Compare your team with its own past, and see DORA's yearly benchmarks at dora.dev.

Is change failure rate the same as failed deployment rate?

Close, but not always. A failed deployment rate counts only deploys that failed. A change failure rate, as DORA describes it, can also count deploys that worked but caused a problem. Say which one you measure.

Does a rollback count as a failure?

The deploy that needed the rollback is a failure. The rollback itself is a fix, and the time until it works is your time to restore.

Get started

Read about the other DORA metrics: deployment frequency, lead time for changes, and time to restore. Or connect your first project with the Getting started guide.