IP Subnet & VLSM Calculator
IP subnet & VLSM calculator.
Type any IPv4 address with a prefix, mask or wildcard. Get the network, broadcast, host range, binary view and ready-to-paste Cisco commands — then carve a block into right-sized subnets.
Subnet calculator
Accepts 10.20.20.77/26, 10.20.20.77 255.255.255.192 or a Cisco wildcard such as 10.20.20.0 0.0.0.63.
Enter an IPv4 address followed by /prefix (0–32), a subnet mask, or a wildcard mask.
Binary view — network bits · host bits
Cisco IOS / IOS XE snippets
The interface example uses the address you typed when it is a usable host, otherwise the first usable address. OSPF and ACLs use wildcard masks — learn more in the OSPF cheat sheet.
VLSM planner
Give a parent block and one line per subnet (name hosts). Subnets are allocated largest-first so every block lands on a valid boundary with no overlap.
Quick reference
| Prefix | Subnet mask | Wildcard | Usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,214 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,574 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 (point-to-point, RFC 3021) |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 (host route) |
🔒 Every calculation runs in your browser. Nothing you type is sent or stored.
MAG212 CYBER offers network and cybersecurity consultation, plus security seminars for organisations around the world.
