Glossary · BigQuery
What is logical vs physical storage billing?
BigQuery bills storage either on logical (uncompressed) bytes, the default, or on physical (compressed) bytes, chosen per dataset. Physical costs twice as much per GiB but counts compressed bytes plus time travel and fail-safe, so it is cheaper when data compresses well and changes little.
The two models
Every BigQuery dataset uses one of two storage billing models:
- Logical (default): billed on uncompressed bytes, at $0.02 per GiB-month for active storage and $0.01 for long-term storage in the US multi-region. Time travel and fail-safe storage is included at no extra charge.
- Physical: billed on compressed bytes, at $0.04 per GiB-month active and $0.02 long-term. Time travel and fail-safe bytes are billed separately, at the active physical rate.
The first 10 GiB each month is free under either model. Switching changes only the meter: BigQuery always stores data compressed, so nothing is migrated and queries run the same.
The break-even
Physical costs twice as much per GiB, so it wins when compression is better than 2:1 after you add the time travel and fail-safe bytes physical billing charges for. For example, 10 TiB of active logical data costs $204.80 a month on logical billing. If it compresses to 2 TiB, physical billing costs $81.92, plus $40.96 for every TiB of changed or deleted data held in time travel and fail-safe. Append-only tables that compress well tend to come out ahead on physical billing. Tables rebuilt with CREATE OR REPLACE or truncated every day send their previous contents to time travel and fail-safe on each run, and can end up behind.
Compare the models in INFORMATION_SCHEMA
INFORMATION_SCHEMA.TABLE_STORAGE has both sets of byte counts for every table. active_physical_bytes already includes time travel bytes, and fail-safe bytes are reported separately, so the physical estimate adds fail_safe_physical_bytes and nothing else:
SELECT
table_schema AS dataset,
ROUND(SUM(IF(deleted, 0, active_logical_bytes)) / POW(1024, 3) * 0.02
+ SUM(IF(deleted, 0, long_term_logical_bytes)) / POW(1024, 3) * 0.01, 2) AS logical_usd_month,
ROUND(SUM(active_physical_bytes + 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(SUM(time_travel_physical_bytes + fail_safe_physical_bytes) / POW(1024, 3), 1)
AS time_travel_and_fail_safe_gib
FROM `region-us`.INFORMATION_SCHEMA.TABLE_STORAGE
WHERE table_type = 'BASE TABLE'
GROUP BY dataset
ORDER BY logical_usd_month DESC;
Logical bytes of deleted tables are excluded because logical billing does not charge for them, while their time travel and fail-safe bytes still count under physical billing. The estimate ignores the free 10 GiB. It is a forecast from current sizes, not an invoice.
Switch a dataset
ALTER SCHEMA analytics
SET OPTIONS (storage_billing_model = 'PHYSICAL');
Before switching:
- The change takes 24 hours, and the dataset is then locked to that model for 14 days.
- Shorten the dataset's time travel window if two days of recovery is enough; under physical billing that shrinks the time travel bytes you pay for.
- Datasets cannot move to physical billing while the organization holds legacy flat-rate slot commitments in the same region; edition commitments do not block it.
- Check per dataset, not per project. Compression varies a lot between raw JSON landing tables and narrow fact tables.
The pricing calculator and BigQuery pricing cover storage rates in other regions.
FAQ
Does switching to physical storage billing affect query performance?
No. The data is always stored compressed; the billing model only changes how stored bytes are metered. Query speed, latency and integrations stay the same, and no data is moved.
How long does a storage billing model change take?
The change takes 24 hours to take effect, and after a change you must wait 14 days before you can change that dataset's model again. Tables and partitions already in long-term storage stay long-term.
When is physical storage billing more expensive?
When data compresses less than about 2:1, or when it changes often. Under physical billing you also pay for time travel and fail-safe bytes at the active physical rate, so tables that are rewritten or truncated every day can cost more than under logical billing.
