VLSM Calculator with Steps
Variable Length Subnet Masking — allocate subnets based on actual host requirements. VLSM saves IP addresses by using different subnet masks within the same network, unlike fixed-length subnetting which wastes address space on small subnets. Enter a base network, define your subnet requirements by name and host count, then click Calculate VLSM to see the step-by-step allocation.
Enter the parent network in IP/CIDR format
📋 Bulk Paste Mode
Format: Name Hosts (one per line)
How VLSM Works
- Sort by hosts descending — largest first to minimize fragmentation.
- Compute minimum CIDR — CIDR = 32 - ceil(log₂(hosts + 2)).
- Allocate at next boundary — each subnet starts at address divisible by block size.
- Verify no overflow — total ≤ base network capacity.
- Review results — table shows all parameters for each subnet.