What is a /28 subnet? 16 IPs for small server groups and DMZs

By TechCompare · Updated · How we check

A /28 subnet has the mask 255.255.255.240 and 16 total IPv4 addresses, including 14 usable hosts on a conventional subnet.

A /28 subnet, written as 255.255.255.240, provides 16 total addresses with 14 usable on a conventional IPv4 subnet. AWS and Azure reserve five addresses in each subnet, leaving 11 assignable addresses there. This is a compact size for small server groups, DMZ segments, and cloud subnets where you need isolation without wasting address space.

CIDR
/28
Total addresses
16
14 usable for hosts
Subnet mask
255.255.255.240

CIDR reference table

Every IPv4 prefix from /8 to /32 with its subnet mask, wildcard mask and address counts. Pick a prefix to open its page or the calculator.

PrefixSubnet maskWildcard maskTotal addressesUsable hosts
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28This page255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Usable hosts are the total minus the network address and the broadcast address. A /31 is the exception: it has neither, so both addresses work as hosts on a point to point link (RFC 3021). A /32 is a single address. The wildcard mask is the subnet mask with every bit flipped, and Cisco IOS access lists and OSPF network commands use it.

How this is calculated

With 14 generic IPv4 host addresses, a /28 fits a small cluster of web servers, a database HA pair with monitoring, or a dedicated management network. Cloud providers like AWS and Azure let you create /28 subnets within a VPC or VNet, but both reserve the first four and last addresses, leaving 11 assignable addresses. The subnet mask 255.255.255.240 means each /28 block increments the last octet by 16 (e.g., .0-.15, .16-.31, .32-.47).

Verdict

Use a /28 for a small server group, DMZ, or cloud subnet. The /28 mask 255.255.255.240 reserves 28 bits for the network and leaves 4 bits for hosts, which is 16 total addresses minus the traditional network and broadcast reservations, leaving 14 usable on a conventional IPv4 subnet.

In AWS and Azure only 11 are assignable. That's enough for a small cloud service group in some designs, but base the growth case on 11 rather than 14.

For a true point-to-point router link that only needs 2 addresses, drop to a /30 or /31 to save the wasted space.

More Subnet scenarios

/24 subnet (255.255.255.0)
A /24 subnet, written as 255.255.255.0 in dotted-decimal notation, provides 256 total addresses with 254 usable for hosts (one reserved for the network address and one for broadcast).
View details
/16 subnet (255.255.0.0)
A /16 subnet, written as 255.255.0.0, provides 65,536 total addresses with 65,534 usable for hosts.
View details
/22 subnet (255.255.252.0)
A /22 subnet, written as 255.255.252.0, provides 1,024 total addresses with 1,022 usable for hosts.
View details

Frequently asked questions

How many usable hosts in a /28?
A conventional IPv4 /28 has 14 usable host addresses out of 16 total because the network and broadcast addresses are reserved. AWS and Azure reserve five addresses, leaving 11 assignable.
How many usable IPs are in a /28?
A conventional IPv4 /28 has 14 usable hosts. AWS and Azure reserve the first four and last addresses, so a /28 there has 11 assignable resource IPs. Use the provider-specific count when sizing a cloud cluster or DMZ.
When should I use a /28 instead of a /30?
Use /28 when you need isolation for a small server cluster or DMZ and 14 generic hosts, or 11 AWS/Azure resource IPs, is enough. Use /30 (2 usable hosts) for true point-to-point links between routers or firewalls where only two endpoints exist. /30 saves IPs, and /28 leaves room to grow.