/27 subnet
A /27 has a subnet mask of 255.255.255.224 and 30 usable hosts.
The numbers
| Prefix length | /27 |
| Subnet mask | 255.255.255.224 |
| Wildcard mask | 0.0.0.31 |
| Network bits | 27 |
| Host bits | 5 |
| Total addresses | 32 |
| Usable hosts | 30 |
| /24 networks contained | — |
Where a /27 is used
30 usable hosts. Frequently used for a small VLAN or a rack of servers, and the smallest subnet many people are comfortable with.
Why the usable count is what it is
A /27 leaves 5 bits for hosts, giving 25 = 32 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 30.
Binary layout
mask 11111111.11111111.11111111.11100000
^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 network bits, 5 host bits
Splitting and combining
| Prefix | Usable hosts | Relationship | |
|---|---|---|---|
| Twice the size | /26 | 62 | Two /27 networks combine into one /26 |
| This network | /27 | 30 | — |
| Half the size | /28 | 14 | One /27 splits into two /28 networks |
| A quarter | /29 | 6 | Four /29 networks fit in a /27 |
Frequently asked questions
How many hosts are in a /27?
32 addresses in total, of which 30 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 /27?
255.255.255.224. The prefix length is the count of leading 1 bits in the mask, so /27 is 27 ones followed by 5 zeros.
What is the wildcard mask for /27?
0.0.0.31 — 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 /27 compare to a /24?
A /27 is smaller: 8 of them fit inside one /24.