CIDR reference · IPv4

The /16 CIDR block

65,536 addresses, 65,534 usable, subnet mask 255.255.0.0.

/16 · 255.255.0.0 Open in the calculator

A /16 is the classic "class B" size: 65,536 addresses. 192.168.0.0/16 is the smallest RFC 1918 range, and 10.x.0.0/16 is the most common VPC size in AWS, which allows a VPC to be at most /16. The link-local range 169.254.0.0/16 is also a /16.

Key numbers

Prefix length/16 (16 network bits, 16 host bits)
Subnet mask255.255.0.0
Mask in binary11111111.11111111.00000000.00000000
Wildcard mask0.0.255.255
Total addresses65,536
Usable hosts65,534 (total minus network and broadcast)
Contains256 × /24 networks
Block sizeIncrements of 1 in octet 2

Example ranges

Private (RFC 1918) blocks of this size. Click one to open it in the calculator.

BlockFirst addressLast addressUsable hosts
10.0.0.0/1610.0.0.010.0.255.25510.0.0.1 – 10.0.255.254
172.16.0.0/16172.16.0.0172.16.255.255172.16.0.1 – 172.16.255.254
192.168.0.0/16192.168.0.0192.168.255.255192.168.0.1 – 192.168.255.254

Usable addresses in the cloud

Cloud providers reserve a few addresses in every subnet for the router, DNS and future use, so the usable count is lower than the formula gives.

ProviderUsable in a /16Notes
AWS VPC subnet65,531Allowed (/16 to /28). AWS reserves the first four addresses and the last one.
Azure virtual network subnet65,531Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet65,532Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /16 uses 16 of them for the network, leaving 16 host bits, so the block has 216 = 65,536 addresses. The first address (all host bits 0) is the network address and the last (all host bits 1) is the broadcast address, which leaves 65,534 for hosts. The subnet mask is 16 ones followed by 16 zeros, written in dotted decimal as 255.255.0.0; the wildcard mask 0.0.255.255 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /16 have?

65,536 addresses in total, of which 65,534 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 65,531 usable in AWS and Azure, 65,532 in Google Cloud.

How many /24 subnets fit in a /16?

256. Each step of the prefix length halves or doubles the block, so a /16 contains 2^(24 − 16) = 256 networks of /24 size.