Enter base network plus host counts. Get smallest fitting subnets, largest first.
| Network | Mask | Range | Need/Fit |
|---|---|---|---|
| 192.168.1.0/25 | 255.255.255.128 | 192.168.1.1–192.168.1.126 | 100/126 |
| 192.168.1.128/26 | 255.255.255.192 | 192.168.1.129–192.168.1.190 | 50/62 |
| 192.168.1.192/28 | 255.255.255.240 | 192.168.1.193–192.168.1.206 | 10/14 |
Each need gets smallest prefix fitting it, aligned to its size boundary, packed largest-first to minimize waste.
192.168.1.0/24 + [100, 50, 10] → 192.168.1.0/25, 192.168.1.128/26, 192.168.1.192/28Packing big blocks first avoids fragmentation and fits more hosts.
Calculator errors. Drop a requirement or start from a shorter prefix (bigger base).