Skip to content

KPIs

MTBF and MTTR, worked out.

Mean time between failures and mean time to repair, with the formulas, a worked example, and the one definition that decides whether the numbers mean anything: what counts as a failure.

3 min read · Updated 24 November 2026

The two numbers

Together they describe reliability (how often a machine stops) and maintainability (how long it stays stopped).

  • MTBF (mean time between failures) = uptime / number of failures. Higher is better: the machine runs longer between breakdowns.
  • MTTR (mean time to repair) = total repair time / number of repairs. Lower is better: when it breaks, it is back sooner.

First decide what a failure is

This is where most MTBF figures go wrong. If every stop counts, planned servicing makes a well-maintained machine look unreliable. If only big breakdowns count, the figure flatters.

Atlas Edge counts a failure as an unplanned lockout: one tripped by a rule or applied in an emergency. A lockout under a planned work order is maintenance, not a failure. Write your own definition down and keep it the same every month.

A worked example

An example, with made-up figures: in a 30-day month a compressor was registered for 720 hours. It was locked out for 18 hours in all, so its uptime was 702 hours. Two of those lockouts were failures: one released after 4 hours, one after 8.

MTBF = 702 / 2 = 351 hours. MTTR = (4 + 8) / 2 = 6 hours. Availability = 702 / 720 = 97.5 %.

Getting honest numbers

  • Take the times from the lockout record (lockout to release), not from memory at the end of the month.
  • With no failures in the month there is no MTBF to report. Say so instead of dividing by zero or writing infinity.
  • A failure still locked out has no repair time yet; leave it out of MTTR until it is released.
  • Record the cause of every stop when the machine is released. MTTR by cause (mechanical, electrical, waiting for parts) tells you where the hours actually go.

A month of lockouts, worked through

An example, with made-up figures: one compressor's lockout record for a 30-day month (720 hours). Only the unplanned ones count as failures.

An example lockout record. MTBF = 702 / 2 = 351 h; MTTR = (4 + 8) / 2 = 6 h; availability = 702 / 720 = 97.5 %
LockoutUnderHoursFailure?
3rd, 06:00Planned order: oil and filter change3No
11th, 14:20Rule trip: discharge temperature critical4Yes
19th, 09:00Planned order: separator element3No
24th, 22:10Emergency order: drive fault8Yes
Month4 lockouts182 failures

Edge cases

  • Several machines together: add up the uptime and the failures across them, then divide (720 h and 2 failures plus 700 h and 1 failure gives 1,420 / 3 = 473 h). Averaging each machine's MTBF gives a different, wrong number.
  • A failure that starts in one month and ends in the next: count the failure in the month it started, and split its hours by month for availability.
  • MTBF or MTTF: MTTF (mean time to failure) is for things that are replaced, not repaired, such as a bearing or a fuse. For a machine you repair, use MTBF.
  • MTBF is an average, not a promise. An MTBF of 351 hours does not mean the next failure comes in 351 hours; it describes the past, and a short period with two failures says little.
  • Uptime counts registered time, not running time: a machine that is available but idle is still up. Some plants use run hours instead; either works if the report says which.

How Atlas Edge works them out

Atlas Edge calculates availability, MTBF and MTTR per machine, area and plant every month from its lockout/tagout trail. Releasing a lockout asks for the cause of the downtime, so downtime by cause comes out as a Pareto chart, and the monthly report's Excel workbook carries the same figures with their formulas.

Sources

Guide

Quick answers.

What is the formula for MTBF?

MTBF = total uptime / number of failures in the period. Uptime is the time the machine was available, not locked out or decommissioned.

What is the formula for MTTR?

MTTR = total repair time / number of repairs, where each repair runs from the moment the machine was locked out to the moment it was released.

Does planned maintenance count as a failure in MTBF?

No. Planned maintenance is scheduled downtime. Counting it as a failure makes the best-maintained machines look the least reliable.

More guides

Bring your plant alive.

A gateway per shop area, the controllers you already have, and your first monthly report in the inbox on the 1st. Tell us about your floor.