/4 Subnet Mask: 240.0.0.0
A /4 prefix fixes the first 4 bits of the address as the network, leaving 28 bits for hosts. That gives 268,435,456 addresses, of which 268,435,454 can be assigned to hosts.
| CIDR notation | /4 |
| Subnet mask | 240.0.0.0 |
| Wildcard mask | 15.255.255.255 |
| Binary mask | 11110000.00000000.00000000.00000000 |
| Hex mask | 0xF0000000 |
| Total addresses | 268,435,456 |
| Usable hosts | 268,435,454 |
Example: 0.0.0.0/4
- Network address: 0.0.0.0
- First usable host: 0.0.0.1
- Last usable host: 15.255.255.254
- Broadcast address: 15.255.255.255
When to use a /4 subnet
Huge address blocks allocated to regional internet registries and large organizations; rarely used for subnetting.
Frequently Asked Questions
What is the subnet mask for /4?
The subnet mask for /4 is 240.0.0.0, and its wildcard (inverse) mask is 15.255.255.255.
How many hosts are in a /4?
A /4 contains 268,435,456 addresses. Subtracting the network and broadcast addresses leaves 268,435,454 usable hosts.