A /23 subnet mask is 255.255.254.0. It leaves 9 host bits, so it holds 512 total IPv4 addresses and 510 usable hosts after the network and broadcast addresses are removed. A /23 is two adjacent /24 networks joined together, and it must start on an even third octet, such as 192.168.0.0 or 192.168.2.0.
Key takeaways
- A /23 is 255.255.254.0, with 512 total addresses and 510 usable hosts.
- It is two /24 networks combined, and it must start on an even third octet.
- Use a /23 when one network outgrows 254 hosts but does not need a /22.
You have a network with 300 devices, and a /24 only fits 254 of them. A /23 is the next step up: twice the space, one simple mask, and a range you can work out by hand in under a minute.
What is a /23 subnet mask?
A /23 subnet mask is 255.255.254.0. It means the first 23 bits of an IPv4 address identify the network, and the remaining 9 bits identify hosts inside that network.
An IPv4 address has 32 bits. The number after the slash in CIDR notation counts the network bits. For a /23, 32 minus 23 leaves 9 host bits, and 2 to the power of 9 is 512. That is the total number of addresses in the block.
Two of those addresses are reserved in a normal broadcast subnet. The first address names the network itself, and the last address is the broadcast address. Subtract both and you get 510 usable hosts. The Linuxize CIDR cheatsheet lists /23 as 255.255.254.0 with 512 addresses and 510 usable hosts, and RFC 4632, which defines CIDR notation, produces the same result.
How do you work out the /23 mask in binary?
Write 23 ones followed by 9 zeros, split into four groups of 8 bits, and convert each group to decimal. The result is 11111111.11111111.11111110.00000000, or 255.255.254.0.
The third octet is where the action is. Seven ones and one zero make 11111110, which is 254. The fourth octet is all zeros, so it is 0. The first two octets are all ones, so they are both 255.
The wildcard mask is the inverse: flip every bit. That gives 0.0.1.255. Cisco access lists use the wildcard form, where a 1 bit means that bit can vary. You can check your own address and prefix with our free IP checker.
How many hosts does a /23 hold?
A /23 holds 512 total addresses and 510 usable hosts. The formula is simple: total addresses equal 2 to the power of (32 minus the prefix), and usable hosts equal that total minus 2.
For a /23, that is 2 to the power of 9, which is 512, minus 2, which is 510. The two reserved addresses are the network address and the broadcast address. Every other address in the range can go to a device.
Compare it with its neighbors. A /24 holds 256 addresses and 254 usable hosts. A /22 holds 1,024 addresses and 1,022 usable hosts. Each step to a shorter prefix doubles the block, and each step to a longer prefix halves it.
What are the valid /23 ranges?
A /23 must start on an even third octet. Valid starts are 192.168.0.0, 192.168.2.0, 192.168.4.0, and so on, stepping by 2 in the third octet.
Take 192.168.0.0/23 as an example. Its network address is 192.168.0.0, its first usable host is 192.168.0.1, its last usable host is 192.168.1.254, and its broadcast address is 192.168.1.255. It covers both 192.168.0.x and 192.168.1.x.
That last point catches people out. Inside a /23, 192.168.0.255 and 192.168.1.0 are ordinary host addresses, not a broadcast and a network address. Some older software treats them as invalid, so if a single host with one of those addresses misbehaves, check that first.
| Network | First usable | Last usable | Broadcast |
|---|---|---|---|
| 192.168.0.0/23 | 192.168.0.1 | 192.168.1.254 | 192.168.1.255 |
| 192.168.2.0/23 | 192.168.2.1 | 192.168.3.254 | 192.168.3.255 |
| 10.20.0.0/23 | 10.20.0.1 | 10.20.1.254 | 10.20.1.255 |
| 172.16.4.0/23 | 172.16.4.1 | 172.16.5.254 | 172.16.5.255 |
A /23 that starts on an odd third octet, such as 192.168.1.0/23, is not a valid /23. It would overlap the neighboring blocks and confuse routing. Always round the third octet down to the nearest even number.
How do you find the network for an address in a /23?
Round the third octet down to the nearest multiple of 2, then set the fourth octet to 0. That gives you the network address, and the broadcast address is the last address before the next /23 starts.
Work through 192.168.181.150/23. The third octet is 181, which rounds down to 180. The network is therefore 192.168.180.0. The usable range runs from 192.168.180.1 to 192.168.181.254, and the broadcast address is 192.168.181.255.
You can do the same check with a bitwise AND. AND the address with the mask 255.255.254.0 and you get the network address. OR the network address with the wildcard 0.0.1.255 and you get the broadcast address. Our DNS lookup tool can help you confirm how a name resolves before you blame the subnet.
/23 vs /24 vs /22: which should you choose?
Choose by headroom, not by habit. A /24 fits 254 hosts, a /23 fits 510, and a /22 fits 1,022. Pick the smallest block that leaves comfortable room for growth.
A /23 is the right call when one network has outgrown a /24 but does not need a /22. Common cases are a busy office floor, a large Wi-Fi network with many phones and laptops, a school lab, or a small data center rack that keeps adding servers.
A bigger block is not free. Every host in a /23 shares one broadcast domain, so broadcast traffic reaches twice as many devices as in a /24. If the network is noisy, or if you want to separate printers, cameras and guest Wi-Fi, split the /23 into two /24 networks or use VLANs instead. Our guide to how to secure your Wi-Fi covers separating guest traffic from your main network.
| Prefix | Mask | Total addresses | Usable hosts | Best for |
|---|---|---|---|---|
| /22 | 255.255.252.0 | 1,024 | 1,022 | Large site, over 510 hosts |
| /23 | 255.255.254.0 | 512 | 510 | One network with 255 to 510 hosts |
| /24 | 255.255.255.0 | 256 | 254 | Small office or home network |
| /25 | 255.255.255.128 | 128 | 126 | Small department or lab |
| /26 | 255.255.255.192 | 64 | 62 | Tiny segment or test network |
How do you split or combine a /23?
Splitting a /23 gives you two /24 networks. Each half then has its own network and broadcast address, so the two halves together offer 508 usable hosts, two fewer than the single /23.
Split 192.168.0.0/23 and you get 192.168.0.0/24 and 192.168.1.0/24. Split it again and you get four /25 networks with 126 usable hosts each. Each extra prefix bit halves the block.
Combining works the other way. Two adjacent /24 networks can become one /23 only when the first one starts on an even third octet. 192.168.0.0/24 and 192.168.1.0/24 combine into 192.168.0.0/23, but 192.168.1.0/24 and 192.168.2.0/24 do not combine into a single block.
Before you renumber, check DHCP scopes, static addresses, firewall rules and VPN routes that mention the old ranges. A renumber that forgets a firewall rule is a common cause of a network that works for some hosts and not others.
What mistakes do people make with a /23?
The most common mistake is starting on an odd third octet. A network written as 192.168.1.0/23 looks plausible, but it is not aligned, and routers and calculators will either reject it or silently correct it to 192.168.0.0/23.
The second mistake is treating 192.168.0.255 as a broadcast address inside a /23. It is a normal host address there, and blocking it breaks a real device. The third mistake is forgetting that a /23 doubles the broadcast domain, so a chatty device or a broadcast storm affects twice as many hosts.
Finally, do not confuse the mask with the gateway. The mask tells hosts which addresses are local. The gateway is a separate address, usually the first or last usable host, that forwards traffic to other networks. A wrong mask sends local traffic to the gateway and remote traffic nowhere useful.
The bottom line
A /23 is 255.255.254.0, with 512 addresses and 510 usable hosts. It is two /24 networks joined together, it must start on an even third octet, and it is the right size when one network needs more than 254 hosts but fewer than 511.
Work out the range before you configure anything: round the third octet down to an even number, set the fourth octet to 0 for the network address, and add 0.0.1.255 for the broadcast address. If you want a quick sanity check on your own connection first, start with the free IP checker.
Frequently asked questions
What is the subnet mask for a /23?
The subnet mask for a /23 is 255.255.254.0. The first 23 bits are ones and the last 9 bits are zeros, which gives 512 total addresses and 510 usable hosts.
How many usable hosts does a /23 have?
A /23 has 510 usable hosts. It holds 512 addresses in total, and two are reserved: the first address names the network and the last address is the broadcast address.
What is the wildcard mask for a /23?
The wildcard mask for a /23 is 0.0.1.255. It is the inverse of 255.255.254.0, and Cisco access lists and some routing statements use it instead of the subnet mask.
Can a /23 start on an odd third octet?
No. A /23 must start on an even third octet, such as 192.168.0.0, 192.168.2.0 or 10.20.4.0. Starting on an odd octet, such as 192.168.1.0, does not align with the 2-address block size in that octet.
What is the difference between a /23 and a /24?
A /23 is twice as large as a /24. A /24 has 256 addresses and 254 usable hosts, while a /23 has 512 addresses and 510 usable hosts. A /23 joins two adjacent /24 networks into one broadcast domain.
When should I use a /23 instead of a /24?
Use a /23 when a single network needs more than 254 hosts, for example a busy office floor, a large Wi-Fi network or a growing lab, but still fits comfortably under 510 hosts. If you expect to pass 510 hosts soon, plan for a /22 instead.
What is the broadcast address of 192.168.0.0/23?
The broadcast address is 192.168.1.255. The usable range runs from 192.168.0.1 to 192.168.1.254, and 192.168.0.255 and 192.168.1.0 are ordinary host addresses inside this /23.
Is a /23 a private network?
A /23 is a size, not a range. It can be private, such as 192.168.0.0/23 or 10.0.0.0/23, or public, depending on the address block it covers. The private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the CIDR prefix tables in the Linuxize cheatsheet, the binary arithmetic for a 23-bit prefix, and RFC 4632 (CIDR) and RFC 791 (IPv4 addressing).
How we write and fact-check →