"Lead time for changes: the DORA metric explained"
24 November 2026 · The DeepGraph team
Lead time for changes is how long a change takes to go from its first commit to running in production. It is one of the four DORA metrics. It covers everything a change waits for: coding, review, tests, waiting for a release, and the deploy itself.
This guide explains how DORA defines lead time for changes, how to measure it from pull requests and deploys, why the median matters, and where changes usually wait. It is written by the team behind DeepGraph, which measures lead time from your projects. For all four DORA metrics together, read DORA metrics explained in plain words.
What lead time for changes measures
A long lead time means finished work sits and waits before anyone can use it. A short one means the team can fix a bug or answer a customer within hours or days, not weeks.
Lead time for changes is about the path from code to production, not about planning. It starts when someone commits code, not when an idea is written down. The time from idea to start is real too, but it lives in your issue tracker, and DORA measures it separately from delivery.
How DORA defines it
DORA's research defines lead time for changes as the time from a commit to that commit running in production. In practice, most teams measure it for each merged pull request:
- Start: the time of the pull request's first commit.
- End: the time of the first production deploy after the merge that contains the change.
Some tools start the clock at the merge instead. That is easier to measure, but it hides the time spent coding and in review, which is often where changes wait longest. GitLab's own DORA charts, for example, start at the merge.
How to calculate lead time for changes
For each merged pull request in a period, subtract its first commit time from the time of the production deploy that shipped it. Then take the median of those times: the middle value, where half the changes took less and half took more.
Use the median, not the average. One pull request that sat open for three months would pull the average up and hide that most changes ship in a day or two. The median shows what usually happens.
If every merge into your main branch goes live on its own, the deploy is the merge, and lead time ends there.
Where changes wait
Split lead time into its parts to find what slows you down:
- Coding: from the first commit until the pull request is opened. Long here often means changes are too big.
- Waiting for review: from opening until the first review. This is the most common wait.
- Review and fixes: from the first review until the merge.
- Waiting to ship: from the merge until the production deploy. Long here means releases are batched or deploys need manual steps.
How to shorten lead time for changes
- Make pull requests smaller. Small changes are reviewed faster and break less.
- Review sooner. Agree on how fast a pull request should get its first review, and keep to it.
- Automate tests and deploys. Every manual step adds waiting.
- Deploy after every merge. If merges wait for a weekly release, every change waits up to a week.
- Keep failures low. A short lead time only helps if the change works. Read it next to the change failure rate.
Lead time for changes in DeepGraph
DeepGraph reads merged pull requests, their commits, and production deploys from your GitHub, GitLab, Bitbucket, and SourceCraft projects. Its Lead time runs from the first commit of each merged pull request to the production deploy that shipped it, and shows the median. On SourceCraft, which doesn't share a pull request's commits, lead time starts when the pull request was opened. When merges are what counts as production, lead time ends at the merge.
- For people and teams. A person's lead time covers their merged pull requests, and a team's covers everyone in it.
- Over time. See lead time for each day, week, or month, next to deploys and failures.
- Production picked for you. Chips show where your projects ship, and you choose which ones count.
See DORA in DeepGraph for the other three numbers.
Questions
What is a good lead time for changes?
Many teams that ship well get most changes to production within a day. What matters most is your own trend. DORA publishes yearly benchmarks at dora.dev.
Is lead time for changes the same as cycle time?
No. Lead time for changes, as DORA defines it, runs from commit to production. Cycle time usually runs from when work starts, often in an issue tracker, until it is done.
Why use the median instead of the average?
Because a few very slow changes can pull the average far away from what usually happens. The median shows the typical change.
Get started
Read about the other DORA metrics: deployment frequency, change failure rate, and time to restore. Or connect your first project with the Getting started guide.