dwhat

Free tool · BigQuery on-demand

BigQuery recurring query cost calculator

Before you switch on a dashboard's refresh or a scheduled query, work out what it would cost each day and each month in BigQuery on-demand query processing — and what it would cost at a slower interval.

Nothing you type leaves this page. The figures are worked out by this page's JavaScript; they are not sent, stored or put in the address. No account and no warehouse access needed.

1. Get the bytes a query will process

BigQuery tells you before you run a query. In the console, the query validator above the results says "This query will process … when run". From the command line, bq query --dry_run prints the same estimate, and the API returns it for a job with dryRun set. Google does not charge for a dry run. Use the figure for each query the dashboard or schedule runs.

Google's documentation:Estimate and control costsand Run a query: dry run.

2. Describe the schedule

6.25 is an example: the US multi-region list price when this page was written. Prices differ by region, contract and currency, and change — check BigQuery pricing.

A refresh counts only when a whole interval fits in the active hours: 8 hours every 7 minutes is 68 refreshes, not 68.6. For a query run once a day, set the interval to 24 hours and the active hours to 24.

3. The estimate

What this estimate leaves out

Google documents the dry-run figure as an upper bound inEstimate and control costs, and that cached results are not charged inUse cached query results. Minimums, rounding and the free tier are on BigQuery pricing.

Want each run to stop if it would cost more than a budget? Set a ceiling with themaximum bytes billed calculator. On a reservation instead? Weigh a month of on-demand against slots with theon-demand vs capacity break-even worksheet.

Compare it with what you actually spend

An estimate is what a query should cost. Your project's job history says what each refresh did cost — by user, dbt model and dashboard — and which queries repeat most often.

Check your actual query costs with a free auditOr audit a CSV export in your browser

Writing about BigQuery costs?

Put this calculator in your own article, so readers can try a refresh schedule while they read: embed this calculator. It is one iframe, with no account and no tracking.

Related guides