Tested tool guide
Tested browser tools
Checked August 15, 2026
What API Rate Limit Calculator does, with a checked example
This tool models two common rate-limiting algorithms, token bucket and sliding window, against a traffic pattern you define: request rate, burst size, bucket capacity and refill rate, or window length and limit. It simulates the timeline and shows which requests pass immediately, which wait, and which get rejected, along with a chart of token level or window occupancy over time. The detail people most often miss: a large bucket capacity only buys a temporary burst allowance. If your sustained request rate exceeds the refill rate, throttling is inevitable no matter how big the bucket is - capacity just delays the first rejection.
Worked example
A concrete input and expected output from the current implementation.
Input
Token bucket: capacity = 100 tokens, refill rate = 10 tokens/sec, incoming traffic = 15 requests/sec sustained
->
Expected output
Net drain rate is 5 tokens/sec (15 consumed minus 10 refilled). Starting full, the bucket empties after 100 / 5 = 20 seconds. After that point, throughput is capped at the refill rate: 10 requests/sec pass, 5 requests/sec are throttled, indefinitely.
Net drain is demand minus refill (15-10=5/sec); time to empty a full bucket is capacity divided by net drain (100/5=20s); once empty, allowed throughput can never exceed the refill rate.