How to calculate uptime, and what 99.9% really allows
The uptime formula, a table of allowed downtime for every common SLA, and the choices that change the number: partial outages, maintenance and missing data.
"99.9% uptime" sounds precise, but two tools can report different numbers for the same week. Here's the arithmetic, the table everyone ends up needing, and the decisions hidden inside the number.
The basic formula
uptime = time it was up / time you measured
Over a 30-day month (43,200 minutes), 43 minutes down is
(43,200 − 43) / 43,200 = 99.90%.
How much downtime each target allows
| Target | Per year | Per 30-day month | Per week |
|---|---|---|---|
| 99% | 3 days 15 h 36 min | 7 h 12 min | 1 h 40 min 48 s |
| 99.5% | 1 day 19 h 48 min | 3 h 36 min | 50 min 24 s |
| 99.9% | 8 h 45 min 36 s | 43 min 12 s | 10 min 4.8 s |
| 99.95% | 4 h 22 min 48 s | 21 min 36 s | 5 min 2.4 s |
| 99.99% | 52 min 33.6 s | 4 min 19.2 s | 1 min 0.48 s |
| 99.999% | 5 min 15.4 s | 25.9 s | 6.05 s |
A year here is 365 days. Each extra nine cuts the budget tenfold: at 99.99%, one slow deploy can use a month's allowance.
The choices inside the number
What counts as down? A service that's slow isn't the same as one that's off. Most status pages separate degraded performance, partial outage and major outage. If a partial outage counts fully as down, a problem affecting 5% of requests costs as much as a total blackout. If it doesn't count at all, a page can show 100% while customers suffer.
Does maintenance count? If you announced a window and kept to it, many teams leave it out of the denominator. Then your number reflects surprises, not planned work.
What about gaps in the data? If the monitor itself was down, you don't know whether the service was up. Counting the gap as up flatters you; counting it as down punishes you for your monitoring's problems. Leaving it out of the denominator is the honest middle.
Rounding. 99.996% rounds to 100.00% unless you round down. A page that says 100.00% should mean no downtime at all.
How yasp counts
yasp makes those choices explicit, per component, over the time each one spent in each status:
uptime = 1 − (major + 0.3 × partial) / (window − maintenance − no data)
- Degraded performance counts as up. It's working, slowly.
- A partial outage counts as 30% down, a major outage as fully down.
- Maintenance and periods without data are left out of the window.
- Percentages are rounded down to two decimals, so 100.00% appears only when there was no downtime at all.
Each day's bar on a yasp status page is split by how long the component spent in each status, so a 20-minute outage looks like 20 minutes, not a whole red day.
Measure it where your users are
The number is only as good as the checks behind it. Checking from one place can't tell "the service is down" from "the path to it is down". yasp can check from several probes and count a failure once they agree.
Try yasp
Click through the read-only live demo, or install it in a few minutes.