Toolman

/28 subnet

A /28 has a subnet mask of 255.255.255.240 and 14 usable hosts.

The numbers

Prefix length/28
Subnet mask255.255.255.240
Wildcard mask0.0.0.15
Network bits28
Host bits4
Total addresses16
Usable hosts14
/24 networks contained

Where a /28 is used

14 usable hosts. A typical size for a public block assigned to a small business, or for a firewall DMZ with a handful of servers.

Why the usable count is what it is

A /28 leaves 4 bits for hosts, giving 24 = 16 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 14.

Binary layout

mask   11111111.11111111.11111111.11110000
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^    
       28 network bits, 4 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/2730Two /28 networks combine into one /27
This network/2814
Half the size/296One /28 splits into two /29 networks
A quarter/302Four /30 networks fit in a /28

Frequently asked questions

How many hosts are in a /28?

16 addresses in total, of which 14 are usable. The first is the network address and the last is the broadcast address, so two are always lost.

What is the subnet mask for /28?

255.255.255.240. The prefix length is the count of leading 1 bits in the mask, so /28 is 28 ones followed by 4 zeros.

What is the wildcard mask for /28?

0.0.0.15 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.

How does a /28 compare to a /24?

A /28 is smaller: 16 of them fit inside one /24.

Other prefix lengths

All prefix lengths · Subnet calculator