taap.digitalnetwork engineering toolkit

/13 subnet mask: how many hosts?

Answer
255.248.0.0 /13 · 524,286 usable hosts

A /13 prefix is the mask 255.248.0.0. It leaves 19 host bits: 524,288 addresses in total and 524,286 usable hosts (network and broadcast excluded).

subnet4 · adjust the values
Accepts 10.0.0.1/8, 10.0.0.1 255.0.0.0 or just the IP with the prefix below.
Close-up of a network switch with ports and lights
Close-up of a network switch with ports and lights. Photo: Jonathan Castañeda / Unsplash

/13 at a glance

ItemValue
Mask255.248.0.0
Wildcard0.7.255.255
Addresses524,288
Usable hosts524,286
Mask in binary11111111.11111000.00000000.00000000
Example network10.0.0.0/13

Neighboring prefixes

PrefixMaskUsable hosts
/12255.240.0.01,048,574
/13255.248.0.0524,286
/14255.252.0.0262,142

To work out another address with this prefix, change the IP in the calculator above: you get network, broadcast and range in binary.

Step by step

  1. Host bits: 32 − 13 = 19.
  2. Addresses: 219 = 524,288.
  3. Usable hosts: 524,288 − 2 (network and broadcast) = 524,286.
  4. Octet 2 has 5 bits set: 256 − 8 = 248. Networks step by 8 in that octet.

Example with 10.0.0.0/13

ItemAddress
Network10.0.0.0/13
First host10.0.0.1
Last host10.7.255.254
Broadcast10.7.255.255

Nearby prefixes

PrefixMaskUsable hosts
/10255.192.0.04,194,302
/11255.224.0.02,097,150
/12255.240.0.01,048,574
/13255.248.0.0524,286
/14255.252.0.0262,142
/15255.254.0.0131,070
/16255.255.0.065,534

In practice

A /13 contains 2,048 /24 networks of 254 hosts each: that is how many typical LANs fit in the block. Going from /13 to /12 doubles the block to 1,048,576 addresses (1,048,574 usable hosts); going to /14 halves it to 262,142 usable hosts.

To try other values, open the IPv4 subnet calculator with these numbers already filled in.

More questions like this

Frequently asked questions

Why subtract 2 hosts?

The first address identifies the network and the last is the broadcast; neither can be assigned to a device. On /31 links (RFC 3021) both are used.

How do I configure it on Cisco?

With the dotted mask: ip address 192.168.10.1 255.248.0.0. ACLs and OSPF use the wildcard 0.7.255.255.