Ad slot — header (728x90)

AWS VPC Subnet Calculator

Last reviewed: May 2026

Planning AWS VPC subnets requires accounting for 5 reserved IP addresses per subnet. Use the interactive planner below to generate a subnet layout for your VPC, then export it as Terraform HCL.

Interactive VPC Subnet Planner

Select tiers and subnet size per tier:

Subnet NameCIDRAvailability ZoneTierAWS Usable IPs
Calculate any CIDR in SubnetSolver →

AWS IP Reservation Rule

AWS reserves 5 IP addresses in every subnet, regardless of size. These are:
  1. .0 — Network address
  2. .1 — VPC router
  3. .2 — DNS server (VPC base + 2)
  4. .3 — Reserved for future use
  5. .255 — Broadcast address (not used by AWS, but reserved)

Usable Hosts by Prefix Length

CIDRTotal IPsAWS ReservedUsable HostsCommon Use
/1665,536565,531Full VPC CIDR block
/204,09654,091EKS node group subnets
/242565251Standard public/private subnet
/2664559Small workload subnet
/2732527Minimal subnet
/2816511Smallest AWS subnet allowed

Common 3-Tier VPC Pattern

A standard 3-tier VPC splits traffic across public, private, and data layers. A typical 10.0.0.0/16 VPC might be carved up as follows:

SubnetCIDRPurposeUsable IPs
public-1a10.0.0.0/24Load balancers, NAT gateways251
public-1b10.0.1.0/24Load balancers, NAT gateways (AZ-b)251
private-1a10.0.10.0/24EC2, EKS worker nodes251
private-1b10.0.11.0/24EC2, EKS worker nodes (AZ-b)251
data-1a10.0.20.0/24RDS, ElastiCache251
data-1b10.0.21.0/24RDS, ElastiCache (AZ-b)251

VPC CIDR Constraints

Open SubnetSolver to plan your VPC →

Related Guides

Ad slot — footer (728x90)