Cloud Build Cost Calculator
Cost Cloud Build minutes by machine type after cache savings and the free tier, and check concurrency queueing.
About Cloud Build Cost Calculator
A faster build machine costs more per minute but runs for fewer minutes, so the bill is the product of the two — an e2-highcpu-8 at roughly five times the rate is only worse if it delivers less than a five-fold speed-up. Caching cuts minutes directly, and the free monthly allotment is subtracted afterwards, which is why small teams often pay nothing at all. Build queueing wastes engineer time rather than money, and the queue model here shows how close the concurrency limit is to saturation before developers start complaining. Confirm the per-minute rate for each machine type in the Google Cloud pricing calculator, and remember the free allotment is per billing account.
Formula
Cloud Build Cost
billed minutes = builds × (build time ÷ machine speed-up) × (1 − cache saving) − free minutes; cost = billed minutes × the machine's per-minute rate.
- speed-up
- How much faster the larger machine completes the same build
- cache saving
- Share of build time removed by layer and dependency caching
- load factor
- Peak submission rate divided by what the concurrency limit can clear per hour
Worked example
With the default values below, Cloud Build Cost Calculator returns Monthly Cost of $4.79. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Builds per monthaccepts 0–10,000,000 builds
- 900 builds
- Average build timeaccepts 0.1–1,440 minutes
- 7 minutes
- Build machine typeone of e2-standard-2 (default), e2-highcpu-8, e2-highcpu-32
- e2-standard-2 (default)
- Price per build-minute on the default machineaccepts 0–10 USD/minute
- 0.003 USD/minute
- Price per build-minute on e2-highcpu-8accepts 0–10 USD/minute
- 0.016 USD/minute
- Price per build-minute on e2-highcpu-32accepts 0–10 USD/minute
- 0.064 USD/minute
- Free build-minutes per monthaccepts 0–1,000,000 minutes
- 2,500 minutes
- Build time removed by cachingaccepts 0–95 %
- 35 %
- Speed-up on the larger machineaccepts 1–32 x
- 2.5 x
- Concurrent build slotsaccepts 1–1,000 builds
- 10 builds
- Peak builds submitted per houraccepts 0–100,000 builds
- 90 builds
Results
- Monthly Cost
- $4.79
- Billed Build-Minutes
- 1,595 minutes
- Build-Minutes Consumed
- 4,095 minutes
- Minutes Saved by Caching
- 2,205 minutes
- Rate per Build-Minute
- $0.0030
- Cost per Build
- $0.0053
- Expected Queue Wait at Peak
- 9.8 minutes
- Concurrency Verdict
- Comfortable — builds start almost immediately at the stated peak
Step by step
- 1Values used
- 2Cloud Build Cost
- 3Monthly Cost= 4.79
- 4Billed Build-Minutes= 1,595 minutes
- 5Build-Minutes Consumed= 4,095 minutes
- 6Minutes Saved by Caching= 2,205 minutes
- 7Rate per Build-Minute= 0.0030
- 8Cost per Build= 0.0053
Assumptions and limits
- The result is derived only from the 11 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax 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 Cloud Build Cost calculated?
billed minutes = builds × (build time ÷ machine speed-up) × (1 − cache saving) − free minutes; cost = billed minutes × the machine's per-minute rate. A faster build machine costs more per minute but runs for fewer minutes, so the bill is the product of the two — an e2-highcpu-8 at roughly five times the rate is only worse if it delivers less than a five-fold speed-up. Caching cuts minutes directly, and the free monthly allotment is subtracted afterwards, which is why small teams often pay nothing at all.
Why does Cloud Build Cost matter?
Build queueing wastes engineer time rather than money, and the queue model here shows how close the concurrency limit is to saturation before developers start complaining. Confirm the per-minute rate for each machine type in the Google Cloud pricing calculator, and remember the free allotment is per billing account.
What values do I need to enter?
This calculator takes 11 inputs: Builds per month, Average build time, Build machine type, Price per build-minute on the default machine, Price per build-minute on e2-highcpu-8, Price per build-minute on e2-highcpu-32, Free build-minutes per month, Build time removed by caching, Speed-up on the larger machine, Concurrent build slots, Peak builds submitted per hour. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Is the biggest build machine ever worth it?
When the build genuinely parallelises — large compilations, big test suites — a 32-vCPU machine can pay for itself and return engineer time as well. For a build that spends most of its time pulling dependencies over the network, the extra vCPUs sit idle and you pay the higher rate for nothing.
Related Calculators
- Artifact Registry Storage Calculator
- Container Registry Migration Calculator
- Cloud Run Cost Calculator
- BigQuery Cost Calculator
- Compute Engine Cost Calculator
- Cloud Functions Cost Calculator
- Cloud Monitoring Cost Calculator
- Cloud Scheduler Cost Calculator
- Cloud Spanner Cost Calculator
- Cloud SQL Cost Calculator
You might also need
- Cloud Run Cost CalculatorCommonly used together
- Artifact Registry Storage CalculatorCommonly used together
- Container Registry Migration CalculatorCommonly used together
- BigQuery Cost CalculatorAlso in Google Cloud
- Compute Engine Cost CalculatorAlso in Google Cloud
- Cloud Functions Cost CalculatorAlso in Google Cloud
