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)

Subnet Requirements
01
02

How VLSM Works

  1. Sort by hosts descending — largest first to minimize fragmentation.
  2. Compute minimum CIDR — CIDR = 32 - ceil(log₂(hosts + 2)).
  3. Allocate at next boundary — each subnet starts at address divisible by block size.
  4. Verify no overflow — total ≤ base network capacity.
  5. Review results — table shows all parameters for each subnet.

Read the full VLSM tutorial →