Ad slot — header (728x90)

GCP VPC Subnet Calculator

Last reviewed: May 2026

Plan Google Cloud VPC subnets with correct IP reservation counts. GCP reserves 4 IPs per subnet — one fewer than AWS/Azure. Use the interactive planner below to generate subnets with optional GKE secondary ranges, then export Terraform.

Interactive GCP VPC Subnet Planner

Primary subnets:

GKE node IPs — primary range
General workload subnet
Required for Envoy-based Load Balancers

GKE Secondary Ranges (added to nodes subnet)

Subnet / Range NameCIDRTypeGCP Usable IPsPurpose
Calculate GCP VPC CIDRs in SubnetSolver →

GCP IP Reservation Rule

GCP reserves 4 IP addresses in every subnet — one fewer than AWS. These are:
  1. .0 — Network address
  2. Second address — Default gateway (e.g., .1 in most subnets)
  3. Second-to-last address — Reserved by Google Cloud
  4. .255 (last address) — Broadcast address

For example, in a 10.0.0.0/24 subnet: .0, .1, .254, and .255 are reserved — leaving 252 usable addresses.

Auto Mode vs Custom Mode VPC

GCP offers two VPC creation modes with significant operational differences:

FeatureAuto ModeCustom Mode
Subnet creationAutomatic (one per region)Manual, full control
CIDR rangePredefined /20 from 10.128.0.0/9Any valid RFC 1918 range
VPC peeringLimited (overlapping ranges)Recommended for peering
Production workloadsNot recommendedRecommended
Use custom mode VPCs for production. Auto mode VPCs use predictable CIDR ranges that frequently conflict with on-premises networks. You cannot convert an auto mode VPC back to custom mode once created.

GCP VPC Design Best Practices

Plan your GCP VPC in SubnetSolver →

Related Guides

Ad slot — footer (728x90)