/24 Subnet: Mask 255.255.255.0, 254 Usable Hosts

A /24 subnet has a subnet mask of 255.255.255.0 and contains 256 total IP addresses, of which 254 are usable host addresses (the network and broadcast addresses are reserved). A /24 is the classic "Class C" sized network.

CIDR notation /24
Subnet mask 255.255.255.0
Wildcard mask 0.0.0.255
Mask in binary 11111111.11111111.11111111.00000000
Total addresses 256 (2^8)
Usable hosts 254
Host bits 8

Usable hosts in a /24 by platform

Cloud providers reserve more than the usual two addresses per subnet, so the same /24 gives you fewer usable IPs in the cloud than on a standard LAN.

Platform Reserved IPs Usable hosts
Standard (network + broadcast) 2 254
AWS VPC 5 251
Microsoft Azure VNet 5 251
Google Cloud VPC 4 252
Oracle Cloud VCN 3 253

Good to know

A /24 is the workhorse of networking: 256 addresses, 254 usable. It is what most home routers hand out (192.168.1.0/24) and the default mental model for "one subnet."

How a /24 is calculated

Want to split a /24 into smaller subnets, see every address range, or plan a VLSM layout? Open the free subnet calculator →