/22 subnet mask explained: addresses and range
A /22 subnet mask means the first 22 bits of an IPv4 address are the network portion, and the remaining 10 bits are for hosts. In dotted-decimal form, that mask is 255.255.252.0, and it gives you 1,024 total IP addresses with 1,022 usable in the usual IPv4 subnet setup. If you’re looking at a config and need the exact range, you still need the IP it’s paired with to find the network and broadcast addresses.
Quick check before you use it in a config
Before you save a /22 in a router, switch, VM, or cloud setting, check these points:
- Confirm the mask is
255.255.252.0. - Make sure the network starts on a third-octet multiple of 4.
- Verify the full range before assigning hosts.
- Keep the gateway inside the usable range, not on the network or broadcast address.
- If you’re entering a host IP, confirm it belongs to the subnet you expect.
For a quick sanity check, remember the pattern: a /22 covers four values in the third octet. If your address block doesn’t do that, something is off.
If you want to verify a specific IP, pair it with the subnet mask and work backward from the third octet to the nearest lower multiple of 4. That gives you the network address, and the rest of the range follows from there.
Conclusion
If you see `/22` in a config, read it as a subnet with 22 network bits, a mask of `255.255.252.0`, 1,024 total addresses, and 1,022 usable host addresses. The part to check most carefully is the third octet, because the subnet only starts on multiples of 4. If you have a specific IP and want the exact range, pair it with the mask and find the nearest valid boundary first.
Frequently Asked Questions
Is /22 the same as 255.255.252.0?
Yes. `/22` maps to `255.255.252.0` in IPv4.
How many usable hosts are in a /22?
A `/22` has 1,024 total addresses and 1,022 usable host addresses in the usual IPv4 subnet setup.
What third-octet values are valid for a /22 network start?
They start at multiples of 4, such as 0, 4, 8, 12, 16, and so on.
What is the usable range of 192.168.12.0/22?
The usable range is `192.168.12.1` through `192.168.15.254`.