Subnet calculator › CIDR /24
/24 subnet mask (255.255.255.0)
A /24 uses the first 24 bits for the network and the remaining 8 bits for hosts: 256 addresses, 254 usable hosts.
| CIDR notation | /24 |
|---|---|
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| Binary mask | 11111111.11111111.11111111|00000000 |
| Hex mask | 0xFFFFFF00 |
| Total addresses | 256 (28) |
| Usable hosts | 254 · 256 addresses minus the network and broadcast addresses. |
| Block size | The third octet changes in steps of 1 |
What is a /24 used for?
- The most common LAN size and the home router default (
192.168.0.0/24,192.168.1.0/24) - The smallest prefix generally accepted on the internet (BGP); longer prefixes are usually filtered
- Old Class C size
/24 address range examples
Splitting 192.168.1.0/24 into /24 gives 1 subnets.
| Network | Usable range | Broadcast |
|---|---|---|
| 192.168.1.0/24 | 192.168.1.1 ~ 192.168.1.254 | 192.168.1.255 |
Splitting a /24 further
| Split into | Subnets | Hosts each |
|---|---|---|
| /25 | 2 | 126 |
| /26 | 4 | 62 |
| /27 | 8 | 30 |
| /28 | 16 | 14 |
| /29 | 32 | 6 |
| /30 | 64 | 2 |
| /31 | 128 | 2 |
| /32 | 256 | 1 |