Toolvito

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

For an SLO counted on requests or other events: the bad requests it allows in the window, and the budget used and left.

Your values

The share of good events, or of good time, that you aim for in the window, such as 99.9. It is your own target.

All requests that count for the SLO in the whole window, good and bad. Use your forecast for the window, or the count so far.

Requests that broke your rule for a good request, such as a server error or an answer slower than your limit.

The time over which the SLO is counted, often a rolling 28 or 30 days, or a calendar month.

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.

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

  1. Choose how your SLO is counted: by a count of requests (events) or by time.
  2. Type the SLO as a percentage, such as 99.9, or pick a common target.
  3. Type the valid requests in the window and the bad requests so far, or the window and the bad time so far.
  4. 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

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.

Related tools