Course contentsShow
← System Design
Lesson 1325 of 1,91933. Reliability Engineering FoundationsFree lesson

Availability Formula: MTBF and MTTR Relationship

Master the formula Availability = MTBF / (MTBF + MTTR) and how to apply it to real system scenarios.

Availability Formula: MTBF and MTTR Relationship

What you'll learn: How to calculate system availability using the precise relationship between MTBF and MTTR.

The Core Formula

Now that you understand MTBF (how long systems run between failures) and MTTR (how long repairs take), you can calculate availability — the percentage of time a system is operational:

Availability = MTBF / (MTBF + MTTR)

This formula tells you: out of the total time cycle (uptime + downtime), what fraction is uptime?

Understanding the Relationship

Think of availability like a light bulb's useful life:

  • MTBF = how long it stays on before burning out (e.g., 9,000 hours)
  • MTTR = how long it takes you to replace it (e.g., 1 hour)
  • Availability = 9,000 / (9,000 + 1) ≈ 0.9998889 = 99.989%

Real-World Example

Your database server:

  • MTBF = 720 hours (runs 30 days between failures)
  • MTTR = 0.5 hours (30 minutes to failover/restart)
Availability = 720 / (720 + 0.5)
            = 720 / 720.5
            = 0.999306
            = 99.93%

That's approximately "three nines" availability.

Key Insights

To improve availability, you have two levers:

  1. Increase MTBF (make failures rarer) — better hardware, redundancy, graceful degradation
  2. Decrease MTTR (fix failures faster) — automated failover, better monitoring, faster deployments

Notice: Reducing MTTR from 30 minutes to 3 minutes changes availability from 99.93% to 99.993% — a dramatic improvement from faster recovery alone!

Key Takeaway: Availability = MTBF / (MTBF + MTTR) quantifies uptime; improving either metric increases availability, but reducing MTTR often delivers faster wins than preventing all failures.