TechCompare LogoTechCompare

What is a /24 subnet? 256 IPs, the home-network default, and when to use it

A /24 is the right default for any network with fewer than 200 devices. It's universally compatible, easy to reason about (the last octet is the host portion), and gives you headroom without being wasteful. If you're approaching 200 devices, step up to a /23 rather than adding a second /24 and dealing with inter-VLAN routing.

A /24 subnet, written as 255.255.255.0 in dotted-decimal notation, provides 256 total addresses with 254 usable for hosts (one reserved for the network address and one for broadcast). This is the default subnet size on virtually every consumer router and the most common subnet on earth.

By TechCompare · Updated

CIDR
/24
Class C
Total addresses
256
254 usable for hosts
Network size
Small Networks
Up to 254 hosts

How this is calculated

The /24 is ubiquitous because it's simple and fits the vast majority of home and small-office networks. With 254 usable addresses, you can connect every phone, laptop, smart TV, IoT device, and printer in a typical household with room to spare. In CIDR notation, /24 means the first 24 bits of the IP address are the network portion, leaving 8 bits for hosts (2^8 = 256). Moving to a /23 doubles your address space to 510 usable hosts. Moving to a /25 halves it to 126.

Verdict

The /24 math is 256 total addresses minus the network and broadcast reservations, leaving 254 usable hosts, which is what every consumer router ships with by default. The host-side arithmetic (8 bits = 256) maps cleanly to the last octet, which is why the /24 is the mental model every network engineer reaches for first. Step up to a /23 when you cross roughly 200 active devices on the same segment, because the doubling to 510 usable hosts clears the headroom without forcing a second VLAN and the inter-VLAN routing that comes with it.

More Subnet scenarios

Frequently asked questions

How many usable IPs in a /24?
254 usable host addresses. The total is 256, but the first address (e.g., 192.168.1.0) is the network address and the last (192.168.1.255) is the broadcast address.
What's the difference between a /24 and a /23 subnet?
A /23 doubles the address space of a /24. The /24 has 256 total IPs (254 usable), while the /23 has 512 total IPs (510 usable). The subnet mask for /24 is 255.255.255.0, for /23 it's 255.255.252.0. Use /23 if you expect to exceed 200 devices on the same segment.
Can I have multiple /24 subnets on the same physical switch?
Yes, by using VLANs. Each VLAN creates an isolated broadcast domain on the switch. You assign a /24 (or any other subnet size) to each VLAN and route between them with a router or L3 switch. This is the standard practice for separating guest, IoT, and trusted networks on a single physical LAN.