An address like 192.168.1.10/24 looks straightforward until you're asked what the /24 actually does โ€” and the honest answer requires thinking in binary for a minute, not decimal.

What the /24 Actually Means in Binary

An IPv4 address is really just a 32-bit number, split into four 8-bit chunks and written in decimal for human readability (the four numbers separated by dots). The CIDR prefix โ€” the number after the slash โ€” says how many of those 32 bits, counted from the left, are fixed as the "network" portion shared by every device on that subnet. A /24 fixes the first 24 bits (the first three of the four dotted numbers), leaving the remaining 8 bits free to identify individual hosts within that network. That's exactly why every device on a typical home network shares the same first three numbers (like 192.168.1.x) but has a different final number.

Why Two Addresses Are Always Reserved

Within any subnet, two specific addresses are set aside and can't be assigned to a device. The lowest address in the range (all host bits set to 0) is reserved as the network address, which identifies the subnet as a whole rather than any single device on it. The highest address (all host bits set to 1) is reserved as the broadcast address, which is a special destination that every device on the subnet listens to. That's why a /24 network, with 256 total addresses, only has 254 that are actually assignable โ€” the first and last are spoken for structurally, not by convention.

Tip: When troubleshooting "why can't this device get address X," check whether X happens to be the network or broadcast address for that subnet โ€” it's a common off-by-one mistake when manually assigning static IPs.

Why a Smaller Prefix Means a Bigger Network

It can feel backwards at first, but a smaller prefix number always describes a larger network. The prefix counts locked network bits, and every bit that's not locked doubles the number of possible host addresses โ€” so fewer locked bits (a smaller prefix) leaves more free bits, and more free bits means exponentially more addresses. A /16 locks only 16 bits and leaves 16 free, for 65,536 total addresses, while a /24 locks 24 bits and leaves only 8 free, for just 256. Going from /24 to /23 doesn't add a modest number of addresses โ€” it doubles the entire subnet, because one more free bit doubles the range.

The /31 and /32 Edge Cases

The network/broadcast reservation rule has two documented exceptions at the extreme ends of the prefix range. A /32 has zero free bits, identifying exactly one single address with no network or broadcast concept at all. A /31 has just one free bit, giving a range of only two addresses โ€” and rather than "waste" one of them as an unusable broadcast address, RFC 3021 specifically defines /31 as usable in full for point-to-point links (like a direct connection between two routers), where both addresses in that tiny range are valid hosts.

Calculating a Subnet Instantly

Enter an IPv4 address with a CIDR prefix into the free IP Subnet Calculator to get the network address, broadcast address, subnet mask, wildcard mask, and usable host range instantly.

FAQ

What does the /24 in an address like 192.168.1.0/24 mean? The number after the slash is the CIDR prefix length โ€” it tells you how many of the address's 32 bits are fixed as the network portion. A /24 means the first 24 bits identify the network, leaving the remaining 8 bits for host addresses within it.

Why are only 254 addresses usable in a /24 network, not 256? Out of the 256 total addresses in a /24, the very first address is reserved as the network address (identifying the subnet itself) and the very last is reserved as the broadcast address (sent to every device on the subnet), leaving 254 addresses that can actually be assigned to devices.

What's different about /31 and /32 networks? A /32 identifies exactly one single address with no network/broadcast split. A /31, per RFC 3021, is a special case used for point-to-point links where both addresses in the tiny 2-address range are usable, since there's no need for a separate broadcast address between exactly two devices.

Why does a smaller CIDR prefix number mean a bigger network? The prefix number counts how many bits are locked to the network portion of the address โ€” fewer locked bits leaves more bits free for host addresses, and each additional free bit doubles the number of possible hosts. A /16 fixes only 16 bits and leaves 16 free (65,536 addresses), while a /24 fixes 24 bits and leaves only 8 free (256 addresses), which is why the smaller number describes the larger network.

Need to work out a network address, broadcast address, or usable host range right now? Try the free IP Subnet Calculator โ€” instant, no sign-up.