Price a Compute Engine fleet from custom vCPU and memory rates with sustained use, committed use and Spot discounts.
Custom machine types price vCPU and memory on two independent meters, so the hourly rate is a sum rather than a lookup. Sustained use discounts are applied automatically and grow with how much of the month the instance runs — the first quarter of the month earns nothing and the full maximum only lands at a complete month — while committed use discounts and Spot replace the list rate outright. Compute is normally the biggest line on a Google Cloud invoice and the same shape can differ by more than half between on-demand and a 3-year commitment or Spot, so the model you pick matters more than the size you pick. Confirm the current per-vCPU and per-GB rates for your region in the Google Cloud pricing calculator before committing.
Compute Engine Cost
monthly = instances × (vCPU × vCPU rate + GB × GB rate) × hours × usage share × (1 − discount), where the sustained use discount ramps as max × (usage share − 25%) ÷ 75%.
monthly = instances × (vCPU × vCPU rate + GB × GB rate) × hours × usage share × (1 − discount), where the sustained use discount ramps as max × (usage share − 25%) ÷ 75%. Custom machine types price vCPU and memory on two independent meters, so the hourly rate is a sum rather than a lookup. Sustained use discounts are applied automatically and grow with how much of the month the instance runs — the first quarter of the month earns nothing and the full maximum only lands at a complete month — while committed use discounts and Spot replace the list rate outright.
Compute is normally the biggest line on a Google Cloud invoice and the same shape can differ by more than half between on-demand and a 3-year commitment or Spot, so the model you pick matters more than the size you pick. Confirm the current per-vCPU and per-GB rates for your region in the Google Cloud pricing calculator before committing.
This calculator takes 12 inputs: Number of instances, vCPUs per instance, Memory per instance, Price per vCPU-hour, Price per GB-hour, Hours in the billing month, Share of the month the instance runs, Pricing model, Maximum sustained use discount, 1-year commitment discount, 3-year commitment discount, Spot discount. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
No. Committed use discounts replace the on-demand rate for the covered resources, so sustained use discounts do not also apply to them. This calculator therefore applies one model at a time, which is how the invoice behaves.