tip
~/geeksubnet/masks/27

/27 subnet mask: 255.255.255.224

Every value on this page is reproducible in the calculator.

The /27 prefix means the first 27 bits of the address identify the network and the remaining 5 identify the host. Written out, the mask is 255.255.255.224, in binary 11111111.11111111.11111111.11100000, and its Cisco wildcard or inverse form is 0.0.0.31. It covers 32 addresses, of which 30 can be given to hosts.

/27 at a glance

CIDR prefix/27
Subnet mask255.255.255.224
Mask in binary11111111.11111111.11111111.11100000
Wildcard (inverse) mask0.0.0.31
Host bits5
Total addresses32
Usable hosts30
Block size (magic number)32 in octet 4

Every /27 inside 192.168.1.0/24

A 192.168.1.0/24 splits into exactly 8 subnets of this size.

NetworkFirst hostLast hostBroadcast
192.168.1.0/27192.168.1.1192.168.1.30192.168.1.31
192.168.1.32/27192.168.1.33192.168.1.62192.168.1.63
192.168.1.64/27192.168.1.65192.168.1.94192.168.1.95
192.168.1.96/27192.168.1.97192.168.1.126192.168.1.127
192.168.1.128/27192.168.1.129192.168.1.158192.168.1.159
192.168.1.160/27192.168.1.161192.168.1.190192.168.1.191
192.168.1.192/27192.168.1.193192.168.1.222192.168.1.223
192.168.1.224/27192.168.1.225192.168.1.254192.168.1.255

The magic number for /27

Take the interesting octet of the mask, the one that is neither 255 nor 0. For /27 that is 224 in octet 4. Subtract it from 256:

256 - 224 = 32

That is the block size. Every /27 network address is a multiple of 32 in octet 4, so you can list them by counting: 0, 32, 64, 96, and so on. No binary needed once you know the number.

Where a /27 shows up in practice

A /27 gives 30 usable addresses. It is the size of a small branch office, a printer VLAN, or the out-of-band management network where every switch and PDU needs an address and nothing else does.

Frequently asked questions

How many hosts are in a /27?

A /27 holds 32 addresses in total. After reserving the network and broadcast addresses, 30 are usable by hosts.

What is the subnet mask for /27?

The /27 subnet mask is 255.255.255.224 in dotted-decimal notation.

What is the wildcard mask for /27?

The wildcard mask, also called the inverse mask, is 0.0.0.31. It is the bitwise inverse of 255.255.255.224 and is what Cisco access lists and OSPF network statements expect.

What is /27 in binary?

The /27 mask written out bit by bit is 11111111.11111111.11111111.11100000: 27 ones followed by 5 zeros.

How many /27 subnets fit in a /24?

A /24 splits into 8 subnets of /27.

Neighbouring masks: /26 is one bit shorter and holds twice as many addresses. /28 is one bit longer and holds half as many.
full cheat sheet subnetting basics open the calculator