API Rate Limit Calculator
Calculate optimal rate limit settings from expected traffic, peak multipliers, and SLA requirements.
Inputs
%
Results
Peak RPS
300
Rate limit / window
21,600
Per-user limit / window108
Throttle threshold (RPS)360
Daily requests (avg)8,640,000
Daily requests (peak)25,920,000
Est. throttled % at 1.5x peak20
How to Use This Calculator
- Enter your Average Requests per Second and Peak Traffic Multiplier (e.g., 3x for traffic spikes).
- Set the Burst Window (seconds) and Safety Margin % to add headroom.
- Enter Max Concurrent Users and Average Requests per User per Minute.
- Review Peak RPS, Rate Limit per Window, and Per-User Rate Limit.
- Use the Throttle Threshold RPS to configure your API gateway or load balancer limits.
How the result changes with Average requests/sec
| Average requests/sec | Peak RPS | Rate limit / window |
|---|---|---|
| 100,000 | 300,000 | 21,600,000 |
| 350,000 | 1,050,000 | 75,600,000 |
| 650,000 | 1,950,000 | 140,400,000 |
| 900,000 | 2,700,000 | 194,400,000 |
What each input means
- Average requests/sec
- Average sustained requests per second during normal traffic.
- Peak traffic multiplier
- How many times average traffic your peaks reach (e.g., 3x = flash sale).
- Burst window (seconds)
- Time window for rate limit counting (token bucket refill period).
- Safety margin %
- Extra headroom above peak to avoid false throttling.
- Max concurrent users
- Expected maximum simultaneous users hitting the API.
- Avg requests per user/min
- Typical number of API calls a single user makes per minute.
What each result means
- Peak RPS
- Expected peak requests per second.
- Rate limit / window
- Maximum requests allowed in each burst window.
- Per-user limit / window
- Fair-share rate limit per individual user in each window.
- Throttle threshold (RPS)
- Requests per second at which 429 responses begin.
- Daily requests (avg)
- Total requests per day at average load.
- Daily requests (peak)
- Total requests per day if peak load were sustained all day.
- Est. throttled % at 1.5x peak
- Percentage of requests that would be rejected at 150% of peak traffic.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersAverage requests/sec = 100, Peak traffic multiplier = 3, Burst window (seconds) = 60, Safety margin % = 20 = 6 input(s) provided
- Calculate Peak RPSPeak RPS = avgRps * peakMultiplier300 = 300
- Calculate Rate limit / windowRate limit / window = ceil(peakRps * burstWindowSec * (1 + safetyMarginPct / 100))21600 = 21600
- Calculate Per-user limit / windowPer-user limit / window = max(1108 = 108
- Calculate Throttle thresholdThrottle threshold = round(rateLimitPerWindow / burstWindowSec)360 = 360
Engine last updated .
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Devops
Server Sizing Calculator
Calculate CPU, RAM, storage, and instance count from workload requirements.
DevopsCloud Cost Calculator
Estimate monthly cloud infrastructure costs from compute, storage, and data transfer.
DevopsCI/CD Pipeline Cost Calculator
Calculate total CI/CD cost including platform fees and developer wait time.
More in Technology & Computing.