Calculate queries per second, total time, or number of queries from any two values, with time units in hours, minutes, or seconds.

Queries Per Second Calculator

Enter any 2 values to calculate the missing variable

Queries Per Second Formula

The calculator uses total query count, elapsed time, and query rate. Time is converted to seconds before the main calculation. Query rate is converted to queries per second before the main calculation.

QPS = Q / T
Q = QPS * T
T = Q / QPS
  • QPS = queries per second
  • Q = total number of queries
  • T = total time in seconds

If you leave Queries Per Second empty, the calculator divides the number of queries by the total time.

If you leave Number of Queries empty, the calculator multiplies queries per second by total time.

If you leave Total Time empty, the calculator divides the number of queries by the query rate.

The time input can be entered in hours, minutes, or seconds. The query rate can be entered as queries per second, queries per minute, or queries per hour.

Query Rate Unit Conversions

Use these conversions to understand how the selected units relate to the base calculation.

Unit Equivalent in queries per second Example
queries/sec Same value 50 queries/sec = 50 QPS
queries/min Divide by 60 3,000 queries/min = 50 QPS
queries/hr Divide by 3,600 180,000 queries/hr = 50 QPS

Common QPS Interpretations

QPS range Typical meaning
Less than 1 QPS Less than one query per second. Often used for low-volume jobs or background tasks.
1 to 100 QPS Light to moderate request volume for many small services or test runs.
100 to 1,000 QPS Higher traffic. Performance, database capacity, and caching usually matter more.
More than 1,000 QPS High throughput. Load balancing, scaling, and latency limits are usually important.

Example Problems

Example 1: Calculate queries per second

You processed 120,000 queries in 10 minutes. Convert 10 minutes to 600 seconds.

QPS = 120000 / 600 = 200

The query rate is 200 queries per second.

Example 2: Calculate number of queries

A service runs at 75 queries per second for 2 hours. Convert 2 hours to 7,200 seconds.

Q = 75 * 7200 = 540000

The total number of queries is 540,000.

FAQ

What does queries per second mean?

Queries per second, or QPS, is the average number of queries handled each second. For example, 500 QPS means the system processes about 500 queries every second over the measured time period.

Is QPS the same as requests per second?

Not always. QPS usually refers to queries, such as database queries, search queries, or API query operations. Requests per second can refer to any type of request. In some systems they are the same, but in others one request may trigger multiple queries.

Why does total time need to be converted to seconds?

QPS is based on seconds, so the time value must use seconds in the formula. If you enter minutes or hours, the calculator converts them to seconds before calculating the missing value.