taap.digitalnetwork engineering toolkit

/16 subnet mask: how many hosts?

Answer
255.255.0.0 /16 · 65,534 usable hosts

A /16 prefix is the mask 255.255.0.0. It leaves 16 host bits: 65,536 addresses in total and 65,534 usable hosts (network and broadcast excluded).

subnet4 · adjust the values
Accepts 10.0.0.1/8, 10.0.0.1 255.0.0.0 or just the IP with the prefix below.
Close-up of a network switch with ports and lights
Close-up of a network switch with ports and lights. Photo: Jonathan Castañeda / Unsplash

/16 at a glance

ItemValue
Mask255.255.0.0
Wildcard0.0.255.255
Addresses65,536
Usable hosts65,534
Mask in binary11111111.11111111.00000000.00000000
Example network172.16.0.0/16

Neighboring prefixes

PrefixMaskUsable hosts
/15255.254.0.0131,070
/16255.255.0.065,534
/17255.255.128.032,766

To work out another address with this prefix, change the IP in the calculator above: you get network, broadcast and range in binary.

Step by step

  1. Host bits: 32 − 16 = 16.
  2. Addresses: 216 = 65,536.
  3. Usable hosts: 65,536 − 2 (network and broadcast) = 65,534.
  4. The prefix ends exactly on an octet boundary: 2 octet(s) at 255 and the rest at 0. Networks step by 1 in octet 2.

Example with 172.16.0.0/16

ItemAddress
Network172.16.0.0/16
First host172.16.0.1
Last host172.16.255.254
Broadcast172.16.255.255

Nearby prefixes

PrefixMaskUsable hosts
/13255.248.0.0524,286
/14255.252.0.0262,142
/15255.254.0.0131,070
/16255.255.0.065,534
/17255.255.128.032,766
/18255.255.192.016,382
/19255.255.224.08,190

In practice

A /16 contains 256 /24 networks of 254 hosts each: that is how many typical LANs fit in the block. Going from /16 to /15 doubles the block to 131,072 addresses (131,070 usable hosts); going to /17 halves it to 32,766 usable hosts.

To try other values, open the IPv4 subnet calculator with these numbers already filled in.

More questions like this

Frequently asked questions

Why subtract 2 hosts?

The first address identifies the network and the last is the broadcast; neither can be assigned to a device. On /31 links (RFC 3021) both are used.

How do I configure it on Cisco?

With the dotted mask: ip address 192.168.10.1 255.255.0.0. ACLs and OSPF use the wildcard 0.0.255.255.