VLSM Calculator

Split a base IPv4 network into subnets of different sizes (Variable Length Subnet Mask). Enter the base network and the hosts each subnet needs. Each subnet gets the smallest block that fits, and the leftover space is listed as free blocks.

How to Use the VLSM Calculator

  1. Enter the base network: an IP address and a subnet mask or CIDR prefix.
  2. Enter the usable hosts each subnet needs, separated by commas, for example 100, 50.
  3. Press Calculate. Results also update as you type.
  4. Review the subnets, then the free blocks, which are the space left over.

Example Calculation

For 192.168.1.0/24 with 100 and 50 hosts, Subnet 1 is 192.168.1.0/25 (126 usable hosts) and Subnet 2 is 192.168.1.128/26 (62 usable hosts). Subnet 1 is placed first because it is the largest. The remaining space, 192.168.1.192/26, is listed as a free block.