Dataflow Cost Calculator
Price a Dataflow pipeline across worker vCPU, memory, shuffle data processed and Streaming Engine.
About Dataflow Cost Calculator
Dataflow bills worker resources by the hour and shuffle volume by the gigabyte, so a pipeline with a wide GroupByKey can spend more on data processed than on workers. Enabling Streaming Engine shifts state off the workers, which lets each worker use a 30 GB disk instead of hundreds of gigabytes — a real saving that the disk line here reflects. Autoscaling means the maximum worker count is a safety limit rather than a cost, so estimating from peak workers overstates the bill badly while ignoring shuffle understates it. Confirm the per-vCPU-hour and per-GB data-processed rates for your region in the Google Cloud pricing calculator.
Formula
Dataflow Cost
cost = average workers × (vCPU × vCPU-hour price + GB × GB-hour price) × hours + GB processed × shuffle or Streaming Engine price + worker disk.
- average workers
- Maximum workers multiplied by the share autoscaling actually used
- data processed
- Bytes moved through shuffle or Streaming Engine, billed separately from compute
- Streaming Engine
- Offloads pipeline state from workers, allowing 30 GB boot disks instead of large ones
Worked example
With the default values below, Dataflow Cost Calculator returns Monthly Cost of $722.74. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Maximum workersaccepts 1–10,000 workers
- 20 workers
- Average share of maximum workers usedaccepts 1–100 %
- 55 %
- vCPUs per workeraccepts 1–96 vCPU
- 4 vCPU
- Memory per workeraccepts 1–624 GB
- 16 GB
- Pipeline hours per monthaccepts 0–744 hours
- 200 hours
- Price per vCPU-houraccepts 0–10 USD/vCPU-hour
- 0.056 USD/vCPU-hour
- Price per GB-houraccepts 0–10 USD/GB-hour
- 0.0036 USD/GB-hour
- Data processed by shuffleaccepts 0–10,000,000 GB
- 5,000 GB
- Batch shuffle price per GBaccepts 0–10 USD/GB
- 0.011 USD/GB
- Use Streaming Engine
- No
- Streaming Engine price per GBaccepts 0–10 USD/GB
- 0.018 USD/GB
- Persistent Disk per workeraccepts 0–65,536 GB
- 400 GB
- Disk price per GB-monthaccepts 0–10 USD/GB-month
- 0.04 USD/GB-month
Results
- Monthly Cost
- $722.74
- Worker Compute Charge
- $619.52
- Data Processed Charge
- $55.00
- Worker Disk Charge
- $48.22
- Billed vCPU-Hours
- 8,800 vCPU-hours
- Average Workers Billed
- 11.0 workers
- Cost per GB Processed
- $0.1445
- Cost per Pipeline Hour
- $3.61
Step by step
- 1Values used
- 2Dataflow Cost
- 3Monthly Cost= 722.74
- 4Worker Compute Charge= 619.52
- 5Data Processed Charge= 55.00
- 6Worker Disk Charge= 48.22
- 7Billed vCPU-Hours= 8,800 vCPU-hours
- 8Average Workers Billed= 11.0 workers
Assumptions and limits
- The result is derived only from the 13 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 4 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Dataflow Cost calculated?
cost = average workers × (vCPU × vCPU-hour price + GB × GB-hour price) × hours + GB processed × shuffle or Streaming Engine price + worker disk. Dataflow bills worker resources by the hour and shuffle volume by the gigabyte, so a pipeline with a wide GroupByKey can spend more on data processed than on workers. Enabling Streaming Engine shifts state off the workers, which lets each worker use a 30 GB disk instead of hundreds of gigabytes — a real saving that the disk line here reflects.
Why does Dataflow Cost matter?
Autoscaling means the maximum worker count is a safety limit rather than a cost, so estimating from peak workers overstates the bill badly while ignoring shuffle understates it. Confirm the per-vCPU-hour and per-GB data-processed rates for your region in the Google Cloud pricing calculator.
What values do I need to enter?
This calculator takes 13 inputs: Maximum workers, Average share of maximum workers used, vCPUs per worker, Memory per worker, Pipeline hours per month, Price per vCPU-hour, Price per GB-hour, Data processed by shuffle, Batch shuffle price per GB, Use Streaming Engine, Streaming Engine price per GB, Persistent Disk per worker, Disk price per GB-month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Why is my shuffle charge larger than my compute charge?
Because shuffle is billed per GB moved and a single GroupByKey or join can move many times your input volume. Reducing key cardinality, filtering earlier in the graph and using combiners to pre-aggregate all cut shuffle bytes directly.
