GCP Pricing Calculator
Google Cloud Compute Engine machine types, pricing models, discounts, and cost-optimization strategies — all in one place.
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.
- On-Demand: Full price, no commitment. Best for unpredictable workloads, new projects, or short-term needs. No upfront payment.
- Spot VMs: Up to 91% discount vs on-demand. VMs can be preempted with 30 seconds notice. Ideal for batch jobs, CI/CD pipelines, data processing, and fault-tolerant workloads.
- Committed Use Discounts (1-year): ~37% off on-demand. No upfront payment required. Best for stable production workloads running 24/7.
- Committed Use Discounts (3-year): Up to 55% off on-demand. Requires a 3-year commitment on resource spend in a region. Maximum savings for long-term infrastructure.
- Sustained Use Discounts (automatic): Applied automatically for N1/N2/N2D VMs running 25%+ of the month. Scales up to 30% for full-month usage. No action required.
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.
- CPU: $0.00002400/vCPU-second (billed only during request processing)
- Memory: $0.00000250/GB-second
- Requests: $0.40 per million requests
- Free tier: 2 million requests/month, 360,000 vCPU-seconds, 180,000 GB-seconds — enough for many small services at zero cost
- CPU always-on option: CPU is allocated for the full instance lifetime (even between requests), allowing background work. Priced at a slight premium but with always-allocated CPU charges.
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
- Right-size before committing: Use Cloud Monitoring to identify underutilized VMs and right-size them before purchasing CUDs.
- Mix Spot and on-demand: Use managed instance groups with a mix of Spot VMs (80%) and on-demand (20%) for fault-tolerant workloads to save 70%+.
- Use regional commitments: CUDs apply to any matching VM in a region — you can upgrade, downgrade, or change machine types without losing the discount.
- Enable SUD automatically: N2 and N2D machines accrue Sustained Use Discounts automatically. No configuration needed — just avoid restarting VMs mid-month unnecessarily.
- Consider Cloud Run for APIs: Variable-traffic APIs and microservices are almost always cheaper on Cloud Run than on always-on VMs at moderate request volumes.
- Use committed use for GKE nodes: GKE node pools run on Compute Engine — all VM discounts apply. Apply CUDs to the node machine types for maximum savings.
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.
Related Products
on GumroadPremium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
GCP Service Account Key Checker
Validate GCP service account key JSON files. Checks required fields, client_email format, private key format, and security best practices. 100% local.
Open free tool →
AWS Cost Estimator
Estimate monthly AWS costs for EC2, RDS, S3, CloudFront, and Load Balancers. Interactive calculator with itemized breakdown.
Open free tool →
GCP Service Account Key Auditor
Audit GCP service account key JSON files for security best practices. Check structure, detect risky naming patterns, and get remediation commands. All processing runs in your browser.
Open free tool →
More Free Tools
Related Articles
Cloud Cost Optimization in 2026: Strategies, Tools, and Real-World Savings
Cut your cloud bill without cutting performance. This practical guide covers FinOps practices, cost allocation, resource optimization, reserved capacity strategies, and the tools that help engineering teams understand and reduce cloud spend.
Kubernetes Cost Optimization: A Practical Guide for 2026
Reduce your Kubernetes costs by 40-60% with rightsizing, VPA/HPA, spot instances, namespace quotas, and cost monitoring tools like Kubecost. Real examples included.
Terraform vs Pulumi 2026: Infrastructure as Code Comparison with Code Examples
Complete Terraform vs Pulumi comparison for 2026 — syntax, state management, multi-cloud support, testing, pricing, and when to choose each IaC tool.
FinOps Engineering: A Developer's Guide to Cloud Cost Optimization in 2026
A practical guide to FinOps for engineers: AWS, GCP, and Azure cost tools, Infracost for Terraform, right-sizing, spot instances, reserved capacity, auto-scaling, and the FinOps maturity model. With code examples for CI/CD cost gates.
AWS CDK with TypeScript: Build Cloud Infrastructure as Code
Learn AWS CDK with TypeScript from scratch. Understand constructs, stacks, L1/L2/L3 levels, testing, and deployment patterns for production-grade cloud infrastructure.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →