Home Net Guide

Home / Subnet calculator / /5

/5 subnet: mask 248.0.0.0

A /5 network holds 134,217,728 addresses, of which 134,217,726 can be given to devices. Its subnet mask is 248.0.0.0.

Prefix length (CIDR)
/5
Subnet mask
248.0.0.0
Wildcard mask
7.255.255.255
Mask in binary
11111000.00000000.00000000.00000000
Network bits / host bits
5 / 27
Total addresses
134,217,728 (2 to the power of 27)
Usable host addresses
134,217,726 (the first address names the network and the last is the broadcast address)
Contains
524,288 networks of size /24

What a /5 is used for

No organisation holds a /5. A block this size exists only as arithmetic: a way to summarise eight neighbouring /8 blocks in a single line of a routing table or firewall rule.

Worked example: which /5 is 100.20.1.130 in?

The mask's value in the first octet is 248, so networks advance in steps of 256 minus 248, which is 8, in that octet: 0, 8, 16, 24 and so on up to 248. The first octet of 100.20.1.130 is 100, which falls in the step that starts at 96. The network is therefore 96.0.0.0/5.

Network
96.0.0.0/5
Usable range
96.0.0.1 to 103.255.255.254
Broadcast address
103.255.255.255
Next /5 begins at
104.0.0.0/5

Open this example in the subnet calculator to see it bit by bit, or to try your own address.

The first 16 of the 32 /5 networks in 0.0.0.0/0

NetworkUsable rangeBroadcast
0.0.0.0/50.0.0.1 to 7.255.255.2547.255.255.255
8.0.0.0/58.0.0.1 to 15.255.255.25415.255.255.255
16.0.0.0/516.0.0.1 to 23.255.255.25423.255.255.255
24.0.0.0/524.0.0.1 to 31.255.255.25431.255.255.255
32.0.0.0/532.0.0.1 to 39.255.255.25439.255.255.255
40.0.0.0/540.0.0.1 to 47.255.255.25447.255.255.255
48.0.0.0/548.0.0.1 to 55.255.255.25455.255.255.255
56.0.0.0/556.0.0.1 to 63.255.255.25463.255.255.255
64.0.0.0/564.0.0.1 to 71.255.255.25471.255.255.255
72.0.0.0/572.0.0.1 to 79.255.255.25479.255.255.255
80.0.0.0/580.0.0.1 to 87.255.255.25487.255.255.255
88.0.0.0/588.0.0.1 to 95.255.255.25495.255.255.255
96.0.0.0/596.0.0.1 to 103.255.255.254103.255.255.255
104.0.0.0/5104.0.0.1 to 111.255.255.254111.255.255.255
112.0.0.0/5112.0.0.1 to 119.255.255.254119.255.255.255
120.0.0.0/5120.0.0.1 to 127.255.255.254127.255.255.255

One size up and one size down

Each bit removed from the prefix doubles a network, and each bit added halves it. A /4 is twice the size, with 268,435,454 usable addresses, and a /6 is half the size, with 67,108,862 usable addresses. The table of every prefix size compares them all.