Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Learn

Mean time between failures (MTBF) vs MTTR: formulas and meaning

MTBF (mean time between failures) is total operating time divided by the number of failures, and MTTR (mean time to repair or recovery) is total downtime divided by the number of failures. MTBF says how often you break, MTTR says how long you stay broken.

The short answer
  • MTBF = operating time / failures. MTTR = downtime / failures. Higher MTBF and lower MTTR both raise uptime.
  • For a monitored site, availability is roughly MTBF / (MTBF + MTTR).
  • The letter R in MTTR has four common meanings, so state which one your team uses.

How do you calculate MTBF and MTTR?

Worked example: 30 days, 3 incidents, 45 minutes of downtime
period            = 30 days = 43,200 minutes
total downtime    = 45 minutes (3 incidents)
operating time    = 43,200 - 45 = 43,155 minutes

MTTR = 45 / 3          = 15 minutes
MTBF = 43,155 / 3      = 14,385 minutes (about 10 days)

availability = MTBF / (MTBF + MTTR) = 14,385 / 14,400 = 99.896%
check        = (43,200 - 45) / 43,200            = 99.896%

What does the R in MTTR stand for?

Common MTTR meanings
NameClock usually runs fromTo
Mean time to repairFailure startsFix is complete
Mean time to recoveryFailure startsService is back for users
Mean time to respondAlert fires or failure detectedRemediation is under way
Mean time to resolveFailure startsRoot cause fixed, incident closed

Sources differ on where the clock starts. IBM treats repair and recovery as the same metric. Write down your definition before comparing numbers across teams.

How do you improve each metric?

The two metrics respond to different work. Failures between incidents depend on prevention, while time to recover depends on detection and process.

Raise MTBF

Staged rollouts, tested deploys, capacity headroom, automated certificate and domain renewal.

Shorten detection

Detection time sits inside every outage. A monitor that notices in one minute instead of ten lowers MTTR without touching the fix.

Lower MTTR

Faster detection, clear runbooks, one-step rollback, and alerts that reach the person who can act.

Detection time is part of MTTR

If you measure from the moment the failure begins, a 10-minute check interval adds up to 10 minutes to MTTR before anyone is told. Shorter intervals and multi-region confirmation lower MTTR directly.

What pitfalls make MTBF and MTTR misleading?

  • Small samples. Three incidents in a month give a noisy average, so use a quarter or a year of data.
  • A few very long outages inflate MTTR. Report the median and the worst case as well as the mean.
  • Counting only full outages. Slow or partial failures that users notice belong in the data, too.
  • Mixing definitions. Compare MTTR only when everyone starts the clock at the same moment.
  • Ignoring maintenance. Decide whether planned downtime counts, and apply the rule every time.

How do you collect the numbers from a monitor?

Your monitoring tool already holds the raw data. These steps turn the incident log into the two averages.

  1. 01

    Export the incident log

    Take the start and end time of every confirmed outage for the period you are measuring.

  2. 02

    Sum the downtime and count the incidents

    Total downtime divided by the incident count gives MTTR. Subtract downtime from the period to get operating time.

  3. 03

    Divide operating time by incidents

    That is MTBF. If you had no incidents, MTBF is at least the length of the period.

  4. 04

    Track the trend

    Compare each month with the last. A falling MTTR means your detection and recovery are improving.

Which number should you report to whom?

  • Owners and customers: availability percentage and the longest outage.
  • Engineers: MTTR split into detection, response and repair time.
  • Managers: the trend of both averages over the last four quarters.
  • Everyone: the definition of the clock start, printed next to the number.

Common questions

What is the difference between MTBF and MTTR?

MTBF measures the average time between two failures of a repairable system. MTTR measures the average time to fix or recover after a failure. One describes reliability, the other describes how fast you restore service.

What is MTTF?

Mean time to failure applies to parts that are replaced rather than repaired, such as a disk. For a website that you repair and keep running, MTBF is the usual term.

Is a higher MTBF always better?

Yes, it means longer stretches without failure. Pair it with MTTR, though. A site that fails rarely but needs a day to recover can still miss its uptime target.

Which MTTR should a website team track?

Mean time to recovery from the start of the user-visible failure is the most useful, because it matches what visitors experience. Track detection time separately so you can see how much comes from slow alerting.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.