What is a /27 subnet? 32 IPs for office VLANs and small server rooms
By TechCompare · Updated · How we check
One /27 gives you 32 addresses at 255.255.255.224, with 30 usable on a conventional subnet and 27 assignable in AWS or Azure. It's a small block for one VLAN or lab.
Between a /28 and a /26 sits the /27, a block of 32 addresses written as 255.255.255.224. A conventional subnet leaves 30 of them for devices, with the network and broadcast addresses taking the other two. That makes it a good fit for an office VLAN, a small server room, or a lab.
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 |
| /27This page | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 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 5 bits left for hosts, a /27 gives 2^5 = 32 addresses. Blocks step forward 32 addresses at a time. A /24 holds 8 of these blocks, and the first four in the last octet are .0-.31, .32-.63, .64-.95, .96-.127. The wildcard mask is 0.0.0.31, which is the subnet mask with every bit flipped. Access lists use that form to match a block.
Take the block at 192.168.1.32 as an example. Its usable addresses run 192.168.1.33 to 192.168.1.62, and its broadcast address is 192.168.1.63. Neither end of the block goes to a host, and that's the gap between the total and the usable count.
Verdict
Pick a /27 for a segment that needs up to 30 devices on a conventional subnet. A /28 has 16 addresses and 14 usable, which can run short once a segment adds a few services. A /26 has 64 addresses and 62 usable, and it holds 2 /27 blocks.
Cloud limits apply too. AWS accepts subnets from /16 to /28, and Azure accepts /2 to /29, so a /27 is in range for both. Each one reserves five addresses in every subnet, which leaves 27 for resources. Size a cloud segment on that figure, not on the conventional count.
More Subnet scenarios
Related guides
Frequently asked questions
How many usable IPs are in a /27?
What subnet mask and wildcard mask does a /27 use?
How many /27 subnets fit in a /24?
Can I create a /27 subnet in AWS or Azure?
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
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool