> ## Content Index
> Fetch the complete content index at: https://routerhaven.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# /24 subnet mask explained: addresses, meaning, and uses
- URL: https://routerhaven.com/24-subnet-mask/
- Published: 2026-11-02T02:54:00.000Z
- Updated: 2026-11-02T02:54:00.000Z
- Author: Caleb Renwick
- Tags: Networking

/24 means the first 24 bits of an IPv4 [address are the network](https://routerhaven.com/subnet-mask-network-boundaries/) part, and the last 8 bits are for hosts on that network. In dotted-decimal form, that subnet mask is 255.255.255.0, which gives you 256 total addresses and 254 usable device addresses in the usual IPv4 case.

## What /24 actually means

CIDR notation is a shorthand way to show how many bits [of an IP address](https://routerhaven.com/private-ip-address-ranges/) belong to the network. A /24 means the first 24 bits are fixed for the network, and the last 8 bits are available for individual devices on that network.

For an IPv4 address, there are 32 bits total. So with /24, you get 24 bits for the network and 8 bits for hosts. That is why a /24 is often described as a 256-address block: 2^8 equals 256 possible combinations in the host part.

For example, if you see `192.168.1.0/24`, the `/24` tells you that all addresses from `192.168.1.0` through `192.168.1.255` belong to the same subnet. The usable host range runs from `192.168.1.1` through `192.168.1.254`.

Devices inside that range can talk to each other directly. [Traffic to another subnet](https://routerhaven.com/subnet-mask-networking/) needs a gateway.

## What 255.255.255.0 means in real life

`/24` and `255.255.255.0` mean the same thing, just in two different formats. CIDR notation shows the number of network bits. The dotted-decimal mask shows those bits as four octets: `255.255.255.0`.

Here’s the practical effect. A device compares its own IP address with the subnet mask to decide whether another IP is local. If the other address matches the same network portion, the device sends the traffic directly on the local network. If it doesn’t match, the device sends the traffic to the default gateway, which is usually a router.

Say your laptop is `192.168.1.25` with mask `255.255.255.0`. Another device at `192.168.1.80` is local, so your laptop can reach it without a router. A device at `192.168.2.10` is in a different subnet, so your laptop sends that traffic to the gateway instead.

## How many IP addresses a /24 gives you

A /24 gives you 256 total addresses, but not all of them are usable by hosts. Two are reserved: one for the network address and one for the broadcast address.

Using `192.168.1.0/24` as the example:

- `192.168.1.0` is the network address
- `192.168.1.1` through `192.168.1.254` are usable host addresses
- `192.168.1.255` is the broadcast address

That leaves 254 usable addresses for devices. The network address identifies the subnet itself, and the broadcast address is used to send a message to every device on that subnet.

If you are filling out router settings or a static IP plan, the useful rule is simple: the usable range starts after the network address and ends before the broadcast address.

## Where you’ll usually see a /24 subnet

You’ll commonly see /24 in home networks, small office networks, and lab VLANs because it is a comfortable size. It gives enough room for printers, laptops, phones, access points, servers, and test devices without making the subnet awkward to manage.

A /24 is so common because it is simple to read and easy to plan around. Many consumer routers and small-business setups use it by default, and a lot of tutorials, sample configs, and lab exercises use it because the math is easy to follow.

For example, a home router might hand out addresses from `192.168.1.100` to `192.168.1.200` inside a `192.168.1.0/24` network. In a lab, you might assign one VLAN its own /24 so the devices on that segment stay neatly separated from other test networks.

The boundaries matter too. A /24 does not mean every device on a site or in a company shares one flat network. It only covers one subnet at a time, so larger networks are usually split into multiple subnets.

## The mistakes people make with /24

The biggest mix-up is treating the subnet mask, the subnet, and the default gateway as if they were the same thing. They are related, but they do different jobs.

The subnet mask tells you which part of the IP address is the network portion. The subnet is the actual network range, such as `192.168.1.0/24`. The default gateway is usually the router address inside that subnet, such as `192.168.1.1`.

Another common mistake is assuming any two devices with IP addresses close together can talk directly. That is only true if they are in the same subnet. For example, `192.168.1.50/24` and `192.168.1.60/24` are local to each other, but `192.168.1.50/24` and `192.168.2.60/24` are not, even though both look similar at a glance. In the second case, a router has to move the traffic between subnets.

People also sometimes set the gateway outside the subnet by accident. If the mask is `/24`, the gateway should normally be an address in that same `192.168.1.0/24` range.

A smaller but common mistake is using the terms loosely. If you say “the subnet is 255.255.255.0,” you mean the subnet mask. If you say “the gateway is /24,” that mixes up the router address with the prefix length.

## Quick answers to the questions people ask next

A /24 is usually 254 usable host addresses, but that assumes a normal IPv4 subnet with the network and broadcast addresses reserved. If you subtract more addresses for special use, the usable count drops.

Yes, a subnet can be larger or smaller. A `/16` is much larger than a `/24`, while a `/25` is smaller and splits the same size block into two equal halves. With `/25`, each subnet has 128 total addresses and 126 usable host addresses.

Compared with a `/16`, a `/24` is much tighter and easier to manage for a small network. Compared with a `/25`, a `/24` gives you twice as many total addresses. That is why `/24` shows up so often: it’s a convenient middle ground for small and medium networks.

## Conclusion

If you see \`/24\`, read it as a 255.255.255.0 subnet with 254 usable host addresses in the usual IPv4 case. When you’re checking a network, keep the three pieces separate: the subnet mask tells you the size, the subnet is the range, and the default gateway is the router inside that range. If you can identify those three correctly, most /24 questions become straightforward.

## Frequently Asked Questions

### Is /24 always 254 usable hosts?

In normal IPv4 subnetting, yes: 256 total addresses minus the network and broadcast addresses leaves 254 usable host addresses. If a network uses special reservations or different addressing rules, the usable count can be lower.

### Can a /24 be bigger or smaller?

The notation itself does not change. \`/24\` always means 24 network bits. What changes is the size of the subnet if you choose a different prefix, such as \`/23\`, \`/25\`, or \`/16\`.

### How does /24 compare with /25?

A \`/24\` has 256 total addresses and 254 usable hosts. A \`/25\` splits that space in half, giving 128 total addresses and 126 usable hosts per subnet.

### What is the default gateway in a /24?

The default gateway is usually the router address inside the same /24 subnet, such as \`192.168.1.1\` in a \`192.168.1.0/24\` network.