What is Mean Time to Detect?
Mean Time to Detect (MTTD) is the average time between when an incident starts and when your team or tools first detect it. It shows how long problems affect customers, systems, or data before anyone notices. A low MTTD means monitoring and alerting work; a high MTTD means failures run unseen and the damage grows. Operations, engineering, and security leaders use it to decide where to invest in monitoring, alert coverage, and on-call staffing. Many teams report the median or 90th percentile alongside the mean to avoid distortion from outliers.
Mean Time to Detect Formula
How to calculate Mean Time to Detect
A payments team reviews five incidents on its checkout service last month. The minutes between each failure starting and the first alert or report were:
| Incident | Minutes to detect |
|---|---|
| Slow checkout page | 4 |
| Failed card authorizations | 6 |
| Broken coupon codes | 10 |
| Email receipts delayed | 15 |
| Silent data sync failure | 125 |
Formula: MTTD = Sum of detection times / Number of incidents
- Add the detection times: 4 + 6 + 10 + 15 + 125 = 160 minutes.
- Divide by the number of incidents: 160 / 5 = 32 minutes.
The MTTD is 32 minutes. Four incidents were caught within 15 minutes, while one went unnoticed for over two hours. The median is 10 minutes, which better describes the typical case. The team should focus on why the data sync failure had no alert.
Start tracking your Mean Time to Detect data
Build and track this metric in PowerMetrics, a modern analytics platform that lets you define metrics and connect your own data.
Get PowerMetrics FreeMore about Mean Time to Detect
How to interpret a result
Lower is better, but the number only means something when you compare it to your own history and to the severity of the incidents.
- Trend over time: A falling MTTD suggests monitoring is improving. A rising one often follows new services launching without alerts.
- Severity split: Track critical incidents separately. A 30-minute average across all incidents can be unacceptable if it includes customer-facing outages.
- Spread, not just average: Report the median and the 90th percentile next to the mean. One slow detection can double the average.
No single target fits every team. Acceptable detection times depend on how much an hour of undetected failure costs your business, so set targets by service tier or incident severity.
What drives MTTD up or down
- Monitoring coverage: Services with no alerts rely on customers to report problems, which pushes MTTD up.
- Alert quality: Noisy alerts get ignored. Well-tuned alerts tied to customer impact get noticed quickly.
- Alert thresholds: Thresholds set too loose delay detection. Thresholds set too tight create noise.
- Instrumentation of new systems: Detection gaps tend to appear when new features, vendors, or integrations ship without monitoring.
- On-call coverage: Alerts that fire at night or on weekends depend on someone being available and paged.
- Silent failures: Problems that produce no errors, such as stalled jobs or bad data, are the hardest to detect and often drive the longest times.
Common variations
Teams define and scope MTTD differently, so compare figures only when the definitions match. The start timestamp is the main source of difference.
| Convention | Start time used | Best for |
|---|---|---|
| Impact start | When customers or systems first felt the problem | Reliability and operations teams |
| Fault introduced | When the faulty change or compromise began | Security teams, post-incident analysis |
| Reconstructed start | Earliest evidence found in logs after the fact | Mature teams with thorough reviews |
- Security MTTD: Often measured from the time of compromise to detection, sometimes called dwell time. The start must usually be estimated.
- Operational MTTD: Measured from the start of user or system impact to the first alert. This is the most common form in DevOps.
- Percentile MTTD: The median or 90th percentile replaces the mean to reduce distortion from outliers.
- Segmented MTTD: Calculated separately by severity, service, or detection source (automated alert vs. customer report).
Best practices
- Record timestamps automatically. Pull start and detection times from monitoring and incident tools instead of relying on manual entry.
- Define the start time once. Write down which convention you use and apply it to every incident.
- Split by detection source. Note whether monitoring or a customer found each problem. The share found by customers shows where coverage gaps sit.
- Review the slowest detections. Each long detection points to a specific missing alert or blind spot.
- Report with a median or percentile. This keeps one outlier from changing the story.
Common challenges and misreadings
Small samples. With only a handful of incidents a month, the mean swings widely. Use a rolling quarter or report the median.
Unknown start times. Many incidents begin before anyone can prove it. Mark estimated start times and avoid comparing them directly with measured ones.
Gaming. Teams can lower MTTD by logging incidents later, by closing noisy alerts as non-incidents, or by only counting incidents that were detected quickly. Count every incident, including those found by customers.
Survivorship bias. MTTD only includes incidents you eventually found. Failures that were never detected do not appear, so a good MTTD does not prove full coverage.
Averaging unlike incidents. Mixing minor and critical incidents hides the cases that matter most. Segment by severity.
Related metrics
MTTD covers only the first stage of an incident. Read it alongside the stages that follow.
| Metric | What it measures | How it relates to MTTD |
|---|---|---|
| Mean Time to Acknowledge | Time from alert to a person responding | Starts where MTTD ends |
| Mean Time to Resolve | Time from detection (or start) to fix | Shows how quickly detected problems are fixed |
| Mean Time to Recover | Time from failure to restored service | Includes detection time within the total outage |
| Mean Time Between Failures | Average time between incidents | Shows how often detection is needed |
"MTTR" is used for several of these terms, so confirm which one a report means before comparing figures.
Mean Time to Detect Frequently Asked Questions
What is a good MTTD?
It depends on the service, the severity of the incident, and the cost of downtime. Set targets by severity tier and compare against your own trend rather than a single industry number.
Should I use the mean or the median for MTTD?
Report both. The mean captures the impact of rare, long detections, and the median shows typical performance. The 90th percentile adds a view of the slow tail.
How is MTTD different from Mean Time to Resolve?
MTTD ends when an incident is detected. Mean Time to Resolve covers the time until the problem is fixed, so it includes diagnosis and repair as well.