Uptime percentage is a promise: “the service was available 99.9% of the time.” The number only means something if you know the formula behind it and the window it was measured over. This article gives you both, plus a table you can quote in SLA discussions.
The formula
The basic uptime formula is:
uptime % = (total time − downtime) / total time × 100
For example, if a service was down for 45 minutes during a 30-day month (43,200 minutes):
uptime = (43,200 − 45) / 43,200 × 100 = 99.896%
Note the window. The same 45 minutes are 99.896% for the month, but 99.517% if you measure over a single week. Always state the window — “99.9% monthly” and “99.9% yearly” are very different promises (see the table below).
Downtime allowance: what each “nine” really buys
| Uptime | Per day | Per 30-day month | Per year |
|---|---|---|---|
| 99% (“two nines”) | 14.4 min | 7.2 h | 3.65 days |
| 99.9% (“three nines”) | 1.44 min | 43.2 min | 8.77 h |
| 99.99% (“four nines”) | 8.6 s | 4.32 min | 52.6 min |
| 99.999% (“five nines”) | 0.86 s | 25.9 s | 5.26 min |
The arithmetic is simple: downtime = (1 − SLA) × period. A year is 525,600 minutes, so 0.1% of a year is 525.6 minutes ≈ 8.77 hours. That is the whole “three nines” promise — less than nine hours of downtime per year.
Converting any uptime percentage to minutes
Given a percentage and a window in minutes, the answer is one multiplication:
downtime_min = (100 − uptime) / 100 × window_min
Worked examples:
- 99.5% over a 30-day month: 0.5% × 43,200 = 216 minutes (3.6 hours).
- 99.9% over a year: 0.1% × 525,600 = 525.6 minutes (8.77 hours).
- 99.99% over a week (10,080 min): 0.01% × 10,080 = 1.008 minutes (about 60 seconds).
Measuring uptime in practice
The formula assumes you know your downtime. That means measuring availability, not guessing. A minimal DIY probe — one HTTP check per hour:
while true; do
code=$(curl -s -o /dev/null -w '%{http_code}' https://example.com/)
[ "$code" != 200 ] && echo "$(date -Is) down: HTTP $code"
sleep 3600
done
Hourly probes are fine for a rough estimate, but they miss short incidents entirely — a 5-minute outage between two probes is invisible. For real numbers you want checks every minute or faster, from more than one location. That is exactly what a watchlist with monitoring does: it re-checks your domains on a schedule, keeps the history and flags regressions, so the downtime column of your SLA report is measured, not reconstructed from memory.
For a one-off audit of many hosts at once, a bulk HTTP status checker shows every status code and redirect chain in one report — useful for finding “technically alive but broken” endpoints (200 responses that are actually error pages, wrong redirects after a migration and so on). And if latency is part of your availability definition, TTFB checks tell you how slow the “up” servers actually are.
Common mistakes
- Wrong window. A provider quoting “99.9%” without a window may mean per month (43.2 min allowed) — or per year (8.77 h allowed). A factor of 12.
- Planned maintenance. Decide and document whether scheduled windows count as downtime. Many SLAs exclude them; then the metric measures the promise, not the experience.
- Averaging percentages. The uptime of a chain is not the average of its parts. If your LB is 99.9% and your backend 99.9%, the end-to-end figure is ≈ 99.8%: probabilities multiply, and the weakest link wins.
- Counting 200s as uptime. A page can answer 200 and still be broken (empty page, wrong content after a failed deploy). Availability probes should assert content or size, not just the status code.
Check your hosts now: run a bulk HTTP status check across your domain list, put the critical ones on a watchlist, and let the measured data argue in your next SLA conversation.