Networking

VLSM Subnet Planner

Carve a network into right-sized subnets for a list of host requirements.

Host count is the usable devices you need. Allocated largest-first so the blocks pack tightly.

Allocation

SubnetNetworkMaskUsable rangeUsableNeed

Variable-length subnetting, done right

VLSM (Variable Length Subnet Masking) carves one network into subnets of different sizes, so a link needing 2 hosts gets a /30 while a floor needing 120 gets a /25 — no address waste from forcing everything to the same mask. This planner takes your base network and a list of how many hosts each subnet needs, then assigns each the smallest block that fits.

How it allocates

Subnets are sorted largest first and packed from the start of the base network, each aligned to its own block boundary. Largest-first keeps the blocks contiguous with no gaps, which is exactly how you'd lay it out by hand. Each block's size is the next power of two at least two larger than the host count (one address for the network, one for broadcast); a /30 is the smallest LAN block (2 usable), and point-to-point links that need just 2 hosts land there. The summary shows how much of the base you've used. Everything runs in your browser — nothing is sent anywhere.

These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.