IP calculators

VLSM calculator

Split a network into subnets of different sizes: enter the network and how many hosts each subnet needs.

Separate the numbers with commas. Example: 60, 28, 12, 2 (the 2 is a point-to-point link, a /30).

#NeedsHostsNetworkMaskRangeBroadcast

What does it do?

Splits a network into subnets of different sizes based on how many devices each one needs, and gives you the network, prefix, mask and range of each subnet, plus the space left over.

Why does it matter?

If every subnet is the same size, addresses are wasted: a link between two routers doesn't need 254 IPs. With VLSM each subnet gets exactly the size it needs, which lets you make the most of a small public block or keep a company's address plan in order.

How does it work?

Subnets are sorted from the most to the fewest hosts. Each gets the smallest prefix that fits (counting network and broadcast) and is placed at the next free address aligned to its size. If one doesn't fit in the chosen network, you're told. Everything is calculated in your browser.

How to read the result

Needs
The hosts you asked for in that subnet.
Hosts
The hosts that actually fit with the assigned prefix.
Network and prefix
The assigned subnet, for example 192.168.1.0/26.
Free
The addresses left over for growth, and where they start.

What is it for?

Frequently asked questions

Why are subnets sorted from largest to smallest?

Because large subnets must start at addresses aligned to their size. Placing them first avoids gaps and uses the space better.

How many hosts do I enter for a link between two routers?

2. The calculator assigns a /30.

Should I leave room to grow?

Yes. Ask for a few more hosts than you need today, especially for user and Wi-Fi networks.