BigQuery cost guide
BigQuery pricing explained
BigQuery bills compute and storage separately. Compute is on-demand at $6.25 per TiB scanned (the first 1 TiB a month is free) or capacity-based with editions from $0.04 per slot-hour. Storage costs $0.02 per GiB a month for active data and $0.01 for data unchanged for 90 days (US, logical).
How BigQuery pricing works
Every BigQuery bill has two parts that you choose separately.
- Compute pays for running queries, scripts, DML, DDL and BigQuery ML. You pick per project: on-demand, billed by the bytes each query reads, or capacity, billed by the slot-hours your reservation uses in one of three editions.
- Storage pays for the data you keep, per GiB per month. Data unchanged for 90 days becomes long-term storage at about half the price. You pick per dataset whether you are billed on logical (uncompressed) or physical (compressed) bytes.
Around those sit smaller charges for streaming ingestion, the Storage Read API, BI Engine and cross-region data transfer, and a free tier of 1 TiB of queries and 10 GiB of storage per month.
On-demand compute pricing
On-demand is the default. Each query is billed for the bytes it reads from the columns it references, after the monthly free TiB.
| Location | Price per TiB scanned | Free each month |
|---|---|---|
| US multi-region | $6.25 | First 1 TiB per billing account |
| EU multi-region | $6.25 | First 1 TiB per billing account |
| Iowa (us-central1) | $6.25 | First 1 TiB per billing account |
What decides the bytes billed
- Columns, not rows. BigQuery stores data by column and bills every byte of every column the query touches.
SELECT *on a wide table is the most expensive habit in BigQuery;LIMITdoes not reduce the bytes read. - Partitions and clusters. A filter on the partitioning column skips whole partitions, and a filter on clustering columns skips blocks. Both cut the bytes billed before the query runs.
- Minimums. Charges round up to the nearest MB, with a minimum of 10 MB per table referenced and 10 MB per query.
- Free results. Queries that fail and queries answered from the cache are not billed. Querying data shared with you is billed to you, not to the owner.
- Concurrency. On-demand projects share a pool of up to 2,000 slots each, and may burst above it.
Before you run a query, the console's validator and a dry run (bq query --dry_run) show the bytes it will read. To make a query fail instead of running up a bill, set maximum bytes billed.
Capacity pricing: BigQuery editions
With capacity pricing you buy compute as slots in a reservation and pay per slot-hour, whatever the queries scan. Slots come in three editions. The autoscaler adds and removes slots in steps of 50; billing is per second with a one-minute minimum, or with no minimum if the reservation opts in to fluid scaling. Commitments start at 50 slots, in steps of 50.
| Edition | Pay as you go | BigQuery CUD 1 year | BigQuery CUD 3 years | Slot commitment 1 year | Slot commitment 3 years |
|---|---|---|---|---|---|
| Standard | $0.04 | $0.036 | $0.032 | Not available | Not available |
| Enterprise | $0.06 | $0.054 | $0.048 | $0.048 | $0.036 |
| Enterprise Plus | $0.10 | $0.09 | $0.08 | $0.08 | $0.06 |
| Edition | Pay as you go | BigQuery CUD 1 year | BigQuery CUD 3 years | Slot commitment 1 year | Slot commitment 3 years |
|---|---|---|---|---|---|
| Standard | $0.044 | $0.0396 | $0.0352 | Not available | Not available |
| Enterprise | $0.066 | $0.0594 | $0.0528 | $0.0528 | $0.0396 |
| Enterprise Plus | $0.11 | $0.099 | $0.088 | $0.088 | $0.066 |
"BigQuery CUD" is a committed use discount on the slot-hour price that you opt in to for one or three years, available on every edition; a "slot commitment" (Google lists it as a resource CUD) reserves a fixed number of slots for one or three years and is only available on Enterprise and Enterprise Plus. Check the terms of both on the pricing page before you commit.
What each edition includes
- Standard: autoscaling only, reservations up to 1,600 slots, 99.9% monthly SLO. No BigQuery ML, BI Engine, customer-managed encryption keys, fine-grained security (column-level access, row-level security, data masking), continuous queries or materialized view creation.
- Enterprise: baseline plus autoscaling, slot commitments, 99.99% SLO, BigQuery ML, BI Engine, CMEK, fine-grained security, continuous queries, advanced workload management and BigQuery Omni.
- Enterprise Plus: everything in Enterprise except Omni, plus managed disaster recovery and Assured Workloads compliance controls.
The full comparison is in Google's editions introduction.
On-demand or editions: how to decide
The two models charge for different things, so the answer depends on how much data your queries read for each slot-hour of compute they use. A slot-hour of each edition costs the same as scanning this much on-demand (US):
| Edition, pay as you go | Price per slot-hour | Break-even scan per slot-hour |
|---|---|---|
| Standard | $0.04 | 6.6 GiB |
| Enterprise | $0.06 | 9.8 GiB |
| Enterprise Plus | $0.10 | 16.4 GiB |
If your on-demand queries read more than the break-even amount per slot-hour, the same work would be cheaper on that edition, and the other way round. BigQuery records both numbers for every job, so you can measure it instead of guessing:
-- Bytes billed and slot-hours per project over the last 30 days (US multi-region).
SELECT
project_id,
ROUND(SUM(total_bytes_billed) / POW(1024, 4), 2) AS tib_billed,
ROUND(SUM(total_slot_ms) / 1000 / 3600, 1) AS slot_hours,
ROUND(SUM(total_bytes_billed) / POW(1024, 3)
/ NULLIF(SUM(total_slot_ms) / 1000 / 3600, 0), 1) AS gib_per_slot_hour,
ROUND(SUM(total_bytes_billed) / POW(1024, 4) * 6.25, 2) AS on_demand_usd
FROM `region-us`.INFORMATION_SCHEMA.JOBS_BY_PROJECT
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
AND job_type = 'QUERY'
AND statement_type != 'SCRIPT'
GROUP BY project_id
ORDER BY on_demand_usd DESC;Two things make the real comparison less clean than the table. Autoscaled slots are billed in steps of 50 and, without fluid scaling, for at least a minute, so a reservation bills more slot-hours than its jobs report. And Standard edition lacks features many teams rely on. The pricing calculator lets you add that overhead, and our guide to choosing walks through mixed setups where some projects stay on-demand.
Storage pricing
| Location | Active logical | Long-term logical | Active physical | Long-term physical |
|---|---|---|---|---|
| US multi-region | $0.020 | $0.010 | $0.040 | $0.020 |
| EU multi-region | $0.020 | $0.010 | $0.044 | $0.022 |
| Iowa (us-central1) | $0.023 | $0.016 | $0.040 | $0.020 |
The first 10 GiB each month are free. Storage is prorated per MiB per second.
Active and long-term storage
A table, or each partition of a partitioned table, that hasn't been modified for 90 consecutive days is billed at the long-term rate, about half price, with no change in performance. Loading, appending, overwriting, DML, CREATE OR REPLACE TABLE and streaming into it reset the 90-day timer; querying, exporting, copying it elsewhere and creating views on it don't. Partitioning by date keeps old partitions on the long-term rate even while new data arrives every day.
Logical or physical billing
Logical billing charges for uncompressed bytes and includes time travel and fail-safe. Physical billing charges for compressed bytes at about twice the per-GiB rate, plus time travel (2 to 7 days, 7 by default) and the 7-day fail-safe at the active physical rate. Physical billing wins when your data compresses better than about 2:1 and doesn't churn much; tables that are rewritten often keep large time travel and fail-safe bytes and can cost more. The model is set per dataset, takes 24 hours to apply and can be changed again after 14 days. Check your numbers first:
-- Logical vs physical storage cost per dataset (US multi-region list prices).
SELECT
table_schema AS dataset,
ROUND(SUM(active_logical_bytes) / POW(1024, 3) * 0.02
+ SUM(long_term_logical_bytes) / POW(1024, 3) * 0.01, 2) AS logical_usd_month,
-- active_physical_bytes already includes time travel; fail-safe is billed on top.
ROUND((SUM(active_physical_bytes) + SUM(fail_safe_physical_bytes)) / POW(1024, 3) * 0.04
+ SUM(long_term_physical_bytes) / POW(1024, 3) * 0.02, 2) AS physical_usd_month,
ROUND(SAFE_DIVIDE(SUM(total_logical_bytes), SUM(total_physical_bytes)), 1) AS compression_ratio
FROM `region-us`.INFORMATION_SCHEMA.TABLE_STORAGE
GROUP BY dataset
ORDER BY logical_usd_month DESC;More on this in our deep dive on BigQuery storage costs and the glossary entry on storage billing models.
Ingestion, extraction and BI Engine
| Operation | Price (US) | Free |
|---|---|---|
| Batch loading (load jobs on the shared pool) | Free | Storage is billed once loaded |
| Streaming inserts (legacy insertAll) | $0.01 per 200 MiB | Rows count with a 1 KB minimum |
| Storage Write API | $0.025 per GiB | First 2 TiB a month |
| Batch export (extract jobs) | Free on the shared pool | Up to 50 TiB a day |
| Storage Read API | $1.10 per TiB read | First 300 TiB a month |
| BI Engine memory | $0.0416 per GiB-hour | Included with editions commitments (below) |
Editions commitments include some BI Engine capacity at no extra cost: 5 GiB with 100 slots, 25 GiB with 500 slots, 50 GiB with 1,000 slots, 75 GiB with 1,500 slots, 100 GiB with 2,000 slots (the maximum per organization). Cross-region exports, copies and replication are billed as network transfer.
Worked examples
A small analytics team on on-demand
The team scans 5 TiB a month. The first TiB is free, so the compute bill is (5 − 1) × $6.25 = $25.00 a month. Editions would not pay off at this size.
A data platform scanning 300 TiB a month
On-demand, that is (300 − 1) × $6.25 = $1,868.75. If the same jobs report 15,000 slot-hours, Enterprise pay as you go would bill at least 15,000 × $0.06 = $900.00 before autoscaler overhead. The workload scans 20.5 GiB per slot-hour, well above the 9.8 GiB break-even, so editions win clearly.
50 TiB of stored data
10 TiB active and 40 TiB long-term, billed logically: (10 × $0.02 + 40 × $0.01) × 1,024 = $614.40 a month. If the data compresses 5:1 and churns little, physical billing would cost about $245.76 before time travel and fail-safe bytes.
How to reduce your BigQuery bill
- Find who and what spends. Group INFORMATION_SCHEMA.JOBS by user, project, label and query to find the handful of jobs that make up most of the bill.
- Read less. Select only the columns you need, partition and cluster large tables, and require partition filters on them.
- Match the billing model to each workload. Assign scan-heavy projects to a reservation and keep compute-heavy, small-data projects on-demand.
- Stop paying for idle capacity. Right-size baselines, keep autoscaling limits tight and consider fluid scaling for spiky workloads.
- Delete what nobody uses. Unused tables and dead-end tables, which are written but never read, cost storage and the compute that keeps refreshing them.
- Pick the storage model per dataset. Move well-compressed, stable datasets to physical billing; shorten time travel where you don't need seven days.
Masthead does the first five automatically for every project, from logs and metadata: see how. For a full walkthrough, read the BigQuery cost optimization guide.
FAQ
How much does BigQuery cost per TB?
On-demand queries cost $6.25 per TiB scanned in the US and EU multi-regions, after the first 1 TiB each month, which is free. A TiB is 1,024 GiB. Storing a TiB costs about $20.48 a month while it is active and $10.24 once it has been unchanged for 90 days (logical billing, US).
Is BigQuery free?
Every billing account gets 1 TiB of query processing and 10 GiB of storage free each month, and the BigQuery sandbox lets you use that tier without a credit card. Batch loading, copying, exporting and deleting data are free operations.
Do failed queries or cached results cost money?
With on-demand pricing you aren't charged for queries that return an error or for results served from the cache. With editions, any slot time a query used before it failed still counts as slot usage.
Does LIMIT reduce the cost of a query?
No. On-demand cost depends on the columns a query reads, not on the rows it returns, so SELECT * ... LIMIT 10 scans and bills every byte of every column. Select fewer columns and filter on partition and cluster columns instead.
When are BigQuery editions cheaper than on-demand?
When your queries scan a lot of data per slot-hour of compute. In the US, an Enterprise slot-hour at $0.06 costs the same as scanning about 9.8 GiB on-demand. Workloads that scan more than that per slot-hour, typically large scans with simple logic, are cheaper on editions; compute-heavy queries over small data are cheaper on-demand. You can mix both by assigning projects to reservations.
What is a slot-hour?
A slot is a unit of BigQuery compute (a virtual CPU). One slot used for one hour is a slot-hour. Editions bill slot-hours per second, with a one-minute minimum unless the reservation uses fluid scaling.
