VLSM calculator
List the subnets you need and how many hosts each must hold. The calculator sizes each one, allocates them largest-first inside your block with no overlap, and shows the waste. Runs in your browser.
| Subnet | Needed | Network | Host range | Broadcast | Usable |
|---|---|---|---|---|---|
| Office LAN | 100 | 192.168.10.0/25 255.255.255.128 | 192.168.10.1 192.168.10.126 | 192.168.10.127 | 126 (+26) |
| Wi-Fi guests | 50 | 192.168.10.128/26 255.255.255.192 | 192.168.10.129 192.168.10.190 | 192.168.10.191 | 62 (+12) |
| Servers | 20 | 192.168.10.192/27 255.255.255.224 | 192.168.10.193 192.168.10.222 | 192.168.10.223 | 30 (+10) |
| Printers | 10 | 192.168.10.224/28 255.255.255.240 | 192.168.10.225 192.168.10.238 | 192.168.10.239 | 14 (+4) |
| WAN link A | 2 | 192.168.10.240/30 255.255.255.252 | 192.168.10.241 192.168.10.242 | 192.168.10.243 | 2 (+0) |
| WAN link B | 2 | 192.168.10.244/30 255.255.255.252 | 192.168.10.245 192.168.10.246 | 192.168.10.247 | 2 (+0) |
Used 248 of 256 addresses in 192.168.10.0/24; 8 free for growth.
Worked example
The default plan above splits 192.168.10.0/24. The 100-host LAN needs 7 host bits (126 usable), so it gets a /25 at .0. The 50 guests need 6 bits: /26 at .128. Servers (20) take a /27 at .192, printers (10) a /28 at .224, and each WAN link a /30 at .240 and .244. Everything is aligned, nothing overlaps, and .248–.255 is still free.
For a single subnet's details, use the subnet calculator; to split one block into equal parts, use its "split" table. The cheat sheet lists hosts per prefix.