# Subnet Calculator > A free subnet calculator that runs in the browser: type an IPv4 range like 10.0.0.0/16 and get a subnet plan with every range, usable IP count and the space left free, plus CSV, Terraform and AWS CLI exports. https://subnet-calculator.skillsafe.ai/ ## What it does (free, no sign-in, nothing uploaded) - Reads a range as CIDR (10.0.0.0/16) or address and mask (10.0.0.0 255.255.0.0); an address that is not the start of its range is moved to the start, and the page says so. - Layouts: public + private subnets in each of 1 to 6 availability zones, public + private + database, private only, an equal split into 2 to 256 pieces, or subnets sized from the hosts each one needs (VLSM, one "name hosts" line per subnet). - Sizes are picked automatically (optionally keeping half the range free to grow) or set per tier. Largest subnets are placed first so every subnet is aligned and the free space stays in large blocks. - Usable addresses for AWS (5 reserved per subnet), Azure (5), Google Cloud (4) or standard networks (2; /31 and /32 handled). - Free check: host bits set, public or special-purpose address space, AWS VPC size limits (/16 to /28), overlaps with the AWS default VPC, Docker, Kubernetes and EKS service ranges, home-router ranges and any networks you list, small private subnets for containers, one shared NAT gateway, little room to grow, hosts rounded up a lot. - Exports: CSV, Markdown table, JSON, Terraform for AWS (VPC with DNS, subnets, internet gateway, NAT gateways one per zone or shared, route tables), and an AWS CLI script following the same steps. A rough NAT gateway monthly figure (us-east-1 list price) is shown. ## Optional AI step (signed-in, metered) "Review with AI" judges the plan against a described workload (pods, databases, load balancers): a verdict (fits, tight, rework), findings with fixes, optional new per-tier subnet sizes, and notes. The page checks the reply: every check must be answered, everything it mentions must be in the plan, every address it names must be one the page computed, and suggested sizes are re-planned to show whether they fit, with a button to apply them. - API: https://subnet-calculator.skillsafe.ai/api.html - Input fields: `task` ("review"), `network`, `cloud` (aws, azure, gcp, plain), `layout` (tiers2, tiers3, private, equal, hosts), `zones`, `nat` (zone, one, none, n/a), `workload` (optional, up to 400 characters), `plan` (text table: name | tier | zone | cidr | usable, up to 64 rows), `facts` (JSON text: checks, addresses, free ranges, per-tier sizes, reserved addresses, NAT count and price), `clipped_note`. - Output: one ```json object: `task`, `verdict`, `summary`, `findings` (`{severity, about, check, issue, fix}`), `resize` (`{tier, prefix, why}`), `kept` (`{check, reason}`), `notes`. ## Source Adapted from the agent skill @aws/creating-production-vpc-multi-az by AWS (https://github.com/aws/agent-toolkit-for-aws, Apache-2.0): https://skillsafe.ai/skill/@aws/creating-production-vpc-multi-az