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
| Network | Usable range | Broadcast |
|---|---|---|
| 0.0.0.0/4 | 0.0.0.1 to 15.255.255.254 | 15.255.255.255 |
| 16.0.0.0/4 | 16.0.0.1 to 31.255.255.254 | 31.255.255.255 |
| 32.0.0.0/4 | 32.0.0.1 to 47.255.255.254 | 47.255.255.255 |
| 48.0.0.0/4 | 48.0.0.1 to 63.255.255.254 | 63.255.255.255 |
| 64.0.0.0/4 | 64.0.0.1 to 79.255.255.254 | 79.255.255.255 |
| 80.0.0.0/4 | 80.0.0.1 to 95.255.255.254 | 95.255.255.255 |
| 96.0.0.0/4 | 96.0.0.1 to 111.255.255.254 | 111.255.255.255 |
| 112.0.0.0/4 | 112.0.0.1 to 127.255.255.254 | 127.255.255.255 |
| 128.0.0.0/4 | 128.0.0.1 to 143.255.255.254 | 143.255.255.255 |
| 144.0.0.0/4 | 144.0.0.1 to 159.255.255.254 | 159.255.255.255 |
| 160.0.0.0/4 | 160.0.0.1 to 175.255.255.254 | 175.255.255.255 |
| 176.0.0.0/4 | 176.0.0.1 to 191.255.255.254 | 191.255.255.255 |
| 192.0.0.0/4 | 192.0.0.1 to 207.255.255.254 | 207.255.255.255 |
| 208.0.0.0/4 | 208.0.0.1 to 223.255.255.254 | 223.255.255.255 |
| 224.0.0.0/4 | 224.0.0.1 to 239.255.255.254 | 239.255.255.255 |
| 240.0.0.0/4 | 240.0.0.1 to 255.255.255.254 | 255.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.