Toolman

/16 subnet

A /16 has a subnet mask of 255.255.0.0 and 65,534 usable hosts.

The numbers

Prefix length/16
Subnet mask255.255.0.0
Wildcard mask0.0.255.255
Network bits16
Host bits16
Total addresses65,536
Usable hosts65,534
/24 networks contained256

Where a /16 is used

A former class B, and the size of 192.168.0.0/16 and of 169.254.0.0/16, the link-local range you land in when DHCP fails. 65,536 addresses is a common size for a whole cloud VPC, which is then divided into per-subnet /24s.

Why the usable count is what it is

A /16 leaves 16 bits for hosts, giving 216 = 65,536 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 65,534.

Binary layout

mask   11111111.11111111.00000000.00000000
       ^^^^^^^^^^^^^^^^                
       16 network bits, 16 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/15131,070Two /16 networks combine into one /15
This network/1665,534
Half the size/1732,766One /16 splits into two /17 networks
A quarter/1816,382Four /18 networks fit in a /16

Frequently asked questions

How many hosts are in a /16?

65,536 addresses in total, of which 65,534 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 /16?

255.255.0.0. The prefix length is the count of leading 1 bits in the mask, so /16 is 16 ones followed by 16 zeros.

What is the wildcard mask for /16?

0.0.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 /16 compare to a /24?

A /16 is 256 times larger than a /24 — it contains 256 of them.

Other prefix lengths

All prefix lengths · Subnet calculator