AWS VPC Subnet Calculator
Plan AWS VPC public and private subnet CIDR allocations across Availability Zones and export the result as CSV.
Step 1
VPC settings
Start with the VPC range and Region. The AZ count uses AWS published availability as a planning default.
Step 2
Configure subnet groups
Public groups are allocated before private groups. Each group expands across the selected AZs.
Public subnets
Public subnet groups are allocated first for load balancers, NAT gateways, and ingress paths.
Private subnets
Private subnet groups are allocated after public ranges for application, data, and internal tiers.
Plan VPC subnet CIDR ranges before you deploy
Use this calculator to split an AWS VPC IPv4 CIDR block into public and private subnet ranges across Availability Zones. It validates AWS VPC sizing rules, accounts for reserved subnet IPs, and exports the allocation plan as CSV.
How to use the AWS VPC subnet calculator
- Enter the VPC CIDR block, such as
10.0.0.0/16. - Select the AWS Region and toggle the Availability Zones to include in the plan.
- Configure public and private subnet groups with a name, CIDR mask, and subnet count per AZ.
- Review the calculated allocation table and remaining VPC capacity.
- Download the CSV when you want to document or review the subnet plan.
Subnet planning notes
AWS reserves five IP addresses in every subnet, so a /24 has 251 usable IPv4 addresses instead of 256. The calculator also warns about 172.17.0.0/16 because AWS documents service conflicts with that range. If you want to estimate gateway, endpoint, NAT, and data transfer costs for this network design, use the Amazon VPC pricing calculator.
Building a compliant network foundation? Pair this with an AWS Landing Zone or AWS Security Review to turn the plan into secure VPC infrastructure, routing, guardrails, logging, and account-level controls.
Frequently asked questions
What subnet size should I choose?
Why does AWS reserve five IP addresses per subnet?
Can my AWS account have fewer Availability Zones than this tool shows?
Does the calculator prevent overlapping subnet CIDRs?
Related tools
AWS IAM Policy Validator
Validate and test AWS IAM JSON policy documents with inline errors, warnings, and Access Analyzer-inspired security checks.
IAM Policy Converter
Convert AWS IAM JSON policy documents into Terraform, CloudFormation, CDK TypeScript, or CDK Python snippets.
Amazon VPC Endpoint policy generator
Generate VPC endpoint policies from AWS Policy Generator action metadata and export JSON, Terraform, or CloudFormation snippets.
Next step
Want AWS engineering that feels this practical?
I build these tools to make AWS easier to manage. If this level of quality is what you want in your own cloud platform, Towards The Cloud can help with landing zones, infrastructure as code, security reviews, migrations, and cost optimization.