IP Tools

VLSM Calculator

Divide one IPv4 block into subnets sized for each network's needs, largest first.

Jump to tool

Subnet requirements

What Is VLSM?

VLSM, or variable length subnet masking, divides one address block into subnets of different sizes, so each network gets roughly the addresses it needs instead of every subnet being the same size. It avoids waste: a two-host router link can get a /30 while a 100-device office gets a /25.

Enter a parent IPv4 block and the number of hosts each subnet needs. The tool allocates the largest subnet first and returns each one's prefix, mask, broadcast address and usable range.

How to Plan Subnets With VLSM

  1. Enter the parent network in CIDR notation, such as 192.168.0.0/24.
  2. Select Add subnet for each network you need, and give it a name and a host count.
  3. Select Calculate.
  4. Read each subnet's prefix, mask, broadcast address and usable range; if they do not fit, start from a larger parent network.

Worked Example: 192.168.0.0/24

Allocating the largest network first keeps every subnet on a clean boundary and leaves 192.168.0.228 to .255 free:

Network (hosts needed)Subnet allocated
Office (100)192.168.0.0/25: .1 to .126, 126 usable
Servers (50)192.168.0.128/26: .129 to .190, 62 usable
Wi-Fi guests (20)192.168.0.192/27: .193 to .222, 30 usable
Router link (2)192.168.0.224/30: .225 to .226, 2 usable

VLSM Planning Tips

  • Sort networks from most to fewest hosts before allocating.
  • Add spare capacity, since resizing a subnet later means renumbering.
  • Keep related networks next to each other so routes can be summarised.
  • If the subnets do not fit, start from a larger parent block.

VLSM Calculator FAQ

Check a single subnet

See the details of any address and prefix.

IP Subnet Calculator