Enter the total number of queries performed and the total cost into the calculator to determine the cost per query.

Cost Per Query Formula

The following equation is used to calculate the Cost Per Query.

CPQ = TC / #Q

  • Where CPQ is the cost per query ($/query)
  • TC is the total amount charged by the service ($)
  • #Q is the number of queries performed.

What is a Cost Per Query?

Definition:

A cost per quest is a measure of the average cost to perform one query in a software or system.

How to Calculate Cost Per Query?

Example Problem:

The following example outlines the steps and information needed to calculate Cost Per Query.

First, determine the cost charged by the software. In this case, the total cost is $1,100.00.

Next, determine the number of queries performed. In this case, 250 queries were performed.

Finally, calculate the cost per query using the formula above:

CPQ = TC / #Q

CPQ = 1,100 / 250

CPQ = $4.4 / query