Skip to content

Rate Limit Calculator

Convert an API rate limit between requests per second, minute, hour and day, and work out request spacing, burst size and how long a batch of calls takes.

Calculator Details

Time to send the batch:1h 39m 0sSee results ↓

How many requests the limit allows per window, e.g. 100

The window the limit is counted over

Token bucket (most APIs and gateways), fixed window (a counter reset every window) or sliding window

Token bucket only: requests allowed at once from a full bucket; often equal to the limit

Workers, servers or users that share one limit (an API key or IP address)

A batch job, backfill or sync: how long it takes at the limit

Your Results

Time to send the batch: 1h 39m 0s

Time to send the batch

1h 39m 0s

10,000 requests at 100 per minute

Requests per second

1.6667

100/min · 6,000/h · 144,000/day

One request every

600 ms

Spacing that never trips the limit

Largest burst

100 requests

From a full bucket

100 requests per minute is 1.666667 per second, one every 0.6 s; 10,000 requests take 99 minutes at that limit.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Requests sent over time at the limit

Requests sent over time at the limit

Detailed Breakdown

100 per minute in other units
PerAll clientsEach of 1
second1.66671.6667
minute (your limit)100100
hour6,0006,000
day144,000144,000

How This Calculator Works

How it's calculated

rate = limit ÷ window length · spacing = window length ÷ limit

token bucket: time for N requests = (N − bucket size) ÷ rate, or 0 if N fits in the bucket

fixed or sliding window: time for N requests = ⌊(N − 1) ÷ limit⌋ × window length

Your numbers: 100 ÷ 60 s = 1.666667 requests per second, one every 0.6 s. The first 100 go at once from the full bucket; the other 9,900 follow one every 0.6 s, so the last goes at 5,940 s (1h 39m 0s).

Frequently Asked Questions

How do I convert requests per minute to requests per second?

Divide by 60. A limit of 100 requests per minute is 1.67 requests per second, or one request every 0.6 seconds. Requests per hour ÷ 3,600 and requests per day ÷ 86,400 give per second the same way.

How long will my batch job take under a rate limit?

Roughly the number of requests divided by the rate. With a token bucket, the first requests up to the bucket size go at once, so the time is (requests − bucket size) ÷ rate. 10,000 requests at 100 per minute with a bucket of 100 take (10,000 − 100) × 0.6 s = 5,940 s, 99 minutes. Add the time each request itself takes if you send them one after another.

What is a token bucket?

A limiter that adds tokens at a steady rate up to a maximum, the bucket size. Each request takes a token; with none left, the request is refused or delayed. A full bucket allows a short burst, while the long-run average can’t exceed the refill rate. Most API gateways and cloud services use it.

Why can a fixed window let through twice the limit?

A fixed window counts requests per clock window and resets at the boundary. A client can send the full limit in the last second of one window and the full limit again in the first second of the next, so up to twice the limit passes in about one window. Sliding windows and token buckets don’t have that edge.

How should several workers share one API key?

Divide the limit between them: four workers sharing 1,000 requests per hour get 250 each, one request every 14.4 seconds. Better still, put a shared limiter (a queue or a central token bucket) in front of the API, so idle workers don’t waste their share.

What should a client do when it gets HTTP 429?

429 Too Many Requests means the limit was hit. Wait before retrying: if the response has a Retry-After header, wait that long; otherwise back off exponentially with some random jitter. Retrying straight away only uses up the next window’s allowance.

Should I run at exactly the limit?

Aim a little below it, at 80–90%. Clocks drift, the server’s window may not line up with yours, retries count against the limit too, and other clients may share it. Running just under the limit avoids a stream of 429 errors.

Included: a limit as requests per second, minute, hour and day, spacing between requests, an even share per client, the largest burst of a token bucket, fixed window or sliding window limiter, and the time for a batch sent as fast as the limit allows (starting from a full bucket or the start of a window). Left out: the time each request takes to run, retries and failed requests that also count against the limit, concurrency limits, cost-based limits (points or tokens per request), leaky-bucket queues that delay rather than refuse, and the provider's own clock and window alignment.

Rate Limit Calculator: Requests per Second, Bursts and Batch Time

By FindMySum · Last reviewed

A rate limit calculator turns a limit like "100 requests per minute" into the numbers you need when writing a client or planning a job: the rate per second, the gap to leave between requests, each worker's share, the biggest burst the service will accept, and how long a batch of calls will take. APIs, gateways and cloud services all publish limits in different units; converting them to one shape makes them easy to compare and to respect.

