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.
Select tiers and subnet size per tier:
| Subnet Name | CIDR | Availability Zone | Tier | AWS Usable IPs |
|---|
| CIDR | Total IPs | AWS Reserved | Usable Hosts | Common Use |
|---|---|---|---|---|
| /16 | 65,536 | 5 | 65,531 | Full VPC CIDR block |
| /20 | 4,096 | 5 | 4,091 | EKS node group subnets |
| /24 | 256 | 5 | 251 | Standard public/private subnet |
| /26 | 64 | 5 | 59 | Small workload subnet |
| /27 | 32 | 5 | 27 | Minimal subnet |
| /28 | 16 | 5 | 11 | Smallest AWS subnet allowed |
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:
| Subnet | CIDR | Purpose | Usable IPs |
|---|---|---|---|
| public-1a | 10.0.0.0/24 | Load balancers, NAT gateways | 251 |
| public-1b | 10.0.1.0/24 | Load balancers, NAT gateways (AZ-b) | 251 |
| private-1a | 10.0.10.0/24 | EC2, EKS worker nodes | 251 |
| private-1b | 10.0.11.0/24 | EC2, EKS worker nodes (AZ-b) | 251 |
| data-1a | 10.0.20.0/24 | RDS, ElastiCache | 251 |
| data-1b | 10.0.21.0/24 | RDS, ElastiCache (AZ-b) | 251 |