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 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.
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28This page | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
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
Related guides
Frequently asked questions
How many usable hosts in a /28?
How many usable IPs are in a /28?
When should I use a /28 instead of a /30?
Related tools
DNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolDisplay Bandwidth Calculator
Check display bandwidth for HDMI, DisplayPort, USB-C, Thunderbolt, and USB4.
Use toolData Transfer Calculator
Calculate file transfer time or the speed you need over USB, Wi-Fi or Ethernet, with latency.
Use tool