> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/software-engineering-insights/use-software-engineering-insights/sei-administration/sei-calculations/dora/dora-change-failure-rate-calculation.md).

# Change Failure Rate Calculation

#### What is Change Failure Rate? <a href="#what-is-change-failure-rate" id="what-is-change-failure-rate"></a>

Change Failure Rate represents the percentage of deployments that cause a failure in production.

To monitor Change Failure Rate in SEI, you must set up a [Workflow profile](/software-engineering-insights/use-software-engineering-insights/setup-sei/sei-profiles/workflow-profiles/dora-profile.md), and then add the **Change Failure Rate** widget to Insights.

To learn more, go to [DORA Reports](/software-engineering-insights/use-software-engineering-insights/analytics-and-reporting/efficiency/dora-metrics/dora-metrics.md)

#### Change Failure Rate Calculation and Scoring <a href="#change-failure-rate-calculation-and-scoring" id="change-failure-rate-calculation-and-scoring"></a>

Change Failure Rate performance is ranked on the following grading scale:

* **Elite:** Failure rate under 15 percent.
* **High:** Failure rate of 16 to 30 percent.
* **Medium:** Failure rate of 31 to 45 percent.
* **Low:** Failure rate above 45 percent.

The Change Failure Rate is calculated by dividing the number of failed deployments by the total number of deployments. The actual values included in this calculation are based on the following factors:

* The SEI integration chosen in the Workflow profile.
  * For issue management SEI integrations, SEI counts the number of issues deployed.
  * For SCM SEI integrations, SEI counts the number of PRs deployed.
  * For CI/CD SEI integrations, SEI counts the number of jobs deployed.
* Filters applied to the Workflow profile.
* Collection-level filters.
* Widget-level filters.
* Insight time range, which is the time range selected by the user when viewing the Insight.

#### Calculation Example <a href="#calculation-example" id="calculation-example"></a>

Consider the following Change Failure Rate configuration:

* **SEI integration:** Jira
* **Filter for Failed Deployment:** Status Category Equals Done
* **Filter for Total Deployment:** Status Category Equals Done, To do, In Progress
* **Calculation parameter:** Ticket resolved in Insight time range
* **Time Range selected on the Insight:** Last 3 months

With this configuration, the Change Failure Rate widget shows the total number of tickets with a status of **Done** divided by the total number of tickets with a status of **Done**, **In Progress**, or **To Do**.

```bash
Change Failure Rate = ( Tickets in Done status ) / (Tickets in Done status + Ticket in In Progress status + Tickets in To Do status )
```

Assuming there are 45 tickets in **Done** status and 90 tickets in **Done**, **In Progress**, or **To Do** status, then the Change Failure Rate is 45 divided by 90, or 0.5 (50 percent).

```bash
45 / 90 = 0.5
Change Failure Rate = 50%
```
