SLOs and Error Budgets Explained Simply
Your shop's checkout failed for 20 minutes last week. Now the product manager wants to launch a new payment option on Friday, and the on-call engineer wants to wait. Without an agreed number, whoever argues hardest wins. This lesson explains SLOs and error budgets, the numbers that settle it: three terms in plain words, why 100 percent is the wrong target, how to calculate a budget and how teams spend it.
SLI, SLO and SLA in plain words
Lesson 1 introduced the service level objective (SLO), an agreed reliability target, and the error budget, the failure it allows. Two more terms sit beside the SLO, and each answers a different question.
- SLI (service level indicator): what do you measure? A number showing how well users are served, usually good events divided by valid events, the ones that count. An event is usually one request. Example: 99.95 percent of checkout requests succeeded.
- SLO: what do you aim for? A target for an SLI over a window, the stretch of time it is measured over. Example: 99.9 percent of checkout requests succeed over 30 days.
- SLA (service level agreement): what do you promise? A contract with customers that names a consequence for missing a target, usually a service credit, a discount on the next bill.
To tell an SLO from an SLA, ask what happens when the target is missed. Money owed under a contract means an SLA; the team changing how it works means an SLO. Companies usually set the SLA looser, for example 99.5 percent against an SLO of 99.9, so the team fixes trouble before it owes anyone money.
In the analogy, the register is the SLI and the 75 percent rule is the SLO. Lesson 5 covers choosing good SLIs, and SLI, SLO and SLA Explained shows them as monitoring queries.
Why 100 percent is the wrong target
Aiming for a service that never fails sounds responsible. Google's SRE book calls 100 percent the wrong target for almost everything, for three reasons.
- It costs too much. Reliability is often counted in nines: 99.9 percent is "three nines". Each extra nine costs far more than the last, in spare servers, extra locations and slower, more careful work (see What Is Uptime?).
- Users cannot tell. Their phones, Wi-Fi and mobile networks fail far more often than a well-run service. The book's example: someone on a 99 percent reliable smartphone cannot tell 99.99 from 99.999 percent.
- It stops all change. Every release carries some risk. If no failure is allowed, the only safe plan is to change nothing, not even bug or security fixes, which leaves known problems in place.
So the SLO comes from what users need, not from perfection, and the gap to 100 percent is room for change.
From SLO to error budget
The formula is short: error budget = 100 percent − SLO. A 99.9 percent SLO leaves 0.1 percent, or 1 failed request in every 1,000. The flowchart shows the steps, and the two units you can count the budget in.
In time, 30 days hold 30 × 24 × 60 = 43,200 minutes, and 0.1 percent of that is 43.2 minutes. That is the allowed downtime, time when the service fails every request: a full outage could last 43.2 minutes before the SLO is broken.
In requests, multiply by your traffic. If checkout serves, for example, 2 million requests in 30 days, up to 2,000 may fail. Count the budget in your SLI's unit: for a request-based SLO, the minutes are a translation that assumes steady traffic.
Most outages are partial and spend the budget more slowly. If 1 in 4 requests fail for 20 minutes, that equals 5 minutes of full outage at steady traffic. With a request-based budget, an outage in the busiest hour also costs more than the same minutes at 3 a.m., because more requests fail.
The table shows how the budget shrinks as the SLO gains nines.
| SLO | Error budget | Allowed downtime per 30 days | Failed requests allowed per million |
|---|---|---|---|
| 99% (two nines) | 1% | 432 minutes, about 7.2 hours | 10,000 |
| 99.9% (three nines) | 0.1% | 43.2 minutes | 1,000 |
| 99.99% (four nines) | 0.01% | 4.32 minutes, about 4 minutes 19 seconds | 100 |
Each extra nine divides the budget by ten. At 99.99 percent, a bad release that fails every request for the five minutes it takes to undo would spend more than a whole month's budget.
Spending the budget
The budget exists to be spent. Anything that makes users' requests fail spends it, planned or not:
- Releases: a new version with a bug, or a deploy that drops requests while servers restart.
- Experiments: deliberate tests on real traffic, such as a new database setting tried on some users, that go wrong.
- Maintenance: planned work, such as a database upgrade, that takes the service offline for a few minutes.
- Incidents: unplanned problems that hurt users, which often burn budget fastest.
A change that fails no requests spends nothing: the budget counts failures users see, not releases. In the illustrative month below, the day-4 release failed 1 in 4 checkout requests for 48 minutes, which counts as 12 minutes of full outage. Maintenance took 6 minutes and an outage 15, leaving 10.2.
Like a student who has used 20 of their 25 days, the team can see how little room is left. What it should then do, such as allowing only low-risk changes, belongs in an error budget policy, a written agreement covered in lesson 6.
Why budgets help teams
Product teams are judged on shipping features, operations teams on keeping things stable. Without a shared number, every risky launch becomes a debate.
An error budget turns the debate into a reading. Product and engineering agreed the SLO in advance and monitoring measures the result, so "can we ship this?" becomes "how much budget is left?". Plenty left means ship; almost none means slow down.
It also gives both sides the same incentive. Developers who want to ship often also want to avoid the incidents that would eat their budget, so they push for safer releases and better tests. A budget left almost untouched month after month is a signal too: the team could take more risk, or the SLO is stricter than users need.
Here the analogy stretches. A good student tries to miss as few days as possible, but a team is meant to spend its budget on change. And real SLOs are far stricter: 75 percent of a 30-day month would allow 7.5 days of outage.
Check yourself
Your SLO is 99.9 percent over 30 days. For one hour, 1 in 10 requests fail, with steady traffic. How much of the 43.2-minute budget did that hour use?
About 6 minutes, roughly 14 percent. A tenth of an hour's requests failed, which equals 6 minutes of full outage, because the budget counts failed requests, not minutes of alarm.
A manager wants to raise the SLO from 99.9 to 99.99 percent "to be safe". What happens to the error budget?
It shrinks tenfold, to about 4.3 minutes per 30 days. One bad release could spend it all, so releases slow sharply and costs rise, while users would hardly notice.
Your team shipped 20 releases this month, and none failed a single request. How much error budget did the releases spend?
None. The budget counts failures users see, not changes, so a release spends it only when it causes errors.
Go deeper
- The beginner’s guide to Observability: you can only spend a budget you can measure; this post tours the logs, traces and metrics behind SLIs.