/24 Subnet Mask

A /24 subnet mask is 255.255.255.0, with 256 addresses and 254 usable hosts.

CIDR prefix/24
Subnet mask255.255.255.0
Subnet mask (binary)11111111.11111111.11111111.00000000
Wildcard mask0.0.0.255
Network bits / host bits24 / 8
Total addresses256
Usable hosts254
/24 subnets in a /865,536
/24 subnets in a /16256

The mask ends exactly on an octet boundary, so every address in a /24 block shares its first 3 octets. The most common subnet size: 254 usable hosts and a mask of 255.255.255.0. The default for home routers and most office VLANs.

Try it with an address

Example /24 subnets in 192.168.1.0/24

Network First usable host Last usable host Broadcast
192.168.1.0/24 192.168.1.1 192.168.1.254 192.168.1.255

Frequently asked questions

What is the subnet mask for /24?

A /24 subnet mask is 255.255.255.0. In binary that is 11111111.11111111.11111111.00000000: 24 network bits followed by 8 host bits. The wildcard mask is 0.0.0.255.

How many usable hosts are in a /24?

A /24 holds 256 addresses in total. Subtracting the network and broadcast addresses leaves 254 usable hosts.

How many /24 subnets fit in a /16?

A /16 divides into 256 subnets of size /24, because each extra mask bit doubles the number of subnets.

Other prefix lengths

← /23 Full CIDR chart /25 →

Calculate this over HTTP: curl https://networkcalc.com/api/ip/192.168.1.0/24. See the Subnet Calculator API.