Skip to main content

Guides / Monitoring concepts explained

How to Calculate Uptime

The uptime formula is (Total Time - Downtime) / Total Time x 100 = Uptime%. A site with 43 minutes of downtime in a 30-day month (43,200 minutes in total) has 99.9% uptime. The arithmetic is the easy part. What takes work is knowing what each percentage point costs you in minutes, and measuring downtime accurately enough for the formula to mean anything.

The uptime formula

For a server or resource with a known total lifetime:

(Overall Lifetime - Overall Downtime) / Overall Lifetime x 100% = Uptime

For a website you are actively monitoring, which is the far more common case since you rarely know a resource's true lifetime, you calculate uptime against your monitoring period instead:

(Monitored Time - Monitored Downtime) / Monitored Time x 100% = Uptime

Pick a window (a day, a month, a year), total up every minute the site was confirmed unreachable inside that window, and divide. The result is only as accurate as your downtime tracking, which is the actual argument for automated monitoring over a manual "did anyone notice an outage" estimate.

How to calculate downtime

Downtime is every continuous stretch your site was unreachable from the outside, counted to the second where possible rather than rounded to the nearest convenient number. Short blips add up: five two-minute outages in a month is 10 minutes of downtime, and that is easy to undercount if you rely on user reports instead of a monitor that logs every state change with a timestamp.

The nines: what each uptime tier means

99.9% uptime and 99.999% uptime sound close. In practice they are worlds apart. Here is what each tier allows before you have blown your target, per year and per day:

AvailabilityMax annual downtimeMax daily downtimePractical meaning
99.9% ("three nines")~8.77 hours~86.4 secondsThe floor most search engines and ad platforms treat as acceptable. Fine for most sites, but not a serious SLA commitment.
99.95%~4.38 hours~43.2 secondsA common mid-tier SaaS SLA, and a reasonable commercial target.
99.99% ("four nines")~52.6 minutes~8.64 secondsTreated as effectively always available by most platforms. The realistic ceiling for a well run, actively monitored site.
99.999% ("five nines")~5.26 minutes~0.864 secondsThe telecom-grade standard. Reachable with redundant infrastructure and near-perfect maintenance discipline, but a lot of engineering for most businesses to justify.

100% uptime is not a realistic target for anyone: maintenance windows, reboots and the occasional upstream failure make it structurally unreachable over any meaningful stretch of time. Four nines is the practical ceiling most teams should aim for. Five nines is a deliberate and expensive engineering commitment, not a default goal.

Common uptime formulas, in one place

  • Cloud/SLA availability: (Guaranteed Uptime - Downtime) / Guaranteed Uptime, the formula most cloud SLAs are written against.
  • MTBF (Mean Time Between Failures): Total Operational Time / Number of Failures, which says how often incidents happen independently of how long each one lasts.
  • Annual downtime budget at five nines: 86,400 seconds/day x 365 x 0.00001, about 315 seconds or 5.25 minutes per year.
  • Annual downtime budget at three nines: 1,440 minutes/day x 365 x 0.001, about 526 minutes or 8.77 hours per year.

How to hit a higher uptime number

The formula tells you where you stand. These are the levers that move the number:

  1. Choose hosting with a real track record, and verify a host's advertised uptime yourself instead of taking a marketing page's word for it.
  2. Monitor continuously from outside your own infrastructure. A monitor running from several independent locations catches outages your own server-side logging structurally cannot see, because a server that cannot reach the outside world cannot log that it is unreachable.
  3. Shrink maintenance windows. Every second of a planned reboot counts against uptime the same as an unplanned one, so batch and script the work.
  4. Run redundant infrastructure. A backup server or a secondary region lets you shift traffic during maintenance or a partial outage instead of taking the whole site down.

Measuring it instead of estimating it

All of the math above is only as good as the downtime data feeding it, which is why manual estimation ("I think we had one bad afternoon last month") rarely survives contact with an actual uptime report. HostTracker's uptime monitoring checks a site from 300+ checkpoints in 158 cities on the interval you set, logs every state change to the second, and produces the uptime percentage without a spreadsheet. The HTTP check guide covers the check that produces most of those state changes, and the rest of the monitoring concepts section covers the terms around this one.

FAQ

What formula determines a cloud provider's availability percentage? (Guaranteed Uptime - Downtime) / Guaranteed Uptime, expressed as a percentage. That is the standard cloud-SLA formula.

What measures the average time between failures? MTBF (Mean Time Between Failures) = Total Operational Time / Number of Failures.

How much downtime does five-nines availability allow per year? Less than 6 minutes: 86,400 seconds/day x 365 days x 0.001% is about 315 seconds.

What is the daily downtime budget at 99.9% availability? About 86 seconds per day, from 1,440 minutes/day x 0.1%.

Check it now

Run the free check against your own site - no account needed.

Website down checker

Monitor this permanently

Get alerted the moment it breaks: HostTracker checks from 300+ locations and notifies you by email, SMS, Slack, Telegram and more.

HostTracker features

More in this section: Monitoring concepts explained