CIDR reference · IPv4

The /27 CIDR block

32 addresses, 30 usable, subnet mask 255.255.255.224.

/27 · 255.255.255.224 Open in the calculator

32 addresses, 30 usable, mask 255.255.255.224. Eight per /24. A common size for small server subnets and for load-balancer or NAT gateway subnets in cloud VPCs.

Key numbers

Prefix length/27 (27 network bits, 5 host bits)
Subnet mask255.255.255.224
Mask in binary11111111.11111111.11111111.11100000
Wildcard mask0.0.0.31
Total addresses32
Usable hosts30 (total minus network and broadcast)
Fits in a /248 times
Block sizeIncrements of 32 in octet 4

Example ranges

Private (RFC 1918) blocks of this size. Click one to open it in the calculator.

BlockFirst addressLast addressUsable hosts
10.0.0.0/2710.0.0.010.0.0.3110.0.0.1 – 10.0.0.30
172.16.0.0/27172.16.0.0172.16.0.31172.16.0.1 – 172.16.0.30
192.168.0.0/27192.168.0.0192.168.0.31192.168.0.1 – 192.168.0.30

Usable addresses in the cloud

Cloud providers reserve a few addresses in every subnet for the router, DNS and future use, so the usable count is lower than the formula gives.

ProviderUsable in a /27Notes
AWS VPC subnet27Allowed (/16 to /28). AWS reserves the first four addresses and the last one.
Azure virtual network subnet27Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet28Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /27 uses 27 of them for the network, leaving 5 host bits, so the block has 25 = 32 addresses. The first address (all host bits 0) is the network address and the last (all host bits 1) is the broadcast address, which leaves 30 for hosts. The subnet mask is 27 ones followed by 5 zeros, written in dotted decimal as 255.255.255.224; the wildcard mask 0.0.0.31 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /27 have?

32 addresses in total, of which 30 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 27 usable in AWS and Azure, 28 in Google Cloud.

How many /27 subnets fit in a /24?

8. A /24 has 256 addresses and a /27 has 32, so 256 ÷ 32 = 8 blocks.