/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 mask | 255.255.0.0 |
| Mask in binary | 11111111.11111111.00000000.00000000 |
| Wildcard mask | 0.0.255.255 |
| Total addresses | 65,536 |
| Usable hosts | 65,534 (total minus network and broadcast) |
| Contains | 256 × /24 networks |
| Block size | Increments of 1 in octet 2 |
Example ranges
Private (RFC 1918) blocks of this size. Click one to open it in the calculator.
| Block | First address | Last address | Usable hosts |
|---|---|---|---|
| 10.0.0.0/16 | 10.0.0.0 | 10.0.255.255 | 10.0.0.1 – 10.0.255.254 |
| 172.16.0.0/16 | 172.16.0.0 | 172.16.255.255 | 172.16.0.1 – 172.16.255.254 |
| 192.168.0.0/16 | 192.168.0.0 | 192.168.255.255 | 192.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.
| Provider | Usable in a /16 | Notes |
|---|---|---|
| AWS VPC subnet | 65,531 | Allowed (/16 to /28). AWS reserves the first four addresses and the last one. |
| Azure virtual network subnet | 65,531 | Allowed. Azure reserves the first four addresses and the last one. |
| Google Cloud subnet | 65,532 | Allowed. 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.