What does MTBF stand for? Mean time between failures

MTBF stands for mean time between failures: the average time a system runs between one failure and the next. It is calculated as total operating time divided by the number of failures in the period, and higher is better. Together with MTTR it gives availability: MTBF ÷ (MTBF + MTTR).

· Updated · also called mean time between failures

Why MTBF matters

MTTR tells you how quickly you recover; MTBF tells you how often you have to. A service that recovers in two minutes but fails twice a day is still a poor experience, and the fix is different: fewer bad deploys, more capacity, or removing a fragile dependency.

Watching MTBF over quarters shows whether reliability work is paying off. The metric comes from reliability engineering for repairable equipment; for online services, a failure should mean an incident that affected users.

How to measure MTBF

MTBF         = total operating (up) time ÷ number of failures
availability = MTBF ÷ (MTBF + MTTR)

Worked example

Over a 30-day month (720 hours) a service had 3 user-facing failures with 1.5 hours of downtime in total.

  1. Operating time = 720 − 1.5 = 718.5 hours.
  2. MTBF = 718.5 ÷ 3 = 239.5 hours, roughly 10 days between failures.
  3. MTTR = 1.5 ÷ 3 = 0.5 hours.
  4. Availability = 239.5 ÷ (239.5 + 0.5) = 99.79%, the same as 718.5 ÷ 720.

Result: To reach 99.9% with the same MTTR, MTBF would have to be about 499.5 hours, so the service could fail only about once every three weeks.

MTBF and its relatives

MetricFormulaUse it for
MTBF, mean time between failuresoperating time ÷ failureshow often a repairable system fails
MTTF, mean time to failuretotal lifetime ÷ units that failedparts that are replaced, not repaired (disks, bulbs)
MTTR, mean time to recoverytotal recovery time ÷ incidentshow long each failure hurts
MTTA, mean time to acknowledgeΣ (acknowledged − alerted) ÷ alertson-call responsiveness
MTTD, mean time to detectΣ (detected − started) ÷ incidentsmonitoring coverage and check intervals

Availability from MTBF and MTTR

Availability = MTBF ÷ (MTBF + MTTR). The grid below uses that formula, truncated rather than rounded, so you can see which lever moves you to the next nine.

MTBFMTTR 5 minMTTR 30 minMTTR 1 hMTTR 4 h
1 day (24 h)99.653%97.959%96%85.714%
1 week (168 h)99.95%99.703%99.408%97.674%
30 days (720 h)99.988%99.93%99.861%99.447%
90 days (2,160 h)99.996%99.976%99.953%99.815%

A service that fails once a week reaches 99.9% only if it recovers in about 10 minutes. One that fails once a month can take about 43 minutes per failure. Reading across a row shows the value of faster recovery; reading down a column shows the value of fewer failures.

What MTBF says about the chance of a failure

If failures arrive at a constant rate, the failure rate is λ = 1 ÷ MTBF and the chance of getting through a period t with no failure is e−t ÷ MTBF. With the MTBF of 239.5 hours from the example above:

  • Chance that a given day (24 h) passes with no failure: e−24 ÷ 239.5 = 90.5%.
  • Chance that a whole 30-day month (720 h) passes with no failure: e−720 ÷ 239.5 = 4.9%.
  • Chance of at least one failure before one MTBF has passed: 1 − e−1 = 63.2%, not 50%.

Software failures cluster around deploys, traffic peaks and expiring certificates, so treat these numbers as a rough guide, not a forecast.

MTBF of a system that needs every part

When a request needs every component, failure rates add up: λsystem = λ1 + λ2 + λ3. Three components with MTBFs of 1,000, 2,000 and 4,000 hours have rates of 0.001, 0.0005 and 0.00025 failures an hour; together 0.00175, so the system MTBF is 1 ÷ 0.00175 = 571.4 hours, shorter than the weakest part's.

Every dependency you add (a queue, a third-party API, a second database) shortens MTBF unless it is redundant. Watch each one: PostgreSQL, Redis and RabbitMQ guides show what to check.

Measuring MTBF from your incident history

Use incident records, not memory, and fix the definition of a failure before you count: a user-facing incident that opened from a confirmed failed check, for example, and not every alert. Then compute it per quarter so each figure rests on more than a couple of events.

Worked example: a quarter of 90 days has 2,160 hours. A service had 5 incidents with 3 hours of downtime in total. Operating time = 2,160 − 3 = 2,157 hours, so MTBF = 2,157 ÷ 5 = 431.4 hours, about 18 days. If the previous quarter's MTBF was 239.5 hours, failures have become about 45% less frequent (239.5 ÷ 431.4 = 0.56). Always print the count next to the figure: "431 hours (5 incidents)" is honest, "431 hours" alone invites over-reading. External checks give you the failure count even for the incidents nobody wrote down; the free uptime check shows what one check records.

Common mistakes

  • Including downtime in operating time. Use up time only. Dividing the whole period by the number of failures slightly inflates MTBF.
  • Very few data points. Three failures make a noisy average. Report the period and the count next to the number.
  • Mixing up MTBF and MTTF. MTTF (mean time to failure) is for things that are replaced rather than repaired. Services are repaired, so MTBF is the right term.
  • Counting every alert as a failure. Define a failure as a user-facing incident, or MTBF ends up measuring alert noise.
  • Reading MTBF as a guaranteed quiet period. An MTBF of 240 hours does not promise 10 failure-free days. With a constant failure rate there is a 63% chance of a failure before 240 hours have passed.
  • Adding dependencies without counting them. Failure rates of required parts add up, so every new dependency shortens the system’s MTBF unless it is redundant.

How Vigil handles MTBF

  • Vigil records every incident with its start and end time, so failure counts and downtime per monitor come from real data rather than memory.
  • The incident timeline shows MTTR, a dashboard tile shows MTTR over 30 days, and the printable SLA report gives availability against your target for any period.
  • The SLA calculator converts an availability figure into downtime per month and per year.

MTBF (mean time between failures): frequently asked questions

What is a good MTBF?

There is no general benchmark for software services, because it depends on the system and on how you count failures. Compare a service with its own history and look at the trend.

How is MTBF different from MTTF?

MTTF is used for parts that are replaced after failing, MTBF for systems that are repaired and put back into service. Online services are repaired, so MTBF fits.

Can I get availability from MTBF alone?

No, you also need MTTR. Availability = MTBF ÷ (MTBF + MTTR), so a long MTBF with very long repairs can still mean poor availability.

Vigil by PuzariCloud

Measure it instead of estimating it

Uptime and API checks, heartbeats, status pages, on-call, traces, errors, logs and real user monitoring in one place, with every feature on every plan, including Free.