/24 Subnet Explained: 255.255.255.0

A /24 is the most common subnet size in IPv4: a subnet mask of 255.255.255.0, 256 addresses, and 254 usable hosts. It is the default LAN size on most routers and the building block for larger designs. This guide shows what a /24 contains, how to divide it, and when it stops being the right size.

/24 at a glance

PropertyValue
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Mask in binary11111111.11111111.11111111.00000000
Total addresses256
Usable host addresses254
Block size256 (in the last octet)
Example network192.168.1.0/24
Usable range of the example192.168.1.1 – 192.168.1.254
Broadcast of the example192.168.1.255

What /24 means

The number after the slash is how many bits of the address identify the network. In a /24 the first 24 bits, which are the first three octets, are fixed for every device on the network. The last 8 bits are left for hosts, which gives 28 = 256 combinations. Every device in 192.168.1.0/24 shares the prefix 192.168.1, and only the final number changes.

Of the 256 addresses, two are reserved. The first (192.168.1.0) names the network itself, and the last (192.168.1.255) is the broadcast address that reaches every host at once. That leaves 254 addresses from .1 to .254 for devices, including the router.

People still call a /24 a "Class C" network. Classful addressing was replaced by CIDR in the 1990s, so the term is only a nickname today, but it explains why /24 became the default: it lines up neatly with an octet, so it is easy to read and hard to get wrong.

A sensible layout for one /24

One common way to organize 192.168.1.0/24 on a small network is to group addresses by role, so you can recognize a device from its address alone:

Keep DHCP reservations and static addresses outside the dynamic pool, otherwise two devices can end up with the same address.

Splitting a /24 into smaller subnets

Borrowing host bits turns a /24 into several smaller networks. Each extra bit halves the size and doubles the count:

PrefixSubnets in a /24Addresses eachUsable eachSubnet mask
/252128126255.255.255.128
/2646462255.255.255.192
/2783230255.255.255.224
/28161614255.255.255.240
/293286255.255.255.248
/306442255.255.255.252

For example, one /24 can be split into four /26 networks to separate users, voice, servers, and guest Wi-Fi. The division of 192.168.1.0/24 looks like this:

PurposeNetworkUsable rangeBroadcastUsable hosts
Users192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.6362
Voice192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.12762
Servers192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.19162
Guest Wi-Fi192.168.1.192/26192.168.1.193 – 192.168.1.254192.168.1.25562

You can generate and check splits like this with the subnet calculator, which also lists the full range of any prefix. Smaller blocks are covered in the /27 guide.

When a /24 is the wrong size

Too big. Every device in a /24 is in the same broadcast domain. A VLAN with 250 chatty devices generates a lot of broadcast and ARP traffic, and it is also a large blast radius if something misbehaves. A point-to-point link between two routers needs two addresses, so using a /24 there wastes 252 of them.

Too small. A busy wireless network can exhaust 254 addresses, especially with short DHCP leases and guests that reconnect often. The fix is usually a /23, which joins two adjacent /24s into a network of 510 usable hosts. The two /24s must line up: 192.168.2.0/24 and 192.168.3.0/24 combine into 192.168.2.0/23, but 192.168.1.0/24 and 192.168.2.0/24 cannot be combined into a single /23 because the first one starts at an odd number.

Checking whether two hosts share a /24

Two addresses are in the same /24 when their first three octets are identical. 192.168.1.20 and 192.168.1.200 are neighbours and can talk directly. 192.168.1.20 and 192.168.2.20 look similar, but the third octet differs, so they are in different /24 networks and need a router between them. Devices make exactly this decision by applying the mask: they AND each address with 255.255.255.0 and compare the results, sending the packet directly if the results match and to the default gateway if they do not. When a host cannot reach something that "should" be local, a wrong mask or a wrong third octet is one of the first things to check.

Common mistakes with /24 networks

Frequently asked questions

How many usable IP addresses are in a /24?

A /24 has 256 addresses in total and 254 usable host addresses, because the first address is the network address and the last is the broadcast address.

Is a /24 the same as a Class C network?

Historically yes: a Class C network had a default mask of 255.255.255.0. Classful addressing was replaced by CIDR, so today /24 is simply a prefix length and the Class C label is only a nickname.

What is the broadcast address of 192.168.1.0/24?

The broadcast address is 192.168.1.255, the last address in the range.

How many /24 subnets fit into a /16?

A /16 contains 256 /24 subnets, because 24 − 16 = 8 extra bits give 2^8 = 256 combinations.

Copied!