27 subnet explained: IPs, mask, and when to use it
A `/27` subnet uses 27 bits for the network part of an IPv4 address and leaves 5 bits for hosts. That gives you 32 total addresses, 30 usable host addresses, a subnet mask of `255.255.255.224`, and a block size that often fits a small office, VLAN, or lab network.
Quick answers for common /27 questions
Yes, /27 works fine with DHCP. You can hand out the 30 usable addresses by DHCP and keep the network address and broadcast address out of the pool.
A /27 has 32 total IP addresses. One is the network address, one is the broadcast address, and the other 30 are usable by devices. That is the part people most often mix up: /27 does not mean 27 usable addresses.
The matching subnet mask is 255.255.255.224. In CIDR notation, /27 and 255.255.255.224 describe the same subnet size.
Simple example
Say you have 192.168.10.0/27. The address range for that subnet is 192.168.10.0 through 192.168.10.31.
- Network address:
192.168.10.0 - Usable host range:
192.168.10.1through192.168.10.30 - Broadcast address:
192.168.10.31
If you start with a larger block, /27 also tells you how many smaller subnets you can create. For example, a /24 can be split into eight /27 subnets, because each /27 uses 32 addresses and 256 / 32 = 8.
When /27 is the right size
Use /27 when you need a small subnet with up to 30 usable IPv4 addresses and you do not expect the segment to grow much beyond that. It is a common fit for a small office, a VLAN, or a lab network with a limited number of devices.
If you need more than 30 usable addresses, /27 is too small. If you need far fewer, it may be larger than you need, which can waste address space. In an address plan, check the number of devices first, then pick the prefix.
Common mistakes
A /27 does not give you 32 usable hosts. It gives you 32 total addresses and 30 usable ones.
Another common mistake is using the wrong subnet boundary. /27 subnets move in steps of 32 in the last octet, so valid network addresses in a 192.168.10.x block would be 0, 32, 64, 96, and so on.
To spot /27 in a router or switch config, look for either the slash notation itself, like 192.168.10.0/27, or the dotted mask 255.255.255.224. Both mean the same subnet size.
Conclusion
If you need a small subnet with 30 usable IPv4 addresses, `/27` is the number to remember. Use the mask `255.255.255.224`, keep the network and broadcast addresses aside, and make sure your subnet boundaries land on multiples of 32. If you are planning a VLAN or lab, count the devices you need now and leave a little room for growth before you pick the prefix.
Frequently Asked Questions
Does a /27 subnet include 32 usable IP addresses?
No. It includes 32 total addresses, but only 30 are usable by devices. The network address and broadcast address are reserved.
What is the subnet mask for /27?
The subnet mask is `255.255.255.224`.
How many /27 subnets fit inside a /24?
Eight. A /24 can be divided into eight /27 subnets.
Can DHCP be used on a /27 network?
Yes. DHCP works normally on a /27 as long as you only hand out the usable host addresses and leave the network and broadcast addresses unused.