Skip to main content
CalcChef

API Rate Limit Calculator

Enter an API rate limit, its window in seconds, minutes, hours or days, and the requests used and queued to get percent used, requests left and pacing. How it works

Use the API Rate Limit Calculator

Requests remaining
100
Usage 0% · Allowed rate 1.67/s

Usage0%
00 / 100 requests100

Minimum gap between requests

600 ms
Window ÷ limit: an average spacing that never runs out before the window ends, not the wait after a 429.

About the API Rate Limit Calculator

A rate limit of 5,000 requests per hour, GitHub's limit for an authenticated user, averages 1.39 requests per second (5,000 ÷ 3,600). Enter the limit, the window in seconds, minutes, hours or days, the requests already used and any still queued, and the calculator shows the percent used, the requests left in the window, that average rate, the minimum gap between requests (720 ms here) and whether the queue would go over.

Average allowed rate for common limits

LimitWindow (seconds)Requests per secondMinimum gap
60 per minute601.001,000 ms
100 per minute601.67600 ms
60 per hour3,6000.0260,000 ms
1,000 per hour3,6000.283,600 ms
5,000 per hour3,6001.39720 ms
10,000 per day86,4000.128,640 ms

Requests per second is limit ÷ window, rounded to two decimals as the calculator shows it; the minimum gap is window ÷ limit in milliseconds. 60 and 5,000 per hour are GitHub's REST API limits without and with authentication.

How to use this tool

  1. Enter the rate limit and the length of its window, and pick the unit: seconds, minutes, hours or days. 1 hour is the same as 3,600 seconds.
  2. Enter the requests already used in this window. Many APIs report it in a header, such as GitHub's x-ratelimit-used.
  3. Optionally enter the requests still waiting to be sent.
  4. Read the usage meter, the requests remaining, the average allowed rate and the minimum gap between requests. With a queue, Queue Impact shows the usage after sending it and by how many requests it overshoots.

Frequently asked questions

What does HTTP 429 Too Many Requests mean?
The server is refusing requests because you sent more than its limit allows in the current window. RFC 6585, which defines the code, says the response may carry a Retry-After header saying how long to wait. GitHub answers a request over its primary limit with 403 or 429 and x-ratelimit-remaining set to 0.
How long should I wait after hitting a rate limit?
Until the time the API gives you. Retry-After holds a number of seconds, and GitHub's x-ratelimit-reset holds the reset time in UTC epoch seconds. The calculator has no clock, so the seconds it shows for an overshoot are only the surplus divided by the average rate, not the time to the reset.
How do I convert a rate limit to requests per second?
Divide the limit by the window in seconds. 100 requests per minute is 100 ÷ 60 = 1.67 per second, and 10,000 per day is 10,000 ÷ 86,400 = 0.12 per second. Spacing requests at that rate never runs out before the window ends. The calculator also shows that spacing as a minimum gap, window ÷ limit: 600 ms for 100 per minute and 720 ms for 5,000 per hour.
Can I send all my remaining requests at once?
In a plain fixed window, yes: 800 remaining can go out together. Many APIs also cap bursts or limit each endpoint separately, and GitHub has secondary limits on top of the hourly one, so a large burst can be refused even with requests left. The calculator models one fixed window only.

Related Tools

View all tools