tip
~/geeksubnet/masks/13

/13 subnet mask: 255.248.0.0

Every value on this page is reproducible in the calculator.

The /13 prefix means the first 13 bits of the address identify the network and the remaining 19 identify the host. Written out, the mask is 255.248.0.0, in binary 11111111.11111000.00000000.00000000, and its Cisco wildcard or inverse form is 0.7.255.255. It covers 524,288 addresses, of which 524,286 can be given to hosts.

/13 at a glance

CIDR prefix/13
Subnet mask255.248.0.0
Mask in binary11111111.11111000.00000000.00000000
Wildcard (inverse) mask0.7.255.255
Host bits19
Total addresses524,288
Usable hosts524,286
Block size (magic number)8 in octet 2

Every /13 inside 10.0.0.0/8

A 10.0.0.0/8 contains 32 subnets of /13. Here are the first 8, which is enough to see the pattern: each one starts 8 after the last in octet 2.

NetworkFirst hostLast hostBroadcast
10.0.0.0/1310.0.0.110.7.255.25410.7.255.255
10.8.0.0/1310.8.0.110.15.255.25410.15.255.255
10.16.0.0/1310.16.0.110.23.255.25410.23.255.255
10.24.0.0/1310.24.0.110.31.255.25410.31.255.255
10.32.0.0/1310.32.0.110.39.255.25410.39.255.255
10.40.0.0/1310.40.0.110.47.255.25410.47.255.255
10.48.0.0/1310.48.0.110.55.255.25410.55.255.255
10.56.0.0/1310.56.0.110.63.255.25410.63.255.255

The magic number for /13

Take the interesting octet of the mask, the one that is neither 255 nor 0. For /13 that is 248 in octet 2. Subtract it from 256:

256 - 248 = 8

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

Where a /13 shows up in practice

A /13 is a quarter of a /11 and holds half a million addresses. It shows up in provider aggregation and in the middle layers of a large private plan. It is a routing-table size, not a subnet size.

Frequently asked questions

How many hosts are in a /13?

A /13 holds 524,288 addresses in total. After reserving the network and broadcast addresses, 524,286 are usable by hosts.

What is the subnet mask for /13?

The /13 subnet mask is 255.248.0.0 in dotted-decimal notation.

What is the wildcard mask for /13?

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

What is /13 in binary?

The /13 mask written out bit by bit is 11111111.11111000.00000000.00000000: 13 ones followed by 19 zeros.

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