# Data FinOps: How to Measure, Attribute and Cut BigQuery Costs | Masthead

Data FinOps playbook for BigQuery: how BigQuery bills, how to attribute cost to teams, pipelines and tables, the levers that cut spend, KPIs and a 30-day plan, with ready-to-run SQL.

> For the index of this section of the site, see [llms.txt](https://mastheadata.com/llms.txt)

Data FinOps playbook

# Data FinOps for BigQuery

Data FinOps is FinOps applied to the data platform: every BigQuery dollar gets an owner, a purpose and a unit cost, and waste is removed continuously instead of in a yearly cost-cutting panic. This playbook covers how BigQuery bills, how to attribute it, the levers that cut it, and the SQL to measure each step.

## Why a data platform needs its own FinOps

The cloud bill tells you that BigQuery cost more this month. It doesn't tell you which dashboard refreshes every five minutes on a 20 TiB table, which dbt model rebuilds its full history every night, or which team's pipeline writes a table nobody has read since spring. In a data platform, one Google Cloud project serves many teams, and cost is caused by queries, pipeline runs and tables, not by projects.

That is why [Data FinOps](https://mastheadata.com/glossary/data-finops.md) works one level down from cloud FinOps. The detail it needs is already there: BigQuery records every job, with who ran it, what it read and wrote, the bytes it billed and the slot time it used, in [INFORMATION\SCHEMA.JOBS](https://mastheadata.com/bigquery/sql/information-schema-jobs.md) and in Cloud Audit Logs. Storage is reported per table in `TABLE_STORAGE`. Data FinOps turns that metadata into owners, unit costs and decisions.

## Where BigQuery money goes

*   **Compute**: either on-demand, at $6.25 per TiB scanned (US and EU multi-regions, first TiB a month free), or capacity, at $0.04 to $0.10 per slot-hour depending on the edition. The model is chosen per project. For most teams compute is the larger part of the bill.
*   **Storage**: $0.02 per GiB-month for active logical data and $0.01 for data unchanged for 90 days, or the physical (compressed) rates, which also charge for time travel and fail-safe.
*   **Everything else**: streaming ingestion, the Storage Read API, BI Engine and cross-region transfer.

Every price and how they interact: [BigQuery pricing explained](https://mastheadata.com/bigquery/pricing.md). To model your own numbers: the [BigQuery pricing calculator](https://mastheadata.com/bigquery/pricing-calculator.md).

## Inform: make spend visible and give it owners

The FinOps lifecycle has three phases: inform, optimize, operate. Inform comes first because nobody optimizes a cost they can't see or don't own. For BigQuery, attribution has layers, from what you get for free to what needs a little discipline:

1.  **Project and principal.** Every job has both. Cost per project and per user or service account needs no setup.
2.  **Labels.** Job labels for team, product or cost center, set by client code, `bq --label` or `SET @@query_label`. Measure the unlabeled share and drive it down.
3.  **Tools.** dbt comments every query with the model that ran it, Airflow labels jobs with the DAG and task, Looker Studio labels them with the data source. That gets cost to the pipeline and the dashboard.
4.  **Tables and data products.** Group tables into [data products](https://mastheadata.com/glossary/data-product.md) and you can state the [unit cost](https://mastheadata.com/glossary/unit-cost.md) of each: what it costs to build, store and serve, against who uses it.

[BigQuery cost by project across the organization](https://mastheadata.com/bigquery/cost-queries/cost-by-project.md)[BigQuery cost by user and service account](https://mastheadata.com/bigquery/cost-queries/cost-by-user.md)[BigQuery cost by label: team, product or pipeline](https://mastheadata.com/bigquery/cost-queries/cost-by-label.md)[BigQuery cost per dbt model](https://mastheadata.com/bigquery/cost-queries/dbt-model-cost.md)[BigQuery cost of Looker Studio dashboards](https://mastheadata.com/bigquery/cost-queries/looker-studio-cost.md)[BigQuery cost per Airflow DAG and task](https://mastheadata.com/bigquery/cost-queries/airflow-dag-cost.md)

A first look at where the money goes takes one query:

```
SELECT
  project_id,
  user_email,
  ROUND(SUM(total_bytes_billed) / POW(1024, 4) * 6.25, 2) AS est_on_demand_usd,
  ROUND(SUM(total_slot_ms) / 3600000, 1)                  AS slot_hours
FROM `region-us`.INFORMATION_SCHEMA.JOBS_BY_ORGANIZATION
WHERE creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
  AND job_type = 'QUERY'
  AND statement_type != 'SCRIPT'
GROUP BY project_id, user_email
ORDER BY est_on_demand_usd DESC
LIMIT 25;
```

## Optimize: use less, and pay less for what you use

### Usage: stop paying for work nobody needs

*   **The top queries.** A handful of jobs usually makes up most of the compute bill. Fix those first: select fewer columns, filter on partition and cluster columns, make full rebuilds incremental.
*   **Tables nobody reads.** [Unused tables](https://mastheadata.com/glossary/unused-table.md) cost storage; [dead-end tables](https://mastheadata.com/glossary/dead-end-table.md), still refreshed but never read, also cost every refresh.
*   **Repeated work.** Dashboards and scheduled queries that recompute the same aggregates are candidates for materialized views, summary tables, BI Engine or a slower schedule.
*   **Failures and retries.** Failed jobs are free on-demand, but under editions their slot time is spent, and every retry spends it again.

[Find the most expensive queries in BigQuery](https://mastheadata.com/bigquery/cost-queries/most-expensive-queries.md)[Find SELECT \ queries that scan whole tables](https://mastheadata.com/bigquery/cost-queries/select-star-queries.md)[Find repeated BigQuery queries and cache misses](https://mastheadata.com/bigquery/cost-queries/repeated-queries.md)[Which BigQuery tables drive query cost](https://mastheadata.com/bigquery/cost-queries/cost-by-table.md)[Find unused BigQuery tables](https://mastheadata.com/bigquery/cost-queries/unused-tables.md)[Find dead-end tables: written but never read](https://mastheadata.com/bigquery/cost-queries/dead-end-tables.md)[Failed BigQuery jobs and the slots they waste](https://mastheadata.com/bigquery/cost-queries/failed-jobs-cost.md)

### Rates: pay the right price for each workload

*   **On-demand or editions, per project.** Scan-heavy workloads are cheaper on editions, compute-heavy ones on-demand; the break-even for Enterprise in the US is about 9.8 GiB scanned per slot-hour. Mix both by assigning only some projects to a reservation.
*   **Right-size capacity.** Baseline slots and commitments bill around the clock; autoscaling bills in steps of 50 slots and, without [fluid scaling](https://mastheadata.com/glossary/fluid-scaling.md), for at least a minute. Size them from your actual slot curve.
*   **Storage billing model per dataset.** Physical billing wins for well-compressed data that doesn't churn; shorten time travel where seven days of history aren't needed.

[On-demand vs editions: which is cheaper per project](https://mastheadata.com/bigquery/cost-queries/on-demand-vs-editions.md)[BigQuery slot usage by hour](https://mastheadata.com/bigquery/cost-queries/slot-usage-by-hour.md)[Peak and p95 BigQuery slot usage](https://mastheadata.com/bigquery/cost-queries/peak-slot-usage.md)[Logical vs physical storage billing: which datasets to switch](https://mastheadata.com/bigquery/cost-queries/logical-vs-physical-storage.md)[Find tables paying for time travel and fail-safe storage](https://mastheadata.com/bigquery/cost-queries/time-travel-storage-cost.md)

## Operate: guardrails so savings stick

*   **Maximum bytes billed** on scheduled and BI queries: a query that would scan more fails instead of running up the bill.
*   **Custom quotas** on query bytes per user or per project per day, for sandboxes and analyst projects.
*   **Require partition filters** on large partitioned tables, so a missing date filter is an error, not a full scan.
*   **A labeling policy** for pipelines and BI tools, checked by the unlabeled share in the cost-by-label query.
*   **Budgets and alerts** in Cloud Billing for totals, and job-level alerts for spikes, since the invoice arrives after the money is spent.
*   **A monthly review** per team: their cost, their unit costs, their unused and dead-end tables.

## Metrics to track

| Metric | What it tells you | Where it comes from |
| --- | --- | --- |
| Share of spend attributed | How much of the bill has an owner beyond a project | JOBS labels, dbt comments, principals |
| Cost per data product | Unit economics: is a product worth what it costs to run | JOBS and TABLE\_STORAGE grouped by product |
| GiB scanned per slot-hour | Whether a project belongs on on-demand or editions | JOBS: total\_bytes\_billed and total\_slot\_ms |
| Billed vs used slot-hours | Idle capacity in reservations | Reservation billing vs JOBS\_TIMELINE |
| Spend on unused and dead-end tables | Pure waste, removable without changing any consumer | TABLE\_STORAGE joined with JOBS |
| Storage growth per month | Whether retention and expiration policies work | TABLE\_STORAGE over time |

## A 30-day plan to start

1.  **Week 1, see it.** Run cost by project, cost by user, the most expensive queries, unused tables and dead-end tables. Share the results with the teams they belong to.
2.  **Week 2, fix the top.** Rewrite or reschedule the ten most expensive queries; switch off the dead-end pipelines their owners confirm.
3.  **Week 3, fix the rates.** Compare on-demand and editions per project, right-size reservations from the slot curve, and move well-compressed datasets to physical storage.
4.  **Week 4, lock it in.** Labels on every pipeline, maximum bytes billed on BI and scheduled queries, partition filters required on large tables, and a monthly cost review per team.

## What teams have saved

*   [Mnemonic](https://mastheadata.com/case-study/mnemonic.md) cut its cloud compute cost by 20% within 24 hours of onboarding, by finding a few costly queries and an unnecessary process.
*   [VEED](https://mastheadata.com/case-study/veed.md) reduced BigQuery compute cost by about 30% with cost observability across its platform.
*   [Vodafone Czech Republic](https://mastheadata.com/case-study/vodafone.md) cut BigQuery compute cost by 30%, validated on the first day of optimization, after moving off on-premises infrastructure.

Masthead does the attribution and the waste detection on this page automatically, for every project, from logs and metadata: no access to your data and no extra BigQuery cost. [See how it works](https://mastheadata.com/reduce-cloud-bill.md), or define [data products](https://mastheadata.com/data-products.md) with their unit cost.

## FAQ

What is Data FinOps?

Data FinOps is the practice of managing the cost of a data platform the way FinOps manages cloud cost: make spend visible and attributed to the teams and products that cause it, optimize usage and rates, and put guardrails in place so savings stick. On BigQuery that means attributing query and storage cost to projects, users, pipelines, tables and data products.

How is Data FinOps different from cloud FinOps?

Cloud FinOps works from the billing export, which stops at SKUs, projects and labels. In a data platform one project serves many teams, pipelines and dashboards, so the useful unit is the query, the pipeline run and the table. That level of detail lives in INFORMATION\_SCHEMA and Cloud Audit Logs, not in the invoice.

What are the quickest BigQuery cost wins?

Usually: fixing the handful of queries that make up most of the spend, switching off pipelines that build tables nobody reads, choosing on-demand or editions per project instead of for the whole organization, and moving well-compressed datasets to physical storage billing.

How do I attribute BigQuery cost to teams?

Start with what BigQuery already records: the project and the principal (`user_email`) of every job. Then add job labels for team or product, and use the labels and comments that dbt, Airflow and Looker Studio add to their jobs. The [cost by label](https://mastheadata.com/bigquery/cost-queries/cost-by-label.md) query shows how much spend is still unlabeled.

Who should own Data FinOps?

The data platform team owns the tooling and the numbers; each data product or domain team owns its own spend. Finance needs the same numbers in money, per team and per month, which is what showback provides.

## Keep going

[All cost queries](https://mastheadata.com/bigquery/cost-queries.md)[BigQuery pricing explained](https://mastheadata.com/bigquery/pricing.md)[Pricing calculator](https://mastheadata.com/bigquery/pricing-calculator.md)[Keep GA4 queries cheap](https://mastheadata.com/bigquery/ga4/query-cost-control.md)[Public datasets and their query cost](https://mastheadata.com/bigquery/public-datasets.md)[Data FinOps (glossary)](https://mastheadata.com/glossary/data-finops.md)[Cost attribution](https://mastheadata.com/glossary/cost-attribution.md)[Showback and chargeback](https://mastheadata.com/glossary/showback-and-chargeback.md)[BigQuery cost optimization guide](https://mastheadata.com/blog/bigquery-cost-optimization-guide.md)[Slot efficiency guide](https://mastheadata.com/slot-efficiency-guide.md)