Skip to content
Tape and Square

N-01 · Subnet · /16

/16 subnet

A /16 network keeps 16 of the 32 address bits for the network and leaves 16 for hosts. Its mask, host count, the blocks it fits in and example networks, all worked out below.

Short answer

Subnet mask
255.255.0.0Wildcard 0.0.255.255
Usable hosts
65,53465,536 addresses in total

2^16 = 65,536 addresses. The first is the network address and the last the broadcast, so 65,534 can go to devices.

The /16 mask in binary and hex

16 one bits, then 16 zero bits. The wildcard is the mask inverted.

MaskDottedHex
Subnet mask255.255.0.0FF.FF.00.00
Wildcard0.0.255.25500.00.FF.FF

A /16 mask ends exactly at the end of the second octet, so networks step by 1 in that octet and the last 2 octets are hosts. Cisco access lists take the wildcard form, 0.0.255.255, where a 1 bit means “any value” (Cisco document 23602).

RFC 1878's table lists /16 as FF.FF.00.00 hex, 64 K addresses, equal to 1 B in the old class terms. RFC 1878's host tables start at /17. The 65,534 usable figure is the same 2^16 − 2 rule, and Cisco's host and subnet table lists it.

How many /16 subnets fit

The three private ranges (RFC 1918) and one /24.

Block/16 subnets in it
10.0.0.0/8256
172.16.0.0/1216
192.168.0.0/161 (same size)
172.22.181.0/24none: one /16 holds 256

A /16 is exactly the size of the private range 192.168.0.0/16. 10.0.0.0/8 holds 256 and 172.16.0.0/12 holds 16 /16 subnets. One /16 spans 256 /24s.

Splitting a /16

Each extra prefix bit halves the block.

IntoSubnetsUsable each
/17232,766
/18416,382
/1988,190

Two /17 subnets hold 65,532 usable addresses between them, 2 fewer than one /16: each half gives up its own network and broadcast address.

/16 subnets of 172.16.0.0/12

172.16.0.0/12 holds 16 of them. The row in bold holds 172.22.181.150.

SubnetFirst usableLast usable
172.16.0.0/16172.16.0.1172.16.255.254
172.17.0.0/16172.17.0.1172.17.255.254
172.18.0.0/16172.18.0.1172.18.255.254
172.19.0.0/16172.19.0.1172.19.255.254
172.20.0.0/16172.20.0.1172.20.255.254
172.21.0.0/16172.21.0.1172.21.255.254
172.22.0.0/16172.22.0.1172.22.255.254
172.23.0.0/16172.23.0.1172.23.255.254
172.24.0.0/16172.24.0.1172.24.255.254
172.25.0.0/16172.25.0.1172.25.255.254
172.26.0.0/16172.26.0.1172.26.255.254
172.27.0.0/16172.27.0.1172.27.255.254
172.28.0.0/16172.28.0.1172.28.255.254
172.29.0.0/16172.29.0.1172.29.255.254
172.30.0.0/16172.30.0.1172.30.255.254
172.31.0.0/16172.31.0.1172.31.255.254

Special-purpose /16 blocks

Blocks of exactly this size in the IANA IPv4 Special-Purpose Address Space registry.

BlockUse
169.254.0.0/16Link Local
192.168.0.0/16Private-Use

Check an address

Pre-filled with 172.22.181.150/16. Change the address or the prefix.

/16

Also accepts 192.168.1.130 255.255.255.192, 192.168.1.0 60 hosts or IPv6 like 2001:db8::/48.

Result

172.22.0.0/16

65,534 usable hosts

Network
172.22.0.0
First usable
172.22.0.1
Last usable
172.22.255.254
Broadcast
172.22.255.255
Subnet mask
255.255.0.0
Wildcard mask
0.0.255.255
Total addresses
65,536
PRIVATE

Inside 172.16.0.0/12, a private range (RFC 1918). Not routable on the public internet.

Binary view

Address · 172.22.181.150
10101100.00010110.10110101.10010110
Mask · 255.255.0.0
11111111.11111111.00000000.00000000
Network · 172.22.0.0
10101100.00010110.00000000.00000000

Bold bits are fixed for the network; orange bits number the hosts.

172.0.0.0/8 split into /16 · 256 blocks

  1. … 19 before
  2. 172.22.0.0/16.22.0.1–.22.255.254 ◂
  3. … 229 more

/16 next to /15 and /17

One bit shorter, a /15 (255.254.0.0) has 131,072 addresses and 131,070 usable, 65,536 more than a /16. One bit longer, /17 (255.255.128.0) has 32,768 addresses and 32,766 usable. /15 subnet · /17 subnet

Ask the calculator for a host count and it answers /16 for 32,767 to 65,534 hosts: typing "172.22.0.0 65,534 hosts" gives this size, one more host gives a /15.

/16 is the old class B size: RFC 4632 §3.1 lists it as the legacy “Class B” block, whose mask 255.255.0.0 was implied by the address class before CIDR. With CIDR the prefix length is written out, so a /16 can start at any multiple of 65,536 addresses.

Worked example

Take 172.22.181.150/16. The mask 255.255.0.0 is all ones through the second octet and all zeros after it. Keep the first 2 octets of the address and zero the rest: the network is 172.22.0.0. Set the host octets to 255 instead and you get the broadcast, 172.22.255.255.

Devices use 172.22.0.1 through 172.22.255.254: 65,534 addresses. 172.22.181.150 is number 46,486 of them. In 172.16.0.0/12 this is subnet 7 of 16.

References

  • RFC 4632, Classless Inter-domain Routing (CIDR), §3.1: prefix lengths and block sizes (legacy "Class B").
  • RFC 950, Internet Standard Subnetting Procedure: subnet masks.
  • RFC 1878, Variable Length Subnet Table For IPv4, the prefix table.
  • Cisco Tech Note 13790, Understand Host and Subnet Quantities: usable hosts per prefix.
  • RFC 1918, Address Allocation for Private Internets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
  • IANA IPv4 Special-Purpose Address Space registry (updated 2025-10-09).

Other prefixes