/4 subnet (CIDR)

A /4 network has subnet mask 240.0.0.0, 268,435,456 total addresses and 268,435,454 usable hosts.

240.0.0.0Subnet mask
15.255.255.255Wildcard mask
268,435,456Addresses
268,435,454Usable hosts

Open 0.0.0.0/4 in the subnet calculator →

Details

PropertyValue
Network bits4
Host bits28
Mask in binary11110000.00000000.00000000.00000000
Mask in hex0xF0000000
Total addresses228 = 268,435,456
Usable hosts228 − 2 = 268,435,454
Number of /24s inside1,048,576
Historic class equivalent—

Example: 0.0.0.0/4

Network 0.0.0.0, broadcast 15.255.255.255, hosts 0.0.0.1 to 15.255.255.254.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /4 holds two /5s.

Frequently asked questions

How many hosts in a /4?
268,435,454 usable out of 268,435,456 addresses.
What is the subnet mask for /4?
240.0.0.0 (binary 11110000.00000000.00000000.00000000).