Common prefixes from /24 through /30
| CIDR | Mask | Block size | Total addresses | Usable hosts* |
|---|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 4 | 2 |
Swipe horizontally to see the full table.
*Traditional IPv4 LAN host counts subtract the network and broadcast addresses.
Partial-octet values to memorize once
| Network bits in octet | Binary | Decimal |
|---|---|---|
| 1 | 10000000 | 128 |
| 2 | 11000000 | 192 |
| 3 | 11100000 | 224 |
| 4 | 11110000 | 240 |
| 5 | 11111000 | 248 |
| 6 | 11111100 | 252 |
| 7 | 11111110 | 254 |
Swipe horizontally to see the full table.
These seven values explain nearly every common dotted-decimal mask conversion. A full eight network bits makes 255.
Find the block size with 256 minus the mask value
For 255.255.255.224, calculate 256 − 224 = 32. Subnet boundaries in that octet occur at 0, 32, 64, 96, 128, 160, 192, and 224. For 255.255.255.240, the block size is 16. This shortcut is fast because it turns a binary boundary into a simple decimal interval.
The shortest reliable subnetting workflow
- 1. Convert the prefix to a mask or identify the interesting octet.
- 2. Find the block size with 256 minus the interesting mask octet.
- 3. Locate the interval containing the host address.
- 4. Label the boundaries: first address = network, last address before next block = broadcast, addresses between = traditional host range.
192.168.44.173/27
The /27 mask is 255.255.255.224, block size 32. Boundaries are .0, .32, .64, .96, .128, .160, .192, and .224. Address .173 lies in the .160–.191 block. Network = .160, broadcast = .191, usable hosts = .161–.190, 30 traditional host addresses.
10.5.7.94/28
The /28 mask is 255.255.255.240, block size 16. Boundaries include .80 and .96, so .94 lies in 10.5.7.80/28. Broadcast is .95; usable range is .81–.94. Notice that the given host .94 is itself the final usable host, not the broadcast.
Fast same-subnet check
Calculate the network address for both hosts with the stated prefix. If the network addresses match, the hosts are in the same subnet. Example: .63/26 belongs to the .0 block; .64/26 belongs to the .64 block. Adjacent decimal values can still be on opposite sides of a subnet boundary.
The cheat sheet should support reasoning, not replace it
If you can explain why /27 produces 32-address blocks and why the first and last addresses have special roles, the table becomes a speed aid. If you only memorize “/27 = 30 hosts,” a changed question about broadcast address or same-subnet behavior can still cause trouble.
Use Subnetting Practice Questions after this reference page.