Change Failure Rate
Change Failure Rate is the percentage of production deployments that cause an incident, rollback, or hotfix, and it is one of the four DORA metrics measuring delivery stability.
Understanding Change Failure Rate
What Is Change Failure Rate and How Is It Calculated
Change Failure Rate (CFR) is the share of your production deployments that lead to degraded service and need remediation, such as a rollback, a hotfix, or a declared incident. It is the stability counterweight to Deployment Frequency: shipping often only counts as strong performance if most releases land safely.
Change Failure Rate = (failed deployments / total deployments) x 100Example: 12 failed out of 80 deploys = 15 percentWhat Counts as a Failure
A deployment counts as failed if it directly caused any of the following:
- A production incident requiring a declared response.
- A hotfix shipped specifically to repair what the deploy broke.
- A rollback to the previous version.
- A significant degradation spotted by monitoring or customers, even without a formal incident.
A deploy that works but later needs a follow-up feature is not a failure. Agree this definition once and tool it, or trends become meaningless.
Benchmarks
DORA bands change between annual reports. Older reports put elite teams at 0 to 15%. The 2023 report clustered performers at roughly 5% for elite, 10% for high, 15% for medium, and a much higher rate for low. Use these as orientation and track your own trend more than any single threshold.
Measuring CFR
The hard part is linking each incident to the deployment that caused it. Stamp a deployment ID into the running service (an environment variable or a /version endpoint) so responders can record which deploy was live.
SELECT COUNT(DISTINCT i.caused_by_deployment_id) * 100.0 / NULLIF(COUNT(DISTINCT d.id), 0) AS change_failure_rate_pctFROM deployments dLEFT JOIN incidents i ON i.caused_by_deployment_id = d.idWHERE d.environment = 'production' AND d.created_at > NOW() - INTERVAL '30 days';Counting distinct deployments with incidents avoids counting one bad deploy twice when it caused several incidents.
Common Causes and Fixes
- Thin automated tests: raise coverage on the code paths most often involved in past incidents.
- Staging not like production: align data volume, config, and dependency versions.
- Advisory-only scan gates: make SAST and dependency scans block on HIGH findings.
- Manual deploy steps: automate migrations and config toggles that humans occasionally forget.
- Big-bang releases: use canary or blue-green so a bad change hits a small slice of traffic first.
Troubleshooting
| Symptom | Check | What to Look For |
|---|---|---|
| CFR reads zero | Incident to deploy link | caused_by_deployment_id never filled in |
| CFR spikes after one team's deploys | Per-service breakdown | One unstable service skewing the average |
| CFR looks fine but customers complain | Support ticket volume | Unpaged degradations never logged as incidents |
TipTrack CFR per service, not only org-wide. One unstable service can hide behind a healthy average while causing most of the pain.
RememberA near-zero CFR is not automatically good. If it comes from deploying rarely after heavy manual QA, you traded speed for stability.
SecurityIf CFR feeds team evaluations, there is an incentive to under-report. Keep the incident-to-deploy link automated at incident creation.
Common MistakeCounting only incidents that paged on-call. Silent regressions on non-critical paths go uncounted, which is exactly what canary analysis is meant to catch.
Frequently Asked Questions
Why is Change Failure Rate paired with Deployment Frequency?
Frequency alone rewards reckless shipping. CFR shows what fraction of those deployments hurt production, so together they capture speed and stability. DORA research found top teams achieve both at once.
Is Change Failure Rate the same as bug count?
No. CFR counts deployments that caused a production failure needing remediation. A bug found in normal usage that did not come from a specific bad deploy does not count.
What is a good Change Failure Rate?
Roughly 5 to 15% puts you in the top DORA bands, depending on the report year. The more useful goal is a steady downward trend per service with a consistent definition of failure.