The basic conversion

A limit is a count over a window. Dividing one by the other gives a rate:

rate = limit ÷ window length

spacing = window length ÷ limit

The calculator opens at 100 requests per minute. That is 100 ÷ 60 = 1.67 requests per second, 6,000 per hour and 144,000 per day, and a client that sends one request every 0.6 seconds will never exceed it. If several workers share the limit, divide it between them: with four workers, each gets 25 per minute, one request every 2.4 seconds.

Three kinds of limiter

Services enforce limits in different ways, and the difference shows in how bursts are treated. The calculator lets you choose:

  • Token bucket. Tokens drip into a bucket at the refill rate until it is full. Each request takes one. A full bucket allows a burst up to its size, after which requests go at the refill rate. It is the most common design for APIs, and it is what RFC 2697 describes for network traffic with a committed rate and a committed burst size.
  • Fixed window. A counter resets at the start of each window, such as each clock minute. Simple and cheap, but a client can send the full limit at the end of one window and again at the start of the next, so twice the limit can pass in about one window.
  • Sliding window. The limiter looks back over the last window from the current moment, so no span of one window length ever holds more than the limit. It is fairer than a fixed window at the cost of more bookkeeping.

How long a batch takes

When you need to make many calls, such as a backfill, a sync or a data export, the limit decides the minimum time.

With a token bucket starting full, the first requests up to the bucket size go immediately; the rest follow at the refill rate:

time = (requests − bucket size) ÷ rate

With the defaults, 10,000 requests at 100 per minute and a bucket of 100: (10,000 − 100) × 0.6 s = 5,940 seconds, 1 hour 39 minutes. With a fixed or sliding window, you can send a full window's worth at once, then wait for the next: the last of 10,000 requests goes in the hundredth window, which starts 99 minutes in. The chart shows the requests sent over time, a straight climb for a token bucket and a staircase for windows.

These are lower bounds. If the client sends one request at a time and waits for each response, the job can't run faster than the number of requests times the response time either, whichever is slower. Retries and failed calls also count against most limits.

Staying under the limit

A few habits keep clients out of trouble:

  • Pace, don't burst. Spreading requests evenly at a little under the limit avoids filling the bucket and hitting the wall all at once.
  • Leave headroom. Aim at 80 to 90% of the published rate. Your clock and the server's aren't aligned, and other processes may share the same key or IP address.
  • Read the headers. Many APIs return the remaining allowance and the reset time with each response. Use them to slow down before the limit is reached.
  • Back off on 429. When the server answers 429 Too Many Requests, wait. Honour a Retry-After header if there is one; otherwise use exponential backoff with jitter so that many clients don't retry at the same moment.

Setting limits for your own service

If you run the API, the same numbers help you choose. Start from what the back end can sustain, such as database queries per second, and divide by the number of clients you expect to be active at once to get a per-client rate. Then pick a bucket size that lets legitimate clients do a short burst, like loading a page that makes ten calls, without letting one client starve the rest. Publish the limits and return them in headers, and clients will follow them.

More questions

What is the difference between rate limiting and throttling?

The words are often used interchangeably. When a distinction is made, rate limiting refuses requests over the limit (usually with HTTP 429), while throttling slows them down, queueing or delaying them until they fit. A leaky bucket is the classic throttle: requests drain out at a fixed rate whatever rate they arrive at.

Do rate limits count failed requests?

Usually yes. Most services count every request that reaches the limiter, including ones that fail with errors and the 429 responses themselves. That is why retrying aggressively after hitting a limit makes things worse: the retries eat into the next window.

What do the RateLimit headers mean?

Many APIs report the limit in response headers so clients can pace themselves: the limit, the requests remaining in the current window, and when it resets. Names vary (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset); the IETF HTTPAPI working group is standardising RateLimit and RateLimit-Policy fields. Read the remaining count and slow down before it reaches zero.

How do I choose the bucket size for my own API?

Set the refill rate to the sustained load you can serve and the bucket size to the largest burst you can absorb without hurting other users. Equal to one window's limit is a common start. Large buckets are friendlier to clients that wake up and send a batch; small ones protect the back end.

Can I go faster by using more API keys?

Technically each key may have its own limit, but most terms of service forbid creating extra keys or accounts to get around limits. Ask the provider for a higher tier, cache responses you request often, or use bulk endpoints that return many records per call.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy