Toolman

/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 mask255.0.0.0
Wildcard mask0.255.255.255
Network bits8
Host bits24
Total addresses16,777,216
Usable hosts16,777,214
/24 networks contained65,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

PrefixUsable hostsRelationship
Twice the size/733,554,430Two /8 networks combine into one /7
This network/816,777,214
Half the size/98,388,606One /8 splits into two /9 networks
A quarter/104,194,302Four /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.

Other prefix lengths

All prefix lengths · Subnet calculator