Subnet calculator › CIDR /4

/4 subnet mask (240.0.0.0)

A /4 uses the first 4 bits for the network and the remaining 28 bits for hosts: 268,435,456 addresses, 268,435,454 usable hosts.

CIDR notation/4
Subnet mask240.0.0.0
Wildcard mask15.255.255.255
Binary mask1111|0000.00000000.00000000.00000000
Hex mask0xF0000000
Total addresses268,435,456 (228)
Usable hosts268,435,454 · 268,435,456 addresses minus the network and broadcast addresses.
Block size The first octet changes in steps of 16

What is a /4 used for?

/4 address range examples

Splitting 0.0.0.0/0 into /4 gives 16 subnets. The first 8 are shown.

NetworkUsable rangeBroadcast
0.0.0.0/4 0.0.0.1 ~ 15.255.255.254 15.255.255.255
16.0.0.0/4 16.0.0.1 ~ 31.255.255.254 31.255.255.255
32.0.0.0/4 32.0.0.1 ~ 47.255.255.254 47.255.255.255
48.0.0.0/4 48.0.0.1 ~ 63.255.255.254 63.255.255.255
64.0.0.0/4 64.0.0.1 ~ 79.255.255.254 79.255.255.255
80.0.0.0/4 80.0.0.1 ~ 95.255.255.254 95.255.255.255
96.0.0.0/4 96.0.0.1 ~ 111.255.255.254 111.255.255.255
112.0.0.0/4 112.0.0.1 ~ 127.255.255.254 127.255.255.255

Try it in the calculator →

Splitting a /4 further

Split intoSubnetsHosts each
/5 2 134,217,726
/6 4 67,108,862
/7 8 33,554,430
/8 16 16,777,214
/9 32 8,388,606
/10 64 4,194,302
/11 128 2,097,150
/12 256 1,048,574

Other prefixes