tip
~/geeksubnet/masks/28

/28 subnet mask: 255.255.255.240

Every value on this page is reproducible in the calculator.

The /28 prefix means the first 28 bits of the address identify the network and the remaining 4 identify the host. Written out, the mask is 255.255.255.240, in binary 11111111.11111111.11111111.11110000, and its Cisco wildcard or inverse form is 0.0.0.15. It covers 16 addresses, of which 14 can be given to hosts.

/28 at a glance

CIDR prefix/28
Subnet mask255.255.255.240
Mask in binary11111111.11111111.11111111.11110000
Wildcard (inverse) mask0.0.0.15
Host bits4
Total addresses16
Usable hosts14
Block size (magic number)16 in octet 4

Every /28 inside 192.168.1.0/24

A 192.168.1.0/24 contains 16 subnets of /28. Here are the first 8, which is enough to see the pattern: each one starts 16 after the last in octet 4.

NetworkFirst hostLast hostBroadcast
192.168.1.0/28192.168.1.1192.168.1.14192.168.1.15
192.168.1.16/28192.168.1.17192.168.1.30192.168.1.31
192.168.1.32/28192.168.1.33192.168.1.46192.168.1.47
192.168.1.48/28192.168.1.49192.168.1.62192.168.1.63
192.168.1.64/28192.168.1.65192.168.1.78192.168.1.79
192.168.1.80/28192.168.1.81192.168.1.94192.168.1.95
192.168.1.96/28192.168.1.97192.168.1.110192.168.1.111
192.168.1.112/28192.168.1.113192.168.1.126192.168.1.127

The magic number for /28

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

256 - 240 = 16

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

Where a /28 shows up in practice

A /28 gives 14 usable addresses. This is the block an ISP hands a business customer who asked for "some static IPs", and the usual size of a DMZ holding a handful of public-facing servers.

Frequently asked questions

How many hosts are in a /28?

A /28 holds 16 addresses in total. After reserving the network and broadcast addresses, 14 are usable by hosts.

What is the subnet mask for /28?

The /28 subnet mask is 255.255.255.240 in dotted-decimal notation.

What is the wildcard mask for /28?

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

What is /28 in binary?

The /28 mask written out bit by bit is 11111111.11111111.11111111.11110000: 28 ones followed by 4 zeros.

How many /28 subnets fit in a /24?

A /24 splits into 16 subnets of /28.

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