Every IPv4 prefix from /32 to /0 — mask, wildcard, address count, usable hosts, and how big it is next to a /24. Plus the IPv6 prefixes that come up in a real allocation. Print it, or take the PDF.
Every prefix from /32 to /0 with its mask, wildcard, address count and how it sizes against a /24. Nothing to click — the table is the page.
| CIDR | Subnet mask | Wildcard | Addresses | Usable hosts | Against a /24 | Typically |
|---|---|---|---|---|---|---|
/32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | 1/256 of a /24 | Single host route |
/31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | 1/128 of a /24 | Point-to-point link — both addresses usable (RFC 3021) |
/30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | 1/64 of a /24 | Smallest classic subnet: 2 hosts |
/29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | 1/32 of a /24 | 6 hosts — small point-to-multipoint |
/28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | 1/16 of a /24 | 14 hosts |
/27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | ⅛ of a /24 | 30 hosts — typical small office VLAN |
/26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | ¼ of a /24 | 62 hosts |
/25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | ½ of a /24 | 126 hosts — half a /24 |
/24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | 1 × /24 | The default LAN: 254 hosts |
/23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | 2 × /24 | Two /24s joined |
/22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | 4 × /24 | Common VLAN allocation: 1,022 hosts |
/21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | 8 × /24 | |
/20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | 16 × /24 | Site allocation: 4,094 hosts |
/19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | 32 × /24 | |
/18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | 64 × /24 | |
/17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | 128 × /24 | |
/16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | 256 × /24 | Whole private range 192.168.0.0/16; former class B |
/15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | 512 × /24 | |
/14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | 1,024 × /24 | |
/13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | 2,048 × /24 | |
/12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | 4,096 × /24 | Private range 172.16.0.0/12 |
/11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | 8,192 × /24 | |
/10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | 16,384 × /24 | Carrier-grade NAT 100.64.0.0/10 |
/9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | 32,768 × /24 | |
/8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | 65,536 × /24 | Private range 10.0.0.0/8; former class A |
/7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | 131,072 × /24 | |
/6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | 262,144 × /24 | |
/5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | 524,288 × /24 | |
/4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | 1,048,576 × /24 | |
/3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | 2,097,152 × /24 | |
/2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | 4,194,304 × /24 | |
/1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | 8,388,608 × /24 | |
/0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | 16,777,216 × /24 | Every address — the default route |
IPv6 has no broadcast address and no reason to count hosts — a /64 holds more addresses than the whole IPv4 internet, several billion times over. What matters is how many /64 LANs a prefix gives you.
| CIDR | Addresses | /64 LANs | Typically |
|---|---|---|---|
/128 | 1 | — | Single address — a host route or a loopback |
/127 | 2^1 | — | Point-to-point link between routers |
/126 | 2^2 | — | Older point-to-point convention |
/120 | 2^8 | — | Rare; the same host count as an IPv4 /24 |
/112 | 2^16 | — | Sometimes used for infrastructure links |
/96 | 2^32 | — | IPv4-mapped address space |
/64 | 2^64 | 1 × /64 | The standard LAN. SLAAC requires exactly this |
/60 | 2^68 | 16 × /64 | 16 LANs — a very small site |
/56 | 2^72 | 256 × /64 | Typical residential or small-branch allocation |
/52 | 2^76 | 4,096 × /64 | Mid-size site |
/48 | 2^80 | 65,536 × /64 | Typical enterprise site allocation |
/44 | 2^84 | 1,048,576 × /64 | Large enterprise |
/40 | 2^88 | 16,777,216 × /64 | Large enterprise or small ISP |
/36 | 2^92 | 268,435,456 × /64 | ISP allocation |
/32 | 2^96 | 4,294,967,296 × /64 | Minimum allocation an RIR hands an ISP |
Everyone memorises the /24 row and then re-derives the rest at three in the morning. That is the entire reason this page exists — not to teach subnetting, but to sit open in a tab while you work.
We sell asset-tracking software, so read the pitch above with a raised eyebrow. The table costs nothing and asks nothing.
Take /26. The mask is 255.255.255.192, the wildcard is 0.0.0.63, and the block holds 64 addresses of which 62 can go on interfaces. Four of these fit inside a /24. That last column is the one worth internalising: network people size things in /24s the way builders think in metres, and "a /26 is a quarter of a /24" gets you further in a planning meeting than 255.255.255.192 ever will.
The wildcard column is not decoration. Cisco ACLs and OSPF network statements take the mask inverted, and inverting it by hand under time pressure is where the typos come from.
A /31 shows two usable hosts here, not zero. RFC 3021 made both addresses on a /31 assignable specifically so router-to-router links stop burning four addresses to carry a two-address conversation, and it has been standard since 2000. Plenty of published cheat sheets still print 0, because they were generated by subtracting network and broadcast from every row without thinking about it.
A /32 is a single host route — one address, one usable. It shows up in routing tables, loopback interfaces and firewall rules constantly, and "0 usable hosts" is equally wrong there.
Counting hosts in IPv6 is a category error. A /64 holds 18.4 quintillion addresses; whether 40 or 4,000 devices sit on it changes nothing you would plan around. So that table counts /64s instead, because the actual question is how many LANs your allocation gives you — a /56 gives 256, a /48 gives 65,536, and if your ISP handed you a single /64 for a site with more than one VLAN, that is the conversation to have with them.
One caveat worth stating plainly: SLAAC needs exactly a /64. Subnet an IPv6 LAN tighter than that to "save space" and stateless autoconfiguration stops working, and you have saved space in a protocol where space is the one thing nobody is short of.
Need the arithmetic done for a specific address rather than a table to read? The subnet calculator takes an address and a mask and works it out, splits a block into subnets, and checks a pasted IP plan for overlaps.
Tracking the devices behind those subnets? Talk to sales