Home Net Guide

Home / Subnet calculator / /4

/4 subnet: mask 240.0.0.0

A /4 network holds 268,435,456 addresses, of which 268,435,454 can be given to devices. Its subnet mask is 240.0.0.0.

Prefix length (CIDR)
/4
Subnet mask
240.0.0.0
Wildcard mask
15.255.255.255
Mask in binary
11110000.00000000.00000000.00000000
Network bits / host bits
4 / 28
Total addresses
268,435,456 (2 to the power of 28)
Usable host addresses
268,435,454 (the first address names the network and the last is the broadcast address)
Contains
1,048,576 networks of size /24

What a /4 is used for

Two /4 blocks have a defined meaning. 224.0.0.0/4 is the entire multicast range (the old class D), used for traffic sent to a group of receivers at once. 240.0.0.0/4 is the reserved range (class E), which was never opened for normal use.

Worked example: which /4 is 100.20.1.130 in?

The mask's value in the first octet is 240, so networks advance in steps of 256 minus 240, which is 16, in that octet: 0, 16, 32, 48 and so on up to 240. 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/4.

Network
96.0.0.0/4
Usable range
96.0.0.1 to 111.255.255.254
Broadcast address
111.255.255.255
Next /4 begins at
112.0.0.0/4

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

All 16 /4 networks in 0.0.0.0/0

NetworkUsable rangeBroadcast
0.0.0.0/40.0.0.1 to 15.255.255.25415.255.255.255
16.0.0.0/416.0.0.1 to 31.255.255.25431.255.255.255
32.0.0.0/432.0.0.1 to 47.255.255.25447.255.255.255
48.0.0.0/448.0.0.1 to 63.255.255.25463.255.255.255
64.0.0.0/464.0.0.1 to 79.255.255.25479.255.255.255
80.0.0.0/480.0.0.1 to 95.255.255.25495.255.255.255
96.0.0.0/496.0.0.1 to 111.255.255.254111.255.255.255
112.0.0.0/4112.0.0.1 to 127.255.255.254127.255.255.255
128.0.0.0/4128.0.0.1 to 143.255.255.254143.255.255.255
144.0.0.0/4144.0.0.1 to 159.255.255.254159.255.255.255
160.0.0.0/4160.0.0.1 to 175.255.255.254175.255.255.255
176.0.0.0/4176.0.0.1 to 191.255.255.254191.255.255.255
192.0.0.0/4192.0.0.1 to 207.255.255.254207.255.255.255
208.0.0.0/4208.0.0.1 to 223.255.255.254223.255.255.255
224.0.0.0/4224.0.0.1 to 239.255.255.254239.255.255.255
240.0.0.0/4240.0.0.1 to 255.255.255.254255.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 /3 is twice the size, with 536,870,910 usable addresses, and a /5 is half the size, with 134,217,726 usable addresses. The table of every prefix size compares them all.