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
Recommended: 10%. Keeps you below the hard limit.
Load a common API limit
Enter parameters and click Calculate
Key Metrics
Request Rate Safety Table
| Rate (req/s) | Requests / min | Status |
|---|
Requests Available Over Time
Common API Rate Limits
| API | Limit | Safe interval |
|---|---|---|
| GitHub REST API | 5,000 req/hr | 720 ms |
| Twitter/X API v2 | 300 req/15 min | 3,000 ms |
| Stripe API | 100 req/s | 10 ms |
| OpenAI (Tier 1) | 500 req/min | 120 ms |
| Slack API | 1 req/s per method | 1,000 ms |
| Cloudflare API | 1,200 req/5 min | 250 ms |
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
- Choose an algorithm: Token Bucket / Fixed Window or Sliding Window / Leaky Bucket.
- Enter the rate limit (number of requests allowed) and the window duration in seconds.
- For Token Bucket, set the burst multiplier to allow short bursts above the sustained rate.
- For Sliding Window, set a safety buffer percentage (default 10%) to stay below the hard limit.
- 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