Free calculator

SQL Server query tuning savings calculator

Tuning is easier to fund when it has a number. Enter your heaviest queries, their frequency and CPU per run, and see what they cost today and what a realistic cut is worth over five years.

The short answer. Every query uses CPU, and CPU has a price. This calculator turns your top queries, how often they run and how much CPU each execution uses into a yearly dollar figure, then shows what tuning them saves as the workload grows.

How to use it

How to use this calculator

Use Simple for a quick answer with typical assumptions, or Advanced to see and change every assumption.

  1. Find your most expensive queries by total CPU in your monitoring tool or in Query Store.
  2. Enter how many you plan to tune, how often each runs per day and the CPU one run uses.
  3. Enter the cut you expect from tuning and how much of the freed CPU you can convert into lower spend.
  4. Enter what a vCPU hour costs you.
  5. Read the yearly saving and the five-year gap.

The method

How the result is calculated

CPU hours per year are queries times executions per day times CPU milliseconds per run, divided by 1,000 and 3,600, times 365. The cost is CPU hours times the price per vCPU hour, and it grows with the workload.

Saved CPU is not saved money until you do something with it. The realization percentage is how much of the freed CPU you convert into a smaller instance, a deferred scale-up or a retired node. If you keep the hardware, the benefit is headroom.

Last updated November 18, 2026. Every default value is an editable placeholder, not Fortified data.

After the number

What to do with the result

FAQ

Frequently asked questions

How do I calculate the cost of a database query?

Multiply its CPU per execution by how often it runs to get CPU hours, then multiply by what a vCPU hour costs you. This calculator does that across your top queries.

Why does saved CPU not always save money?

CPU only turns into savings when you shrink an instance, avoid a scale-up or retire a node. Otherwise it becomes headroom. The realization percentage models this.

Where do I find CPU per execution?

Most databases report CPU time and execution counts per query, for example Query Store and dynamic management views in SQL Server and similar views elsewhere. Divide total CPU by executions.

What cost per vCPU hour should I use?

Add hosting and any per-core licensing for one vCPU for a year and divide by 8,760.

Does the calculator need query plans?

No. It works from execution counts and CPU time that you enter.

Want the real numbers from your own servers?

WISdom is SQL Server performance monitoring with cost optimization built in. It shows the actual cost of your queries, capacity and growth, instead of an estimate.

No credit card · 30-day free trial · Cancel anytime

What WISdom adds. WISdom attributes a dollar cost to every query and stored procedure, and tuning recommendations are unlimited and included. Supported by US-based SQL Server experts, with 95%+ CSAT. Read about query-level cost attribution in WISdom.