Uptime Calculator: SLA Nines and Allowed Downtime
By FindMySum · Last reviewed
An uptime calculator turns a service level target such as 99.9% into the downtime it allows, so you can see what "three nines" means in minutes before you sign up to it. Availability is the share of time a service works; the rest is the downtime budget. Pick an availability percentage and the calculator spreads that budget over a day, a week, a month, a quarter and a year. Or enter the downtime you actually had and it gives the availability and the number of nines.
The formula
Availability and downtime are two sides of one fraction:
allowed downtime = (1 − availability) × length of the period
availability = 1 − downtime ÷ length of the period
At 99.9%, the unavailable share is 0.001. A day has 86,400 seconds, so the daily budget is 86.4 seconds, a little under a minute and a half. A week has 604,800 seconds, giving 10 minutes and 5 seconds. A year of 365.2425 days has 31,556,952 seconds, giving 31,557 seconds, or 8 hours 45 minutes 57 seconds.
Counting the nines
People describe availability by its nines: 99% is two nines, 99.9% three, 99.99% four and 99.999% five. Each extra nine cuts the downtime budget by a factor of ten, which is why the jump from three to four nines is so expensive in practice. Three nines allows almost 44 minutes a month, enough to restart a database by hand. Four nines allows about 4 minutes 23 seconds, so failover has to be automatic. Five nines allows 26 seconds a month, less than many deployments take.
Targets between whole nines are common, such as 99.95%. The calculator gives a continuous count as well: nines = −log10(1 − availability). 99.95% works out at 3.3 nines, because its budget is half that of 99.9%, not a tenth of it. It also shows the whole leading nines, the everyday way of saying it ("three and a half nines").
Why the month matters
The length of a "month" is a convention, and different tools pick different ones. This calculator lets you choose instead of picking silently:
- Year length. The default is the average Gregorian year of 365.2425 days, which spreads leap years over the 400-year cycle of the calendar. You can switch to a 365-day year or a 366-day leap year.
- Month length. The default is a twelfth of the year (30.44 days on the average year). Cloud providers usually measure per calendar month, so you can fix the month at 28, 29, 30 or 31 days instead.
The difference is small but real. At 99.9%, a 31-day month allows 44 minutes 38 seconds and a 28-day February only 40 minutes 19 seconds. If your contract measures by calendar month, the shortest month is the strictest one.
Worked example
The calculator opens at 99.9% availability on the average year:
| Period | Length | Allowed downtime |
|---|---|---|
| Day | 1 day | 1m 26.4s |
| Week | 7 days | 10m 4.8s |
| Month | 30.44 days | 43m 49.7s |
| Quarter | 91.31 days | 2h 11m 29s |
| Year | 365.2425 days | 8h 45m 57s |
Switch to "Availability (from measured downtime)" to go the other way. Thirty minutes of downtime in a 30-day month is 1,800 seconds out of 2,592,000, so availability is 1 − 1,800 ÷ 2,592,000 = 99.93%, comfortably inside a 99.9% target but outside 99.95%.
Availability of systems with several parts
A request often passes through several components: a load balancer, an application server and a database. If every one of them has to work, their availabilities multiply. Three components at 99.9% each give 0.999³ = 99.7%, more than double the downtime of any single part. This is why the availability of a whole system is lower than that of its weakest component.
Redundancy works the other way. If two independent copies can each serve the traffic, the system is down only when both are down at once: two 99% copies give 1 − 0.01² = 99.99%. The catch is the word "independent". Copies that share a power feed, a network, a configuration change or a software bug tend to fail together, and real gains are smaller than the formula suggests.
Choosing a target
Higher availability costs more: redundant hardware in more locations, automatic failover, on-call staff, slower and more careful releases. A useful question is how much downtime your users notice and what it costs them. A public API that others build on may need 99.95% or more. An internal reporting tool used during office hours can live with 99% measured around the clock, because most of its downtime would fall at night.
It also helps to keep the internal objective tighter than the external agreement. If you promise customers 99.9%, aim internally for 99.95%, so a bad month uses the internal margin before it breaks the contract. Measure over a rolling window (often 28 or 30 days) and treat the remaining budget as a signal for when to slow down releases.
What the calculator does not decide
It does the arithmetic once you know what counts as down. Providers define that in their agreements: some count a minute as down when the error rate passes a threshold, some exclude announced maintenance, and most exclude outages caused by the customer. Service credits, the money back when a provider misses its SLA, depend on those terms too and are not calculated here.
More questions
What is an error budget?
The downtime your availability target allows, treated as something the team can spend. A 99.9% monthly objective leaves about 43 minutes of budget a month. While budget remains, the team can ship changes; when an incident uses it up, the usual policy is to slow releases and work on reliability until the window rolls forward.
What is the difference between an SLA, an SLO and an SLI?
An SLI (service level indicator) is the measurement, such as the share of successful requests. An SLO (objective) is the internal target for it, such as 99.95% over 30 days. An SLA (agreement) is the contract with customers, usually looser than the SLO, with service credits if the provider misses it.
Should availability be measured by time or by requests?
Both are common. Time-based availability counts minutes in which the service was down. Request-based availability divides successful requests by all requests, so a five-minute outage at 3 a.m. costs less than one at peak. The arithmetic for the allowed share of failures is the same: one minus the target.
Does planned maintenance count as downtime?
It depends on the agreement. Many SLAs exclude announced maintenance windows, and most exclude outages caused by the customer or by events outside the provider's control. If maintenance is excluded, subtract its hours from the period before working out availability.
How do I report uptime for a month with a long outage?
Divide the minutes the service was up by the minutes in that calendar month. A 3-hour outage in a 30-day month (43,200 minutes) gives 1 − 180 ÷ 43,200 = 99.58%. Use the 30, 31 or 28-day month option to match the month you are reporting.
Sources
- Google, Site Reliability Engineering, chapter 3: Embracing Risk (availability and error budgets)
- Google, The Site Reliability Workbook, chapter 2: Implementing SLOs
- Amazon Compute Service Level Agreement (monthly uptime percentage definition)
- ISO 8601, Date and time format (the Gregorian calendar the 365.2425-day average year comes from)
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.