QPS & TPS Calculator

🔒 Processed 100% in your browser — nothing is uploaded

About this tool

QPS (queries per second), TPS (transactions per second), RPS (requests per second), concurrency and response time are the five numbers every backend service lives or dies by, and they are locked together by one equation: concurrency = QPS x average response time. That single line — Little's Law from queueing theory — lets you convert between all three the moment you know any two. This calculator does exactly that, plus the follow-up questions that always come next: how much peak traffic will my product actually generate, how many servers does that require, and how close am I to my rate limits.

The Basics tab solves for whichever value you are missing and converts between QPS and TPS (a transaction that touches your API three times means TPS = QPS / 3). The Traffic tab estimates average and peak QPS from daily active users, requests per user and active hours, using either a peak multiplier or the classic 80/20 rule (80% of daily traffic compressed into 20% of the day — the standard system-design interview shortcut). The Servers tab turns peak QPS into a server count: peak divided by load-tested per-server QPS, padded with headroom and an N+1 spare for failover.

Two tabs cover newer flavors of the same problem. The LLM tab sizes inference fleets: given a GPU instance's tokens-per-second throughput and the tokens per request, it computes QPS per instance, how many instances a target QPS needs, and the tokens-per-minute (TPM) footprint you must fit inside provider quotas. The Rate Limits tab works in the opposite direction — it converts provider limits like 5,000 requests per minute or 5,000 requests per hour into QPS, tells you the maximum in-flight requests your client can hold before tripping 429 errors, and sizes a token-bucket burst window.

Every calculation runs entirely in your browser — no traffic numbers, fleet sizes or API quotas are uploaded anywhere. The results are planning-grade estimates: they answer architecture questions quickly, but the per-server QPS you feed in should come from a real load test (wrk, k6, JMeter), because that number depends on your stack, caching and database far more than on any formula.

How to use QPS & TPS Calculator

  1. Basics: pick what to solve for (concurrency, QPS or response time), enter the two values you know, and read the third.
  2. Traffic: enter DAU, requests per user and active hours; choose a peak multiplier or the 80/20 rule to get average and peak QPS with a read/write split.
  3. Servers: take the peak QPS from the Traffic tab, add your load-tested per-server QPS and headroom, and get the server count including N+1.
  4. LLM / Rate Limits: convert tokens-per-second into instances and QPS, or RPM/TPM limits into QPS and safe client concurrency.

Frequently asked questions

What is the difference between QPS and TPS?

QPS counts individual requests per second; TPS counts complete transactions. If one transaction triggers 3 API requests, then TPS = QPS / 3. Use QPS for capacity planning of a single endpoint and TPS when describing whole business operations.

Are QPS, RPS and throughput the same thing?

Practically yes — requests per second (RPS) and queries per second (QPS) are synonyms; throughput is the umbrella term. Database benchmarks often report QPS/TPS, web load tests often say RPS. This calculator treats them interchangeably.

How are concurrency, QPS and response time related?

By Little's Law: concurrency (in-flight requests) = QPS x average response time in seconds. Example: 200 QPS at 50 ms average response time means 10 requests are being processed at any instant.

How do I estimate peak QPS from DAU or daily PV?

Multiply DAU by requests per user to get daily requests, divide by active seconds for the average, then apply a peak multiplier (2-3x is common) or the 80/20 rule: peak = daily requests x 0.8 / (86400 x 0.2), roughly average x 4.17.

How many servers do I need for a given QPS?

Server count = peak QPS / per-server QPS, times a headroom factor (typically 1.3-2x), plus one spare for N+1 failover. Per-server QPS must come from your own load test; rules of thumb like 500 QPS per 2C4G web node are only starting points.

Where does the tokens-per-second figure for LLM sizing come from?

Measure it with a benchmark on your target GPU (vLLM, TGI and llama.cpp all report it), or estimate it from the model size divided by effective memory bandwidth. Throughput drops as batch size and context grow, so benchmark at your real request shape.

How do I convert RPM or requests-per-hour limits to QPS?

Divide by the window: QPS = RPM / 60, or requests per hour / 3600. The Rate Limits tab also shows the maximum in-flight requests you can keep open under that limit, which is limit QPS x response time.

Can this replace load testing?

No. These are planning estimates for architecture decisions and interviews. The single biggest unknown — QPS per server — depends on your code, caching and database, and only a real load test (wrk, k6, JMeter) can measure it.

Is my data uploaded anywhere?

No. All calculations run locally in your browser with JavaScript. Nothing you type is transmitted, logged or stored.