gcpbigquerydatacost-optimization

BigQuery slots autoscaling cost: editions capacity without over-committing

BigQuery editions let you buy query capacity as slots with autoscaling, so you pay for compute that follows demand instead of a flat commitment or unpredictable on-demand scans. Here is how slot autoscaling is priced and when it beats on-demand.

The C3X Team··6 min read

Quick answer

BigQuery editions price query compute as slots billed per slot-hour, with autoscaling that adds and removes slots to match query demand so you pay for capacity only while queries run. Standard edition costs about 0.04 dollars per slot-hour, Enterprise about 0.06, and Enterprise Plus about 0.10, and one-year and three-year commitments reduce those rates. Autoscaling means idle time costs little because slots scale down, unlike a flat slot reservation. Editions with autoscaling beat on-demand (about 6.25 dollars per TB scanned) when your query volume is high and steady enough that per-slot-hour pricing costs less than per-terabyte scanning, while autoscaling avoids paying for a fixed reservation during quiet periods.

BigQuery gives you two ways to pay for query compute: on-demand, priced per terabyte scanned, and editions, priced per slot-hour of capacity. Editions used to mean committing to a fixed number of slots, which risked paying for idle capacity. Autoscaling changed that by letting slot count follow demand, so editions can now be cost-effective without over-committing. Knowing how autoscaling bills is the key to using it well.

How slot autoscaling bills

EditionApproximate slot-hour rate
StandardAbout 0.04 dollars per slot-hour
EnterpriseAbout 0.06 dollars per slot-hour
Enterprise PlusAbout 0.10 dollars per slot-hour
On-demand (alternative)About 6.25 dollars per TB scanned

With editions, you set a maximum number of slots and optionally a baseline, and BigQuery autoscales the actual slot count between them based on query demand, billing per slot-hour for the slots in use. When no queries run, autoscaling can drop to the baseline, which can be zero, so idle periods cost little. One-year and three-year commitments on a baseline reduce the per-slot-hour rate further for capacity you know you will use continuously.

Editions versus on-demand

On-demand billing charges about 6.25 dollars per terabyte scanned, which is simple and cheap for occasional queries but grows with data scanned regardless of how efficient your compute is. Editions charge for compute time rather than bytes scanned, so they win when you run many queries or heavy ones, since the per-slot-hour cost of the compute can be far less than the per-terabyte cost of repeatedly scanning large tables. The crossover depends on your query volume and how much data each query scans, the core of the on-demand versus flat-rate decision.

Why autoscaling matters

The old flat slot reservation charged for the reserved slots around the clock, so a workload with bursty analytics paid for peak capacity even overnight. Autoscaling bills for slots only while queries need them and scales down between bursts, so you capture editions pricing on heavy queries without paying for a fixed reservation during quiet hours. Setting a low or zero baseline and a sensible maximum lets capacity track the workload, which is the efficiency the flat reservation lacked.

Choosing and tuning

Estimate your query volume and data scanned. For light, occasional querying, on-demand is simplest and cheapest. For heavy or steady querying, editions with autoscaling usually cost less, and a committed baseline cuts the rate on capacity you always use. Set the autoscaling maximum to cap runaway cost and the baseline to match steady demand, and pick the edition tier your features require, since Enterprise and Enterprise Plus cost more per slot-hour. Price both on-demand and editions for your query pattern against the resource catalog so the cheaper model is chosen before you commit.

FAQ

How is BigQuery slot autoscaling priced?

BigQuery editions bill query compute per slot-hour, with autoscaling adjusting the slot count to match query demand so you pay only for slots in use. Standard edition costs about 0.04 dollars per slot-hour, Enterprise about 0.06, and Enterprise Plus about 0.10. One-year and three-year commitments on a baseline reduce those rates, and autoscaling can drop to a low or zero baseline when no queries run.

When do BigQuery editions beat on-demand?

When your query volume is high and steady enough that per-slot-hour compute pricing costs less than on-demand's roughly 6.25 dollars per terabyte scanned. On-demand grows with data scanned regardless of compute efficiency, so editions win for many queries or heavy ones where compute time costs far less than repeatedly scanning large tables. For light, occasional querying, on-demand is simplest and cheapest.

How does autoscaling change BigQuery editions cost?

The old flat slot reservation charged for reserved slots around the clock, so bursty workloads paid for peak capacity even when idle. Autoscaling bills for slots only while queries need them and scales down between bursts, so you get editions pricing on heavy queries without paying for a fixed reservation during quiet hours. A low or zero baseline lets capacity track the workload.

How do I control BigQuery editions autoscaling cost?

Set the autoscaling maximum to cap runaway cost during spikes and the baseline to match steady demand, using a low or zero baseline so idle periods cost little. Add a one-year or three-year commitment on a baseline you always use to cut its rate. Pick the edition tier your features actually require, since Enterprise and Enterprise Plus cost more per slot-hour than Standard.

How does C3X help with BigQuery capacity cost?

C3X prices your BigQuery infrastructure from Terraform before you deploy, so the cost implications of an editions reservation with autoscaling versus on-demand are visible at design time. That helps you choose the cheaper billing model for your query pattern and set sensible baseline and maximum slot counts before committing, rather than discovering the capacity cost on the bill.

What to do next

Choose editions or on-demand on cost before you commit. C3X reads your Terraform and prices your resources against a live catalog. Start with the quickstart.

Try C3X on your own Terraform

Free and open source. No API key required. One command to install, one command to estimate.