Why every maintenance team needs MTBF, MTTR and availability
Ask a production manager how reliable a machine is and you often hear a story: "the filler keeps leaking", "the labeller was down all weekend". Stories are useful, but they do not tell you which machine to fix first, whether last quarter was better than this one, or how much output the line actually loses. Three numbers do: MTBF (mean time between failures), MTTR (mean time to repair) and availability. All three come straight from the failure log you probably already have, and Excel turns that log into the numbers in a few minutes.
This free first lesson is for maintenance planners, reliability engineers, production and plant managers, apprentices preparing for a technician exam and anyone who has been handed a CMMS export and asked for "the KPIs". You do not need statistics. If you can write =SUM() you can follow every step. We use the same fictional plant as the lab above: line 2 of Vantorp Bottling, with a filler, a capper and a labeller, and twelve breakdowns logged in the third quarter of 2026.
By the end you will know what each number means, how to calculate it per asset with COUNTIF and SUMIF, why the availability of a production line is always lower than that of its weakest machine, and which mistakes make reliability reports look better or worse than reality.
The core idea in plain words
A machine lives in two states: it is either able to run or it is broken and being repaired. Over a quarter, those states alternate: run, fail, repair, run again. If you add up all the running stretches and divide by the number of failures, you get the average length of a running stretch. That is the MTBF. If you add up all the repair stretches and divide by the number of failures, you get the average length of a repair. That is the MTTR.
- MTBF = (scheduled hours − downtime) ÷ number of failures. Higher is better. It tells you how often the machine stops.
- MTTR = downtime ÷ number of failures. Lower is better. It tells you how long each stop lasts, which reflects the repair itself plus waiting for a technician, a part or a permit.
- Availability = MTBF ÷ (MTBF + MTTR). The share of scheduled time the machine was able to run. With the definitions above it equals 1 − downtime ÷ scheduled hours.
Notice that MTBF and MTTR answer different questions. A machine can fail rarely but take ages to fix (high MTBF, high MTTR), or fail often but be back up in minutes (low MTBF, low MTTR). Both can have the same availability, yet they need completely different actions: the first calls for spare parts and repair skills, the second for root-cause analysis and preventive work. That is why a good report always shows all three side by side and never availability alone.
Worked example: Vantorp Bottling, line 2, Q3 2026
Here is the failure log from the lab. Each row is one breakdown with the date, the asset, the failure mode and the downtime in hours. Each machine was scheduled to run 1,560 hours in the quarter (for example two shifts on five days over thirteen weeks, rounded). All names and numbers are fictional and illustrative.
| No. | Date | Asset | Failure mode | Downtime (h) |
|---|---|---|---|---|
| 1 | 2026-07-03 | Filler | Valve seal leak | 2.50 |
| 2 | 2026-07-09 | Capper | Torque head jam | 1.00 |
| 3 | 2026-07-15 | Labeller | Glue pump fault | 3.00 |
| 4 | 2026-07-22 | Filler | Valve seal leak | 2.00 |
| 5 | 2026-07-30 | Capper | Torque head jam | 0.75 |
| 6 | 2026-08-06 | Filler | Level probe drift | 1.50 |
| 7 | 2026-08-14 | Labeller | Glue pump fault | 5.00 |
| 8 | 2026-08-21 | Capper | Servo drive trip | 2.25 |
| 9 | 2026-08-28 | Filler | Valve seal leak | 3.00 |
| 10 | 2026-09-08 | Capper | Torque head jam | 1.25 |
| 11 | 2026-09-17 | Filler | Level probe drift | 1.00 |
| 12 | 2026-09-26 | Capper | Servo drive trip | 1.75 |
Step one is to summarise the log per asset. The filler appears five times (rows 1, 4, 6, 9 and 11) with 2.5 + 2 + 1.5 + 3 + 1 = 10 hours of downtime. The capper also has five failures but only 7 hours down. The labeller failed just twice, but each glue pump fault took a long time, 8 hours in total. In Excel you never add these by hand: =COUNTIF($C$4:$C$15,A20) counts the rows where the asset column equals "Filler", and =SUMIF($C$4:$C$15,A20,$E$4:$E$15) adds the downtime of exactly those rows.
Step two turns counts into reliability figures. For the filler, the running time is 1,560 − 10 = 1,550 hours, spread over 5 failures, so the MTBF is 1,550 ÷ 5 = 310 hours. The MTTR is 10 ÷ 5 = 2 hours. Availability is 310 ÷ (310 + 2) = 99.36 %. The same arithmetic for the other two machines gives the summary below.
| Asset | Failures | Downtime (h) | MTBF (h) | MTTR (h) | Availability |
|---|---|---|---|---|---|
| Filler | 5 | 10.00 | 310.0 | 2.00 | 99.36 % |
| Capper | 5 | 7.00 | 310.6 | 1.40 | 99.55 % |
| Labeller | 2 | 8.00 | 776.0 | 4.00 | 99.49 % |
| Line (series) | 12 | 25.00 | 98.41 % |
Look at the labeller: its MTBF of 776 hours is more than twice that of the other machines, which sounds excellent. But its MTTR of 4 hours is also twice as long. When the labeller stops, it stays stopped. A planner reading only the MTBF would leave it alone. A planner reading MTTR as well would ask why a glue pump repair takes four hours, and might find that there is no spare pump on site and the technician has to strip and clean the old one. That single insight is worth more than the whole spreadsheet.
| Cell | Formula | Result for the filler row |
|---|---|---|
| B20 | =COUNTIF($C$4:$C$15,A20) | 5 |
| C20 | =SUMIF($C$4:$C$15,A20,$E$4:$E$15) | 10.00 |
| D20 | =($D$17-C20)/B20 | 310.0 |
| E20 | =C20/B20 | 2.00 |
| F20 | =D20/(D20+E20) | 99.36 % |
| F24 | =PRODUCT(F20:F22) | 98.41 % (line) |
From machines to the whole line: availability in series
A bottling line is a chain. If the filler stops, the capper and the labeller run out of bottles. If the labeller stops, the bottles back up and the filler has to stop too. Engineers call this a series system, and for a series system the availabilities multiply: A(line) = A(filler) × A(capper) × A(labeller) = 0.9936 × 0.9955 × 0.9949 = 98.41 %.
That result is lower than the weakest machine (99.36 %) and clearly lower than the average of the three (99.47 %). In hours, the line was unavailable for roughly 1.59 % of 1,560 hours, about 24.9 hours, which is almost exactly the 25 hours of downtime in the log. That is no coincidence: when failures rarely overlap, the line simply loses the downtime of every machine. The multiplication is the general rule, and it is what makes long lines with many machines so sensitive. Ten machines at 99 % each give a line availability of only about 90 %.
How to do it in Excel, step by step
- Open the lab above, or export your own failure log from the CMMS into Excel (in most systems: Reports > Work orders > Export to Excel or CSV). Keep one row per failure and columns for date, asset, failure mode and downtime in hours.
- Convert minutes to hours if necessary: in a helper column type
=E4/60and fill down with Ctrl+D. Mixing minutes and hours is the most common source of nonsense MTTR values. - Optional but recommended: click inside the log and press Ctrl+T (Insert > Table) so that new rows are picked up automatically by your formulas.
- Put the scheduled run hours in one clearly labelled input cell, here
D17= 1,560. Never type 1,560 inside a formula. - List the assets in the summary block (A20:A22). In B20 type
=COUNTIF($C$4:$C$15,A20). Press F4 while the cursor is in a range to add the dollar signs (Cmd+T on a Mac). - In C20 type
=SUMIF($C$4:$C$15,A20,$E$4:$E$15)for the downtime of that asset. - In D20 type
=($D$17-C20)/B20for the MTBF, in E20=C20/B20for the MTTR and in F20=D20/(D20+E20)for the availability. - Select B20:F22 and press Ctrl+D to copy the first row down to the other assets.
- Format F20:F22 as a percentage with two decimals: Ctrl+Shift+%, then Home > Number > Increase Decimal twice. Availability values sit close to 100 %, so zero decimals hide all the differences.
- In F24 type
=PRODUCT(F20:F22)for the line availability. Compare it with=AVERAGE(F20:F22)in a spare cell to see how much the average flatters the line. - Add a chart: select A19:A22 and C19:C22 (hold Ctrl for the second range), then Insert > Charts > Clustered Column. A one-glance chart of downtime per asset is often all a morning meeting needs.
=IFERROR(($D$17-C20)/B20,"no failures"). Do not replace it with the scheduled hours, because an MTBF based on zero failures is not a measurement, it is a lower bound.
Reading the numbers like a reliability engineer
Once the table is filled, resist the urge to rank machines by availability alone. Instead, read the three columns as a story. The filler has the most downtime and the lowest availability, and the log shows why: three of its five failures are valve seal leaks. A repeated failure mode on one asset is the classic signal for a root-cause analysis and a change in the preventive maintenance plan, for example replacing seals at a fixed interval before they leak. Lesson 5 of this course works out exactly what that interval should be.
The capper fails as often as the filler, but its repairs are short (1.4 hours on average). Short, frequent stops often point to adjustment problems, operator settings or a worn component that is "fixed" with a quick reset each time. They are cheap individually and expensive in total, and they also tend to be under-reported, because nobody writes up a ten-minute jam. If your capper log looks clean but operators complain, check whether short stops are being logged at all.
The labeller fails rarely but each repair is long. That is a spare parts and repair-procedure problem more than a reliability problem. Questions worth asking: is there a spare glue pump in stock, how long does it take to get a technician to the line, is there a written procedure? Lesson 6 of this course sizes such spare part stocks with a simple Poisson model.
Finally, compare the line availability with your target. If the plant plans for, say, 98 % availability on line 2, then 98.41 % is just above target, but the margin is small: one more long labeller failure would push the line below it. The value of the spreadsheet is that you can see that margin, and test it, by changing a single downtime cell.
Common mistakes and how to spot them
- Dividing the scheduled hours, not the running hours, by the failures.
=D17/B20gives 312 hours for the filler instead of 310. The error is small here but grows with downtime. Spot it by checking that MTBF + MTTR, multiplied by the failures, equals the scheduled hours. - Using COUNTIF where SUMIF is needed. COUNTIF returns the number of failures (5), SUMIF returns the downtime (10 h). If your "downtime" column contains only whole numbers that match the failure counts, you used the wrong function.
- Forgetting the dollar signs. Without
$C$4:$C$15the range slides down when you copy the formula, and the last asset silently misses some rows. Spot it by checking that the failures in column B add up to the number of rows in the log. - Averaging availabilities for a line. The average (99.47 %) ignores that any single stop stops the whole line. Use
PRODUCTfor machines in series. - Mixed units. One technician logs 45 (minutes), another 0.75 (hours). Sort the downtime column descending (Data > Sort Largest to Smallest) and look for suspiciously large values.
- Spelling differences in the asset name. "Filler", "filler " with a trailing space and "Filler 2" are three different criteria for COUNTIF. Clean names with
=TRIM()or, better, use a drop-down list (Data > Data Validation > List). - Mixing planned and unplanned stops. Planned changeovers and cleaning are not failures. Count them separately, or your MTBF will look terrible and drive the wrong decisions.
- Too few failures to trust. Two labeller failures are not a robust MTBF. Report the number of failures next to every MTBF so readers can judge the evidence themselves.
Quick reference
| Function or key | What it does here |
|---|---|
COUNTIF(range, criteria) | Counts the log rows for one asset, i.e. the number of failures. |
SUMIF(range, criteria, sum_range) | Adds the downtime hours of the rows that match the asset. |
COUNTIFS / SUMIFS | Same idea with several conditions, e.g. asset and failure mode, or asset and month. |
PRODUCT(range) | Multiplies the availabilities of machines in series. |
IFERROR(value, alt) | Shows a dash instead of #DIV/0! for an asset with zero failures. |
$ and F4 | Locks a range so it does not move when you copy the formula down (Cmd+T on a Mac). |
| Ctrl+D | Fills the formula from the top cell down through a selected column. |
| Ctrl+Shift+% | Formats the selection as a percentage. Add decimals with Home > Number > Increase Decimal. |
| Ctrl+T | Turns the log into an Excel Table so new rows are included automatically. |
Real-world uses of this sheet
- Monthly maintenance KPI report. Paste the CMMS export into the log each month, and the summary updates. Add a month column and switch to
COUNTIFSandSUMIFSto build a trend per asset. - Choosing the next improvement project. Rank assets by downtime and by repeated failure modes. The filler valve seals in our example are an obvious candidate for a root-cause analysis.
- Justifying a spare part or a second technician. A long MTTR with a short repair time on paper means waiting. Showing the hours lost to waiting is a stronger argument for a budget than any anecdote.
- Comparing lines or plants. Line availability calculated the same way on every site makes the comparison fair, and shows quickly which line has the weakest link.
- Preparing a capacity plan. Production planning needs realistic available hours. Multiply the scheduled hours by the line availability to get the hours you can actually plan to fill.
What you will build in the rest of this course
This first lab is free. The remaining 19 labs are part of the paid course (a one-time $9.90) and build a complete maintenance and reliability workbook on the same plant, step by step.
Failure Rate & Reliability over Time: R(t) = e^(−λt). You turn the MTBF into a failure rate and expected failures per year, build the reliability curve with EXP, and see how machines in series and redundant pumps change the odds of getting through a period without a breakdown.
Weibull Basics: Shape β from a Linearised Fit. Not every part fails at random. You fit a Weibull line to failure times with LN, SLOPE and INTERCEPT and read from β whether failures are early-life, random or wear-out, which decides whether preventive replacement makes sense at all.
Preventive vs Run-to-Failure: Cost per Operating Hour. You compare the cost per operating hour of running each asset to failure with a preventive plan, pick the cheaper strategy per asset with IF and add up the saving with SUMPRODUCT.
Optimal Preventive Interval: Cost-Rate Table & Chart. You build a cost-per-hour table for eight overhaul intervals, find the cheapest one with MIN and INDEX/MATCH, and chart the classic U-shaped cost curve.
Spare Parts Stock with Poisson Demand. You turn yearly part usage into demand during the lead time and use POISSON.DIST to find the smallest stock that meets a 95 % service level, and see the trade-off between stock value and the risk of a long outage like the labeller's.
Criticality Ranking: Risk Priority Number. You score failure modes with a risk priority number, rank them with RANK.EQ, sort them into A/B/C classes with a nested IF, and spot the high-severity modes that a ranking alone would hide.
Maintenance Backlog & Planner Workload. You roll the backlog forward week by week, express it in crew-weeks, size the planning team and estimate how long contractor support would need to bring the backlog back to target.
Summary
A failure log becomes a reliability report with five formulas. COUNTIF gives the failures, SUMIF the downtime, MTBF = (scheduled hours − downtime) ÷ failures, MTTR = downtime ÷ failures, and availability = MTBF ÷ (MTBF + MTTR). For machines in series, multiply the availabilities with PRODUCT. In our example the three machines each look better than 99 %, yet line 2 as a whole reaches only 98.41 %, and the labeller's long repairs and the filler's repeated seal leaks are where the next hours can be won.
Now scroll up and try the lab yourself: fill B20:F22 and F24, check each answer, and then change a downtime value in column E to see how one long repair moves the line availability.
Frequently asked questions
How do you calculate MTBF in Excel?
Subtract the downtime from the scheduled hours and divide by the number of failures, for example =($D$17-C20)/B20. Count the failures per asset with COUNTIF and add the downtime with SUMIF.
What is the difference between MTBF and MTTR?
MTBF is the average running time between failures and should be high. MTTR is the average time to repair a failure, including waiting, and should be low.
How is availability calculated from MTBF and MTTR?
Availability = MTBF ÷ (MTBF + MTTR). With MTBF based on running hours this equals 1 minus downtime divided by scheduled hours.
How do you calculate the availability of machines in series?
Multiply the individual availabilities, for example =PRODUCT(F20:F22). The result is always lower than the weakest machine because the line stops when any machine stops.
Should planned maintenance be included in MTBF?
Usually not. Planned stops such as preventive maintenance or changeovers are not failures, so most teams count only unplanned breakdowns and track planned downtime separately. Whatever you choose, document it and keep it consistent.
What if a machine had no failures in the period?
The MTBF formula divides by zero. Wrap it in IFERROR and report "no failures" with the number of running hours, because zero failures only tell you the MTBF is at least that long.
Keep going: Maintenance & Reliability: MTBF, MTTR, Preventive Intervals & Spare Parts
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.
- Failure Rate & Reliability over Time: R(t) = e^(−λt)
- Weibull Basics: Shape β from a Linearised Fit
- Preventive vs Run-to-Failure: Cost per Operating Hour
- Optimal Preventive Interval: Cost-Rate Table & Chart
- Spare Parts Stock with Poisson Demand
- Criticality Ranking: Risk Priority Number
- Maintenance Backlog & Planner Workload
- Cleaning the Work-Order Export: Minutes vs Hours, Planned Stops & Repeat Failures
- Anatomy of MTTR: Detection, Waiting, Repair & Restart Time
- Weibull in Use: B10 Life, Hazard Rate & Conditional Reliability
- Reliability Growth: Is the Filler Getting Better? A Crow-AMSAA Plot
- Age-Based Replacement: Cost Rate with a Trapezoid Integral
- Condition Monitoring: Vibration Trend, Alarm Week & P-F Inspection Interval
- Spares by Total Cost: Holding Cost vs Expected Stock-Outs
- Repair or Replace? Economic Life with Equivalent Annual Cost
- PM Compliance & Planned Work Share: Due Windows, Overdue PMs & a Highlight Rule
- Weekly Schedule Loading by Craft: Capacity, Priority Cut-Off & Pushed Jobs
- Wrench Time from a Work-Sampling Study: Shares, Margin of Error & Sample Size
- Final Project: 12-Month Maintenance & Reliability Dashboard for Line 2