Skip to main content

GCP Pricing Calculator

Google Cloud Compute Engine machine types, pricing models, discounts, and cost-optimization strategies — all in one place.

✓ Machine type comparison ✓ Committed Use Discounts guide ✓ Spot VM & preemptible pricing ✓ GKE & Cloud Run breakdown

GCP Compute Engine Machine Families

Google Cloud organizes Compute Engine into distinct machine families, each optimized for different workload profiles. Choosing the right family is the single biggest lever for cost optimization — differences of 30–50% in hourly rate are common between families for equivalent resource counts.

E2 (Economy): Best price-performance for general workloads. Uses a shared-core model with dynamic resource allocation. No Sustained Use Discounts, but very low baseline cost. Great for web servers, small databases, and development environments.

N2 / N2D (General Purpose): Balanced performance for a broad range of workloads. N2 uses Intel Cascade Lake processors, N2D uses AMD EPYC. Both support Sustained Use Discounts and Committed Use Discounts. Recommended for production workloads needing consistent performance.

C2 / C2D (Compute-Optimized): Highest per-core performance on GCP. Ideal for gaming, HPC, ad serving, and CPU-intensive analytics. Higher hourly cost but fewer cores needed for the same throughput. C2D (AMD) offers slightly better price-performance than C2 (Intel) for vectorized workloads.

T2D (Scale-Out): AMD EPYC Milan processors with excellent single-threaded performance and competitive pricing. Best for scale-out workloads like web serving, containerized microservices, and media transcoding.

Common Machine Type Pricing (us-central1, on-demand)

Machine Type vCPUs Memory On-Demand/hr 1-yr CUD/hr Spot/hr (est.)
e2-standard-2 2 8 GB $0.0670 $0.0420 ~$0.0067
e2-standard-4 4 16 GB $0.1340 $0.0841 ~$0.0134
n2-standard-4 4 16 GB $0.1942 $0.1217 ~$0.0194
n2-standard-8 8 32 GB $0.3884 $0.2434 ~$0.0388
c2-standard-8 8 32 GB $0.4170 $0.2627 ~$0.0417
t2d-standard-4 4 16 GB $0.1712 $0.1075 ~$0.0171

Prices are approximate and subject to change. Always verify current pricing at cloud.google.com/compute/all-pricing. Spot VM prices fluctuate based on regional capacity.

Pricing Models: On-Demand, Spot, and Committed Use

GCP offers multiple pricing models that can dramatically reduce your compute bill. Understanding when to use each is the key to cloud cost optimization.

GKE Pricing Breakdown

Google Kubernetes Engine has a straightforward pricing model: you pay for the cluster management fee plus the underlying Compute Engine nodes.

GKE Component Pricing Notes
Cluster management fee $0.10/hour (~$73/mo) Per cluster; one free zonal cluster per account
Worker nodes Standard Compute Engine rates All discounts (CUD, Spot, SUD) apply
Autopilot pods $0.0445/vCPU-hr + $0.0049/GB-hr Billed per pod resource request, not node
Persistent disk $0.04/GB-mo (standard) / $0.17/GB-mo (SSD) PersistentVolumeClaims billed separately

Cloud Run Pricing

Cloud Run is GCP's fully managed serverless container platform. You pay only for what you use — there is no charge when your service is not handling requests.

For a service handling 10 million requests/month, each taking 200ms with 1 vCPU and 256 MB RAM, the estimated Cloud Run cost is approximately $80–100/month — often significantly cheaper than a dedicated VM that sits idle between traffic spikes.

Cost Optimization Strategies

Frequently Asked Questions

What is the cheapest GCP Compute Engine machine type for general workloads?▼

E2 machine types are generally the most cost-effective for general-purpose workloads. An e2-standard-2 (2 vCPUs, 8 GB RAM) costs approximately $0.067/hour on-demand in us-central1. For even lower costs, consider E2 Spot VMs which can be up to 91% cheaper, though they may be preempted with 30 seconds notice.

How do Committed Use Discounts (CUDs) work on GCP?▼

Committed Use Discounts require you to commit to a minimum level of resources (vCPUs and memory) for either 1 year or 3 years in exchange for discounted prices. 1-year CUDs offer approximately 37% off on-demand pricing, while 3-year CUDs offer up to 55% off. CUDs are flexible — they apply automatically to any matching VM in the same region, not tied to specific instances.

What is the difference between Preemptible VMs and Spot VMs on GCP?▼

Spot VMs are the successor to Preemptible VMs on GCP. Both offer deeply discounted compute (up to 91% off) in exchange for the possibility of being interrupted. The key difference is that Preemptible VMs had a maximum runtime of 24 hours, while Spot VMs have no maximum runtime limit. However, both can be reclaimed by Google with 30 seconds notice when capacity is needed elsewhere.

Does GCP offer automatic discounts without any commitment?▼

Yes — Sustained Use Discounts (SUDs) are applied automatically when you run N1, N2, or N2D machine types for a significant portion of the billing month. The discount scales up to 30% for instances running the full month. No sign-up or commitment is required; GCP calculates SUDs automatically based on usage. Note that E2, T2D, and C2 machine types do not qualify for SUDs.

How is Google Kubernetes Engine (GKE) priced?▼

GKE charges $0.10/hour per cluster for cluster management (Autopilot or Standard mode with 1+ nodes), which is approximately $73/month. However, one Zonal cluster per billing account is free. Node VMs are billed at standard Compute Engine rates. GKE Autopilot pricing is based on pod resource requests (vCPU, memory, storage) rather than node capacity, which can be more efficient for variable workloads.

When should I choose Cloud Run over Compute Engine?▼

Cloud Run is ideal for stateless HTTP workloads with variable or unpredictable traffic. You pay only for the CPU and memory consumed during request processing (minimum 100ms billing). At low traffic, Cloud Run can scale to zero and cost nothing. Compute Engine is better for stateful applications, long-running background jobs, custom OS requirements, or workloads that run consistently at high utilization where a committed VM would be cheaper.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →