/24 Subnet Mask: 255.255.255.0
A /24 prefix fixes the first 24 bits of the address as the network, leaving 8 bits for hosts. That gives 256 addresses, of which 254 can be assigned to hosts. Before CIDR, /24 was the default mask of a Class C network.
| 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 |
| Usable hosts | 254 |
Example: 192.168.1.0/24
- Network address: 192.168.1.0
- First usable host: 192.168.1.1
- Last usable host: 192.168.1.254
- Broadcast address: 192.168.1.255
When to use a /24 subnet
The most common LAN size: a typical home or office network (for example 192.168.1.0/24) and a common cloud subnet size.
- 65,536 /24 subnets fit in a /8.
- 256 /24 subnets fit in a /16.
Frequently Asked Questions
What is the subnet mask for /24?
The subnet mask for /24 is 255.255.255.0, and its wildcard (inverse) mask is 0.0.0.255.
How many hosts are in a /24?
A /24 contains 256 addresses. Subtracting the network and broadcast addresses leaves 254 usable hosts.