{
    "name": "Mean Time to Recover (MTTR) Calculator",
    "url": "https://calculators.geekmidst.com/calculators/incident-mean-time-to-recover-calculator",
    "markdown": "https://calculators.geekmidst.com/calculators/incident-mean-time-to-recover-calculator.md",
    "category": "IT, networking & security",
    "description": "Paste when each outage or incident began and when service was restored to get mean time to recover, with the median, 90th percentile and longest outage.",
    "summary": "Mean time to recover is the average time from the start of an incident to full restoration of service. It is the incident-duration measure behind availability, and a common DevOps delivery metric.",
    "also_called": [
        "Mean time to restore calculator",
        "MTTR calculator"
    ],
    "applies_to": "Worldwide",
    "last_updated": "2026-10-29",
    "computation": "Results are computed in the visitor’s browser on the HTML page. This API describes the calculator; it does not compute results.",
    "inputs": [
        {
            "name": "incidents",
            "label": "Incidents: started, restored (one per line)",
            "type": "textarea",
            "default": "2026-03-01 08:00, 2026-03-01 10:30\n2026-03-02 22:00, 2026-03-03 01:00\n60"
        }
    ],
    "outputs": [
        {
            "key": "mean_text",
            "label": "Mean time",
            "format": "text"
        },
        {
            "key": "mean_minutes",
            "label": "Mean",
            "format": "number"
        },
        {
            "key": "mean_hours",
            "label": "Mean",
            "format": "number"
        },
        {
            "key": "median_minutes",
            "label": "Median",
            "format": "number"
        },
        {
            "key": "p90_minutes",
            "label": "90th percentile (nearest rank)",
            "format": "number"
        },
        {
            "key": "longest_minutes",
            "label": "Longest",
            "format": "number"
        },
        {
            "key": "incidents",
            "label": "Incidents counted",
            "format": "integer"
        }
    ],
    "formula": {
        "text": "Time to recoverᵢ = Restoredᵢ − Startedᵢ;  MTTR = Σ Time to recoverᵢ ÷ n",
        "variables": {
            "Startedᵢ": "when incident i began affecting service",
            "Restoredᵢ": "when service was fully restored",
            "n": "number of incidents"
        }
    },
    "worked_example": {
        "inputs": {
            "incidents": "2026-03-01 08:00, 2026-03-01 10:30\n2026-03-02 22:00, 2026-03-03 01:00\n60"
        },
        "steps": [
            "Incident 1: 08:00 → 10:30 = 150 min. Incident 2: 22:00 → 01:00 next day = 180 min. Incident 3: 60 min as entered.",
            "Mean = (150 + 180 + 60) ÷ 3 = 130 min = 2 h 10 min.",
            "Sorted 60, 150, 180, so the median is 150 min."
        ],
        "result": "Across three incidents, mean time to recover is 2 h 10 min and the median is 2 h 30 min."
    },
    "interpretation": "Lower MTTR means shorter outages. Combined with mean time between failures it determines availability: Availability = MTBF ÷ (MTBF + MTTR).",
    "assumptions": [
        "Both timestamps on a line are in the same time zone; daylight-saving changes inside an interval are not adjusted."
    ],
    "limitations": [
        "Partial degradations need a clear rule for when an incident “starts” and “ends”, or MTTR will not be comparable over time."
    ],
    "rules": null,
    "faqs": [
        {
            "question": "Is MTTR measured from the start or from detection?",
            "answer": "For recovery it is normally from the start of customer impact, so detection delay is included. Some teams measure from detection; state which."
        },
        {
            "question": "How does MTTR relate to availability?",
            "answer": "Availability = MTBF ÷ (MTBF + MTTR). Halving MTTR has roughly the same effect on availability as doubling the time between failures."
        }
    ],
    "sources": [],
    "related": [
        {
            "name": "Availability Percentage Calculator",
            "url": "https://calculators.geekmidst.com/calculators/availability-percentage-calculator"
        },
        {
            "name": "Mean Time to Detect (MTTD) Calculator",
            "url": "https://calculators.geekmidst.com/calculators/incident-mean-time-to-detect-calculator"
        },
        {
            "name": "Mean Time to Respond Calculator",
            "url": "https://calculators.geekmidst.com/calculators/incident-mean-time-to-respond-calculator"
        },
        {
            "name": "Time Duration Calculator",
            "url": "https://calculators.geekmidst.com/calculators/time-duration-calculator"
        }
    ],
    "disclaimer": null,
    "publisher": "GM¹X CalcVerse"
}