VLSM calculator
List your subnets and how many hosts each needs. The calculator sizes each one, places the largest first, and shows exactly what is left, with the reservation rules of AWS, Azure, Google Cloud and Oracle built in.
Network and broadcast are reserved in each subnet.
| Name | Needs | Subnet | Range | Usable | Spare |
|---|
How the allocation works
Size each subnet
Add the reserved addresses to the host count and round up to the next power of two. 50 hosts plus 2 is 52, so the block is 64 addresses, a /26.
Sort largest first
Big blocks have the strictest alignment. Placing them first keeps every smaller block on a valid boundary.
Place them in order
Each block starts where the last one ended. Whatever remains is split into the fewest aligned free blocks.
More subnet tools
IPv4 subnet calculator
Network, host range, broadcast, mask and wildcard for any IPv4 block
Open toolIPv6 subnet calculator
Prefix ranges, /64 counts, splits and a ULA prefix generator
Open toolVisual subnet planner
Split and join blocks, label them, then share or export the plan
Open toolCIDR and IP range calculator
Turn any start and end address into the fewest CIDR blocks
Open toolSupernet and route summary
Summarise networks into one route or merge them exactly
Open toolWildcard mask calculator
ACL wildcards, matched ranges and ready Cisco lines
Open toolSubnetting practice
Exam-style questions, checked instantly with the working shown
Open toolSubnet mask cheat sheet
Every prefix from /0 to /32 with mask, wildcard and hosts
Open toolIPv6 cheat sheet
Prefix sizes, address types and the reserved ranges
Open tool