OFFLINE TOOL / MTBF / MTTR V1.5
RELIABILITY / 022OFFLINE

MTBF and MTTR calculator

Mean time between failures and mean time to repair from totals or a failure log, with chi-square confidence bounds, availability, failure rate and reliability per machine.

Calculate from
Confidence and mission time (both)

Intervals and R(t) assume a constant failure rate (exponential times between failures). A period of records that simply ends on a date is “at a fixed time” (time-terminated).

Failure log input

Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

Columns

Start, End and Failures are found by their header names; without Start and End the number column is the repair duration.

Machine  Start             End
CNC-1    2026-03-02 06:40  2026-03-02 08:10
Long format
1 row = 1 failure

Columns: tab, ; or ,
Decimals: 12,5 or 12.5

Paste measurements to start.

One row per failure: the machine and the start and end of the repair (2026-03-02 14:05 or 02.03.2026 14:05), or the repair duration. A Failures column lets one row stand for several failures. Operating time = scheduled time − repair time.

Runs in this browser. Data is not uploaded or stored.

Failure log results

—MTBF (all machines)
—MTTR
—Inherent availability
—Reliability R(t)

    Totals input

    Operating time is the time the equipment was running or ready to run, without the repair time. Repairs default to the number of failures.

    Runs in this browser. Data is not uploaded or stored.

    Totals results

    —MTBF
    —MTTR
    —Inherent availability
    —Reliability R(t)

      How MTBF and MTTR are calculated

      Mean time between failures (MTBF) says how long repairable equipment runs, on average, between two failures; mean time to repair (MTTR) how long it takes to get it running again. Together they give the inherent availability and the failure rate, the figures behind the availability loss of OEE and behind maintenance planning.

      Formulas

      Worked example (the tool's example)

      1. Three CNC machines were scheduled for 480 h each in March. The log has 12 failures: 4 on CNC-1, 2 on CNC-2, 6 on CNC-3.
      2. CNC-1 was down 90 + 55 + 165 + 40 = 350 min = 5.83 h, so it operated 474.17 h: MTBF = 474.17 / 4 = 118.5 h and MTTR = 5.83 / 4 = 1.46 h.
      3. All machines: 1422.17 operating hours and 17.83 repair hours for 12 failures: MTBF = 118.5 h, MTTR = 1.49 h, Ai = 118.5 / (118.5 + 1.49) = 98.76 %.
      4. 90 % interval, time-terminated: 2 × 1422.17 / χ²(0.95; 26) = 2844.33 / 38.885 = 73.1 h to 2 × 1422.17 / χ²(0.05; 24) = 2844.33 / 13.848 = 205.4 h. Twelve failures leave a wide range.
      5. Reliability over an 8-hour shift: R(8) = exp(−8 / 118.5) = 0.935; at the lower bound 73.1 h it is 0.896.

      Common mistakes

      Input and files

      Questions

      Is MTBF the time a machine runs before it fails?
      No. MTBF is an average over many failures, not a guaranteed failure-free time. With a constant failure rate only about 37 % of the units are still running at a time equal to the MTBF; most fail before it.
      Should the repair time be taken off the operating time?
      Yes. MTBF counts the time the equipment was running or ready to run, so time spent down for repair is not part of it. The calculator subtracts each machine’s repair time from its scheduled time.
      Why use 2r + 2 degrees of freedom for the lower bound?
      When the records end at a fixed date rather than at a failure (a time-terminated test), the next failure has not happened yet, so the lower bound allows for one more failure: chi-square with 2r + 2 degrees of freedom. A test stopped at a failure (failure-terminated) uses 2r.
      When is R(t) = exp(−t / MTBF) wrong?
      When the failure rate is not constant: early-life failures make the rate fall, wear-out makes it rise. Plot the failure times or fit a Weibull distribution; a Weibull shape clearly different from 1 means the exponential formulas understate or overstate the risk.