Rate Limit Calculator

Enter your rate limit and window size to calculate safe request throughput, burst capacity, and minimum delays for token bucket or sliding window algorithms.

Rate Limit Parameters

1 = no burst; 2 = allow 2× rate momentarily

Load a common API limit

Enter parameters and click Calculate

Summary

Enter your rate limit and window size to calculate safe request throughput, burst capacity, and minimum delays for token bucket or sliding window algorithms.

How it works

  1. Choose an algorithm: Token Bucket / Fixed Window or Sliding Window / Leaky Bucket.
  2. Enter the rate limit (number of requests allowed) and the window duration in seconds.
  3. For Token Bucket, set the burst multiplier to allow short bursts above the sustained rate.
  4. For Sliding Window, set a safety buffer percentage (default 10%) to stay below the hard limit.
  5. Read the calculated throughput, delay, burst capacity, and the safe/risky/limit-trigger table.

Use cases

  • Calculate the safe polling interval before building a cron job that calls a third-party API.
  • Size a token bucket burst buffer when designing a gateway that proxies upstream API calls.
  • Verify that a batch processing pipeline stays within an external API quota over a 5-minute window.
  • Set the correct delay between retries when a client receives HTTP 429 Too Many Requests.
  • Compare GitHub, Stripe, or OpenAI limits against your expected request volume.
  • Debug rate limit breaches by checking actual throughput against the safe-request table.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu