HTTP retry budget calculator
See how request timeouts and backoff consume a total deadline before adding another retry.
Set the time budget
All time values are milliseconds. Four attempts means one initial request and up to three retries. This calculator sends no HTTP requests.
Your conservative retry budget
3 of 4 full attempts fit · using maximum backoff waits and full per-attempt timeouts.
5,400 msAll configured attempts + maximum waits
4,000 msTime reserved for requests
1,400 msMaximum cumulative wait
The full schedule exceeds your budget by 400 ms. Reduce attempts or reconsider the timeouts and waits. 1,400 ms remains after the last full attempt that fits.
A finish exactly at the budget is counted as fitting. Reserve additional margin for overhead in a real client.
Maximum-wait attempt timeline
Times are measured from the start of the operation. Rows beyond the budget are hypothetical; the calculator does not recommend sending those attempts.
| Attempt | Capped backoff | Wait before attempt | Start | Finish | Budget result |
|---|---|---|---|---|---|
| 1 (initial) | 0 ms | 0 ms | 0 ms | 1000 ms | FITS |
| 2 | 200 ms | 200 ms | 1200 ms | 2200 ms | FITS |
| 3 | 400 ms | 400 ms | 2600 ms | 3600 ms | FITS |
| 4 | 800 ms | 800 ms | 4400 ms | 5400 ms | EXCEEDS |
What full jitter changes
If each retry samples a delay from zero up to its capped backoff, then applies the server floor using max(floor, sampled delay), its possible wait lies between the bounds below. This tool uses the upper bound for the deadline check; it does not sample random delays or estimate success rates.
| Retry before attempt | Minimum wait | Maximum wait |
|---|---|---|
| 2 | 0 ms | 200 ms |
| 3 | 0 ms | 400 ms |
| 4 | 0 ms | 800 ms |
With every attempt taking its full timeout, the configured schedule ranges from 4,000 ms with minimum waits to 5,400 ms with maximum waits. Requests that finish sooner can shorten it. These are model bounds, not latency measurements.
The calculation
Before retry number k (k starts at 1), backoff = min(cap, base × 2^(k − 1)). Maximum wait = max(backoff, floor). Total = attempts × timeout + the waits before attempts 2 onward. There is no wait after the final attempt.
Use the result to review a policy
Begin with your end-to-end deadline, then budget time for each attempt and each wait. If a full attempt cannot fit, stop or deliberately shorten its timeout according to your client’s contract. This calculator reserves the full entered timeout; it never silently truncates the final request. Recheck the remaining deadline immediately before sleeping and sending in a real implementation.
Retry-After can be delay-seconds or an HTTP date. Convert and validate the actual response value in your client. Here the optional floor is a fixed illustrative value applied before every retry, combined with backoff using max rather than addition. A server wait is not shortened by the backoff cap. If it cannot fit the deadline, the client should stop instead of waiting beyond its budget.
The arithmetic assumes sequential attempts, a per-attempt timeout covering all request phases, and waits no longer than their modeled bounds. It excludes scheduling delays, cleanup, serialization and other overhead. Socket read timeouts may not cover DNS, connection setup, or an entire streaming response. Enforce an actual total deadline using the client’s supported mechanism.
Only retry appropriate failures when the operation can be repeated safely. This tool does not decide status-code policy, verify idempotency, implement cancellation, or model retries at several service layers. A time budget that fits is not permission to repeat a payment or other side effect.
Inputs appear in the page URL after submission; use configuration values only. No URL, credentials, or request payload is needed.
Read the full HTTP retries, backoff and idempotency guide →