taap.digitalnetwork engineering toolkit

/28 subnet mask: how many hosts?

Answer
255.255.255.240 /28 · 14 usable hosts

A /28 prefix is the mask 255.255.255.240. It leaves 4 host bits: 16 addresses in total and 14 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

/28 at a glance

ItemValue
Mask255.255.255.240
Wildcard0.0.0.15
Addresses16
Usable hosts14
Mask in binary11111111.11111111.11111111.11110000
Example network192.168.1.0/28

Neighboring prefixes

PrefixMaskUsable hosts
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486

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 − 28 = 4.
  2. Addresses: 24 = 16.
  3. Usable hosts: 16 − 2 (network and broadcast) = 14.
  4. Octet 4 has 4 bits set: 256 − 16 = 240. Networks step by 16 in that octet.

Example with 192.168.1.0/28

ItemAddress
Network192.168.1.0/28
First host192.168.1.1
Last host192.168.1.14
Broadcast192.168.1.15

Nearby prefixes

PrefixMaskUsable hosts
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

In practice

A /24 splits into 16 /28 networks, starting at multiples of 16 in the last octet. Going from /28 to /27 doubles the block to 32 addresses (30 usable hosts); going to /29 halves it to 6 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.255.240. ACLs and OSPF use the wildcard 0.0.0.15.