/8 subnet
A /8 has a subnet mask of 255.0.0.0 and 16,777,214 usable hosts.
The numbers
| Prefix length | /8 |
| Subnet mask | 255.0.0.0 |
| Wildcard mask | 0.255.255.255 |
| Network bits | 8 |
| Host bits | 24 |
| Total addresses | 16,777,216 |
| Usable hosts | 16,777,214 |
| /24 networks contained | 65,536 |
Where a /8 is used
A former class A network. 10.0.0.0/8 — the largest private range — and 127.0.0.0/8, the whole of loopback, are both this size. Sixteen million addresses is more than any single broadcast domain can use, so a /8 is always subdivided.
Why the usable count is what it is
A /8 leaves 24 bits for hosts, giving 224 = 16,777,216 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 16,777,214.
Binary layout
mask 11111111.00000000.00000000.00000000
^^^^^^^^
8 network bits, 24 host bits
Splitting and combining
| Prefix | Usable hosts | Relationship | |
|---|---|---|---|
| Twice the size | /7 | 33,554,430 | Two /8 networks combine into one /7 |
| This network | /8 | 16,777,214 | — |
| Half the size | /9 | 8,388,606 | One /8 splits into two /9 networks |
| A quarter | /10 | 4,194,302 | Four /10 networks fit in a /8 |
Frequently asked questions
How many hosts are in a /8?
16,777,216 addresses in total, of which 16,777,214 are usable. The first is the network address and the last is the broadcast address, so two are always lost.
What is the subnet mask for /8?
255.0.0.0. The prefix length is the count of leading 1 bits in the mask, so /8 is 8 ones followed by 24 zeros.
What is the wildcard mask for /8?
0.255.255.255 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.
How does a /8 compare to a /24?
A /8 is 65,536 times larger than a /24 — it contains 65,536 of them.