VLSM Calculator
Allocate different subnet sizes based on the hosts each network needs.
Subnet allocation
Requested hosts
Allocated addresses
Usable capacity
Unallocated addresses
| Subnet | Hosts needed | Network / CIDR | Subnet mask | First usable | Last usable | Broadcast | Usable hosts | Spare hosts |
|---|
How the VLSM calculation works
Variable Length Subnet Masking divides a parent network into subnets of different sizes. This calculator sorts your requirements from largest to smallest and assigns each subnet the smallest power-of-two block that fits its hosts plus the network and broadcast addresses.
For example, 50 hosts need a block of 64 addresses: a /26 subnet with 62 usable hosts. Unallocated addresses remain outside the assigned subnets; spare hosts are unused usable addresses inside them.