How to use the VLSM subnet planner
- Enter the network you have been given, for example
192.168.10.0/24. - Add a row for each subnet with a name and the number of hosts (devices) it must hold.
- Read the plan: each subnet gets its network address, mask, host range and broadcast address. Copy the table or download it as CSV.
What is VLSM?
VLSM stands for variable length subnet mask. Instead of cutting a network into equal pieces, you give each part a block sized for what it needs. A point-to-point link gets a /30 with two usable addresses, while an office LAN with 100 devices gets a /25 with 126. Far fewer addresses are wasted.
How the planner works
- The subnets are sorted from largest to smallest. Placing the big ones first keeps every block on a valid boundary and avoids gaps.
- For each one, the planner finds the smallest block with enough usable addresses. A subnet needs two more addresses than it has hosts, for the network and broadcast addresses.
- Each block starts where the last one ended.
Worked example
Dividing 192.168.10.0/24 for 100, 50, 25 and 2 hosts:
| Needs | Subnet | Usable hosts |
|---|---|---|
| 100 | 192.168.10.0/25 | 126 |
| 50 | 192.168.10.128/26 | 62 |
| 25 | 192.168.10.192/27 | 30 |
| 2 | 192.168.10.224/30 | 2 |
That leaves 192.168.10.228 to 192.168.10.255 free for later.
Planning tips
- Leave room to grow. If a department has 28 devices today, plan for 60 rather than squeezing it into a /27.
- Remember that the default gateway uses one of the usable addresses.
- Keep related subnets next to each other so they can be summarized into one route.
To look at one subnet in detail, use the subnet calculator.
Private by design
This tool runs entirely in your web browser. Nothing you type or paste is sent to a server, logged or stored, so it is safe to use with internal addresses, configuration files and other work data. There is no sign-up and it keeps working offline once the page has loaded.
Frequently asked questions
What is the difference between VLSM and FLSM?
FLSM (fixed length) cuts a network into subnets that are all the same size. VLSM lets each subnet have its own size, which wastes fewer addresses.
Why are the largest subnets placed first?
A subnet must start on a multiple of its own size. Allocating from largest to smallest guarantees that, with no unusable gaps between blocks.
How many hosts fit in each subnet size?
The block size minus two. A /26 has 64 addresses and 62 usable hosts, a /27 has 30 and a /28 has 14.
Does the planner work with IPv6?
It is built for IPv4, where address space is tight. IPv6 networks normally use a /64 for every segment, so VLSM is rarely needed.