Tabellab
Data, tech & health

MTBF, MTTR and availability: formulas and a worked example

MTBF, the mean time between failures, measures how long a system runs before it fails. MTTR, the mean time to repair or restore, measures how long it takes to get it working again. Together they give the availability: availability = MTBF ÷ (MTBF + MTTR). This guide takes one quarter's incident log of a web application into Excel: six failures, an MTBF of 366.5 hours, an MTTR of 1.5 hours and an availability of 99.59%, well short of a 99.9% target that allows only 2.2 hours of downtime in the quarter.

Updated 19 Oct 2026 6 min read By Tabellab team

The formulas

  • MTBF = total uptime ÷ number of failures
  • MTTR = total downtime ÷ number of failures
  • MTTA = average time from alert to acknowledgement
  • Availability = MTBF ÷ (MTBF + MTTR)

The availability formula looks at one average cycle: the system runs for MTBF hours, fails, and is down for MTTR hours. The share of the cycle it is running is the availability. It is the same as total uptime ÷ total time, which makes a handy check.

Working through the incident log

The third quarter of 2026 has 92 days, or 2,208 hours. The web application failed six times and was down between 0.5 and 3.25 hours each time, 9.0 hours in total. That leaves 2,199 hours of uptime.

  • MTBF = 2,199 ÷ 6 = 366.5 hours, about 15 days between failures.
  • MTTR = 9.0 ÷ 6 = 1.50 hours.
  • Availability = 366.5 ÷ (366.5 + 1.5) = 99.59%, exactly the 2,199 ÷ 2,208 of the check row.
  • MTTA = the average of the six acknowledgement times = 10.5 minutes.

If your log holds timestamps instead of durations, remember that Excel stores date-times as days. With the start of the outage in B2 and the restore time in C2, =(C2-B2)*24 gives the hours down and =(C2-B2)*24*60 the minutes.

Worked example: one quarter's incident log

The six incidents and the hours in the quarter are the yellow inputs. MTTA, MTTR, MTBF, availability and the nines table are formulas.

Worked example: one quarter's incident log
ABC
1Incident, Q3 2026Minutes to acknowledgeHours to restore
212 Jul41.50
329 Jul120.75
414 Aug73.25
52 Sep250.50
617 Sep62.00
728 Sep91.00
8
9Hours in the quarter (92 days × 24)2,208
10Number of failures6
11Total downtime (hours)9.00
12Uptime (hours)2,199.00
13MTTA (minutes)10.5
14MTTR (hours)1.50
15MTBF (hours)366.5
16Availability = MTBF ÷ (MTBF + MTTR)99.59%
17Check: uptime ÷ hours in the quarter99.59%
18
19Availability targetDowntime per year (hours)Per 30-day month (minutes)
2099.00%87.60432.0
2199.50%43.80216.0
2299.90%8.7643.2
2399.95%4.3821.6
2499.99%0.884.3
Key formulas
  • C14=C11/C10MTTR = downtime ÷ failures
  • C15=C12/C10MTBF = uptime ÷ failures
  • C16=C15/(C15+C14)Availability
  • B22=(1-A22)*365*24Allowed downtime per year at 99.9%

The incident log is fictional. Downtime per year uses 365 days and per month 30 days. Check your SLA for how it treats planned maintenance.

Uptime, not calendar time, for MTBF

MTBF divides the uptime by the number of failures, because a system cannot fail while it is already down. Dividing the whole quarter, 2,208 ÷ 6 = 368 hours, gives the average time from the start of one failure to the start of the next. ITIL calls that the mean time between service incidents (MTBSI), which equals MTBF + MTTR. The difference is small here but grows with long outages.

For items that are replaced rather than repaired, such as a disk or a fan, the matching measure is MTTF, the mean time to failure. And an MTBF is a fleet average, not a lifetime: a disk rated at 1,000,000 hours will not last 114 years, it means that a large group of such disks sees about one failure per million operating hours in its service life.

What the R in MTTR means

MTTR is used for four different things, and teams that compare numbers often discover they measured different ones:

  • Mean time to repair: the hands-on time spent fixing the fault.
  • Mean time to recovery or restore: from the start of the outage until the service works again for users. ITIL 4 calls it MTRS, mean time to restore service.
  • Mean time to resolve: until the incident is fully closed, including the root-cause fix.
  • Mean time to respond: until someone starts working on it, close to MTTA.

For availability, use the time to restore, measured from the moment the outage began. If you measure from detection, the minutes before anyone noticed are missing, which is why many teams also track MTTD, the mean time to detect.

The nines: allowed downtime per year and month

Allowed downtime = (1 − availability target) × time in the period

Rows 19 to 24 of the example show the usual targets. 99.9%, three nines, allows 8.76 hours a year or 43.2 minutes in a 30-day month. 99.99% allows 0.88 hours, about 53 minutes, a year and 4.3 minutes a month. Five nines, 99.999%, leave about 5.3 minutes a year. Every extra nine cuts the allowed downtime by a factor of ten and usually costs much more in redundancy and on-call staff.

Back to the example: at 99.9%, the quarter allows 2,208 × 0.1% = 2.2 hours. The application was down for 9.0 hours. With six failures a quarter, it would need an MTTR below 2.2 ÷ 6 = 0.37 hours, about 22 minutes, to meet three nines.

MTBF or MTTR: which lever to pull?

Halving the number of failures doubles the MTBF and cuts the downtime to 4.5 hours, for an availability of 99.80%. Halving the MTTR to 0.75 hours gives exactly the same 4.5 hours and 99.80%. On paper the two levers are equal, but faster recovery is often the cheaper one: better alerts, runbooks, automated rollback and a clear on-call rota.

Availability also treats every hour the same. An hour down at peak time costs more than an hour at night, so to put a price on outages, combine their frequency and cost per incident as in the annual loss expectancy formula.

Common mistakes

  • Dividing the whole period by the failures for MTBF. Subtract the downtime first: MTBF uses uptime only.
  • Measuring MTTR from the acknowledgement. Downtime starts when the outage starts, not when someone picks up the ticket.
  • Mixing MTTR definitions. Repair, restore, resolve and respond times differ. Write down which one you report.
  • Treating planned maintenance inconsistently. Many SLAs exclude announced maintenance windows. Decide once and apply it to every month.
  • Averaging the availability of services that depend on each other. Two services in a chain, each at 99.9%, give 99.9% × 99.9% = 99.8% together.
  • Reading MTBF as a lifetime. It is an average rate across many units or many failures, not a promise for one device.

Frequently asked questions

How do you calculate availability from MTBF and MTTR?

Availability = MTBF ÷ (MTBF + MTTR). With an MTBF of 366.5 hours and an MTTR of 1.5 hours, availability is 366.5 ÷ 368 = 99.59%.

What is the difference between MTBF and MTTR?

MTBF measures reliability: the average running time between failures. MTTR measures maintainability: the average time it takes to repair or restore the system after a failure. A high MTBF and a low MTTR both raise availability.

How much downtime does 99.9% availability allow?

99.9% allows 8.76 hours of downtime per year, 43.2 minutes per 30-day month or about 10.1 minutes per week.

What is MTTA?

MTTA, the mean time to acknowledge, is the average time from an alert until someone takes ownership of the incident. It measures how responsive the on-call process is, while MTTR measures how long the outage lasts.

Practise it in a lab

Related guides

Reading is step one. Doing is step two.

Every guide links to a lab where you build the same calculation in an online spreadsheet and get instant feedback.

Open the lab