/28 subnet mask explained: IPs, hosts, and uses
A `/28` subnet is a small IPv4 network with 28 bits fixed for the network and 4 bits left for hosts. Its dotted-decimal subnet mask is `255.255.255.240`. A `/28` gives you 16 total IP addresses, 14 usable, so it is a good fit for a small LAN segment, VLAN, firewall object, or other compact address block.
What /28 means in plain English
A /28 subnet leaves 4 bits for host addresses, which means each subnet contains 2^4 = 16 IP addresses in total. The subnet mask that goes with /28 is 255.255.255.240, so if you see either form in a router, firewall, or IP calculator, they describe the same size network.
The CIDR notation tells you how many bits are used for the network part of the address. The rest are available for host IDs inside that subnet. With only 4 host bits, a /28 is small by design, which is why it is useful when you only need a handful of addresses and do not want to waste a larger block.
For example, if a firewall object says 192.168.10.0/28, that means the network uses the first 28 bits for the subnet and leaves the last 4 bits for host addresses.
How many addresses a /28 actually gives you
A /28 gives you 16 total addresses. Two of those are reserved for the subnet itself: one is the network address, and one is the broadcast address. That leaves 14 usable host addresses for devices.
Here is the breakdown:
- Total addresses: 16
- Usable host addresses: 14
- Reserved addresses: 2
The reserved addresses matter because they cannot be assigned to ordinary devices. The first address identifies the subnet, and the last address is used for broadcast traffic to every host in that subnet. So if someone says a /28 has 16 IPs, that is true, but it does not mean 16 devices can use them all.
Say you are planning a small VLAN for printers, switches, and a firewall interface. A /28 gives you room for a few static devices, but not much growth beyond that.
What the usable IP range looks like
Say you have 192.168.1.0/28. The network address is 192.168.1.0, and the broadcast address is 192.168.1.15. The usable host range sits in between those two values.
For this example:
- Network address:
192.168.1.0 - First usable IP:
192.168.1.1 - Last usable IP:
192.168.1.14 - Broadcast address:
192.168.1.15
That pattern repeats in blocks of 16. So the next /28 would be 192.168.1.16/28, with usable hosts from 192.168.1.17 through 192.168.1.30, and broadcast at 192.168.1.31.
If you are checking a subnet by hand, the easiest clue is that the last octet moves in steps of 16 for a /28.
When a /28 is the right size
A /28 works well when you only need a small number of addresses and want a clean boundary for a subnet, VLAN, or firewall object. Fourteen usable IPs is enough for a lot of small setups, especially if some of those devices are static and not meant to grow much.
Common uses include:
- A small office segment with a few servers, printers, and network appliances
- A lab VLAN for testing or training
- A small firewall rule set that needs a compact static IP block
- A small static assignment from an ISP, where you want predictable addressing
It is also common for point-to-point links, but that depends on the design. Some engineers prefer even smaller subnets for those links, while others use a /30 or /31 instead. So /28 is not the default answer for every link; it is just a practical size when you want a small pool with a bit of room to grow.
If you are deciding whether it is enough for a small LAN, count the devices that must have addresses all the time, then leave a little space for management, printers, and future additions. If that total gets close to 14, a /28 will feel tight.
Where people get tripped up
The most common mistake is treating the total address count as the number of usable hosts. A /28 has 16 addresses, but only 14 can be assigned to devices. Another easy mistake is forgetting that the network and broadcast addresses are reserved.
People also mix up CIDR notation and subnet masks. /28 and 255.255.255.240 mean the same thing, but they are just different ways to describe the same subnet size. If you are working from a diagram or a spreadsheet, make sure you know which form you are looking at.
A final trap is assuming every subnet grows in the same way across the address space. The size is the same, but the actual usable range depends on the block the subnet starts on. That is why 192.168.1.0/28, 192.168.1.16/28, and 192.168.1.32/28 all have different host ranges even though they are all /28s.
How to check a /28 in your own network
The quickest way to verify a /28 is to use any subnet calculator or to count in blocks of 16. If the subnet mask is 255.255.255.240, the block size in the last octet is 16. That means the subnet boundaries are 0, 16, 32, 48, 64, and so on.
If you already know an IP address, here is the simple process:
- Find the nearest lower multiple of 16 in the last octet.
- Use that as the network address.
- Add 1 for the first usable host.
- Add 14 for the last usable host.
- Add 15 for the broadcast address.
For example, if the address is 10.20.30.77/28, the nearest lower multiple of 16 is 64, so the subnet is 10.20.30.64/28. The usable range is 10.20.30.65 through 10.20.30.78, with broadcast at 10.20.30.79.
Most router and firewall UIs will show this for you, but being able to count the block by hand makes it much easier to sanity-check a config.
For a firewall rule set, the same math applies: if a rule references 10.20.30.64/28, it covers the full block from 10.20.30.64 to 10.20.30.79, not just the usable hosts.
Conclusion
If you need a small subnet, `/28` is a neat fit: 16 total addresses, 14 usable, and a simple mask of `255.255.255.240`. The main thing to remember is that the first and last addresses in the block are reserved, so plan around 14 devices, not 16. If you are configuring a LAN, VLAN, firewall rule set, or small static range, check the start of the block and count in steps of 16 to confirm the usable range.
Frequently Asked Questions
Is a /28 the same as 255.255.255.240?
Yes. They are two ways to describe the same subnet size. `/28` is CIDR notation, and `255.255.255.240` is the dotted-decimal subnet mask.
How many usable IPs are in a /28?
A /28 has 14 usable IP addresses.
What is the broadcast address in a /28?
It is the last address in the block. For `192.168.1.0/28`, the broadcast address is `192.168.1.15`.
Can a /28 work for a small office network?
Yes, if you only need a small number of devices and do not expect the subnet to grow much. It is a common size for small static ranges, lab VLANs, firewall objects, and similar setups.