Works on this device
Error Budget Calculator
Turn a service level objective (SLO) such as 99.9% into its error budget: the bad requests or the bad time it allows in a window. Add what went wrong so far to see the budget used and left. You type every figure; nothing is measured.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
Error budget in plain words
- A service level objective (SLO) is a target for the share of good events, such as 99.9% of requests answered without an error and fast enough.
- The error budget is the rest: 100% − SLO. At 99.9% it is 0.1%, so 1,000 bad requests in a million, or 43.2 bad minutes in a 30-day window.
- Which events count as bad is your own rule, the same as in your SLO. A server error (HTTP 5xx) or an answer slower than your limit are common rules.
- The window is the time over which the SLO is counted, often a rolling 28 or 30 days, or a calendar month.
How to use this calculator
- Choose how your SLO is counted: by a count of requests (events) or by time.
- Type the SLO as a percentage, such as 99.9, or pick a common target.
- Type the valid requests in the window and the bad requests so far, or the window and the bad time so far.
- Choose Calculate. You get the budget, the share used, what is left and whether the SLO is still met.
The formulas
- Bad requests allowed = (1 − SLO ÷ 100) × valid requests in the window.
- Bad time allowed = (1 − SLO ÷ 100) × length of the window. A day has 86,400 seconds.
- Budget used = bad so far ÷ bad allowed. Budget left = bad allowed − bad so far.
- SLO from a budget = 1 − bad allowed ÷ all events (or ÷ the length of the window).
- All the arithmetic is done with exact fractions, so 99.95% of 2,000,000 requests is exactly 1,000.
Worked examples
By requests: an SLO of 99.9% with 1,000,000 valid requests allows 0.001 × 1,000,000 = 1,000 bad requests. After 250 bad requests, 25% of the budget is used and 750 bad requests are left.
By time: an SLO of 99.9% over 30 days allows 0.001 × 2,592,000 = 2,592 seconds, which is 43 minutes 12 seconds. After 30.5 bad minutes, about 70.6% of the budget is used and 12 minutes 42 seconds are left.
The other way: a budget of 500 bad requests in 1,000,000 is an SLO of 99.95%.
Other tools for the same subject
- To see how fast the budget is used and when it runs out, use the SLO Burn Rate Calculator.
- For the downtime that an uptime target allows in a day, a month or a year, use the Downtime Allowance Calculator. Its figures are the same as the bad time allowed here.
- For the uptime percentage of a period from its downtime or an incident log, use the Uptime Percentage Calculator.
Limits you should know
- The budget is only as good as your counts. If the number of requests is a forecast, the budget moves when the real count differs.
- The tool does not decide which events are bad, does not read any monitoring data and gives no SLO as advice.
- A time-based SLO counts whole minutes (or other slices) as good or bad; a request-based SLO counts each request. The two give different budgets for the same service.