CIDR Chart: Prefix, Mask and Host Counts
Every IPv4 prefix length with its mask, wildcard, and host count. Source of the arithmetic is the addressing model itself, so these figures do not change; the routing and allocation notes below reflect current practice as of 2026.
Full chart, /0 to /32
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts | Equivalent |
|---|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | entire IPv4 space |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | 128 /8s |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | 64 /8s |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | 32 /8s |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | 16 /8s |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | 8 /8s |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | 4 /8s |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | 2 /8s |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | 1 /8 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | 128 /16s |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | 64 /16s |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | 32 /16s |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | 16 /16s |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | 8 /16s |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | 4 /16s |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | 2 /16s |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | 256 /24s |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | 128 /24s |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | 64 /24s |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | 32 /24s |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | 16 /24s |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | 8 /24s |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | 4 /24s |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | 2 /24s |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | 1 /24 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | half a /24 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | quarter of a /24 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | 8 /30s |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | 4 /30s |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | 2 /30s |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | point-to-point link |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | point-to-point, RFC 3021 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | single host route |
Need a specific block rather than a row? The subnet calculator returns network, broadcast, and usable range for any input and can split a block into equal subnets.
How to read the numbers
Usable hosts is total minus two for every prefix from /0 to /30, because the first address identifies the network and the last is the broadcast address. Neither is assignable to an interface.
The two exceptions are /31 and /32. RFC 3021 defines /31 for point-to-point links where no network or broadcast address is reserved, so both addresses are usable — this is why /31 rather than /30 is the current default for router-to-router links. A /32 is a single host route, used for loopbacks and anycast service addresses.
Each additional bit halves the block. A /23 is two /24s, a /22 is four, a /21 is eight. The pattern is the fastest way to answer allocation questions without a calculator.
Prefix lengths that matter operationally
/24 is the practical floor for global routing. Most networks filter IPv4 announcements longer than /24, so a /24 is the smallest block that propagates reliably on the public internet. Anything longer is usable internally but will not be seen by most of the default-free zone.
/24 is also the smallest transferable unit at most registries. RIR policy and market practice both settle at /24, which is why block sizes in transfers are quoted as /24, /22, /21, /20 and so on.
/29 and /28 are the common customer-facing assignments in hosting and business access, giving six and fourteen usable addresses respectively — enough for a handful of services plus the gateway.
/22 and /21 are the usual first purchases for a growing operator, because they aggregate into a single announcement while leaving room to split per site or per service later. How to divide them without painting yourself into a corner is covered in address plan design.
Related
- Subnet calculator — compute and split a specific block
- Subnet mask cheat sheet — the same data condensed for printing
- Reserved and bogon ranges — which of this space never routes
- Glossary — terms used above
Acquiring space rather than planning it? See IPv4 services for buying, leasing, and renting options.