A /22 subnet mask is 255.255.252.0, which covers 1,024 IPv4 addresses with 1,022 usable for hosts. The /22 means 22 of the 32 address bits identify the network and 10 bits identify hosts, so 2 to the power of 10 equals 1,024 addresses. The first address is the network address and the last is the broadcast address, leaving 1,022 assignable.
Key takeaways
- A /22 is 255.255.252.0, with 1,024 total addresses and 1,022 usable hosts.
- A /22 spans four consecutive /24 networks, so its third octet always starts on a multiple of 4.
- A /22 is roomy for a campus or office network, but a flat /22 gives every host a large blast radius.
If you have ever looked at a network setting and seen 255.255.252.0, you were looking at a /22. It is one of the most common subnet sizes for offices, schools and campus Wi-Fi, and it is also one of the easiest to get wrong: one wrong octet and a device ends up on a network it cannot reach.
What is a /22 subnet mask?
A /22 subnet mask is 255.255.252.0. The "/22" is CIDR notation: 22 of the 32 bits in an IPv4 address identify the network, and the remaining 10 bits identify hosts inside it.
The mask is the same idea written as an address. Twenty-two one bits followed by ten zero bits gives 11111111.11111111.11111100.00000000, which is 255.255.252.0 in dotted decimal. The first two octets are fully network bits, the third octet is split (252 means its top six bits are network bits), and the fourth octet is entirely host bits.
CIDR, defined in RFC 4632, replaced the old class A, B and C system. Instead of only three fixed network sizes, you can now choose any prefix length, so a block can be sized to fit the actual need. A /22 is the size you pick when a /24 is too small and a /21 is more than you need.
How many IP addresses are in a /22?
A /22 contains 1,024 IPv4 addresses in total, of which 1,022 can be assigned to hosts. The math is 2 to the power of 10, because 10 host bits remain after the 22 network bits.
Two addresses are reserved in every IPv4 subnet. The first address, with all host bits set to zero, is the network address. The last address, with all host bits set to one, is the broadcast address used to send a message to every host on the subnet. Neither can be given to a device, which is why the usable count is 1,022 rather than 1,024.
RFC 4632 lists the same figure in its prefix table: a /22 block holds 1,024 addresses, and there are 4,194,304 possible /22 blocks in the IPv4 space.
How does a /22 compare with /21, /23 and /24?
Each prefix bit you add halves the block, and each bit you remove doubles it. A /21 holds 2,048 addresses, a /23 holds 512, and a /24 holds 256.
| Prefix | Subnet mask | Total addresses | Usable hosts | Equals |
|---|---|---|---|---|
| /21 | 255.255.248.0 | 2,048 | 2,046 | 8 x /24 |
| /22 | 255.255.252.0 | 1,024 | 1,022 | 4 x /24 |
| /23 | 255.255.254.0 | 512 | 510 | 2 x /24 |
| /24 | 255.255.255.0 | 256 | 254 | 1 x /24 |
| /25 | 255.255.255.128 | 128 | 126 | Half a /24 |
| /16 | 255.255.0.0 | 65,536 | 65,534 | 256 x /24 |
The practical rule: if you expect up to about 500 devices, a /23 is enough. Between 500 and 1,022, a /22 is the right fit. Above 1,022, step up to a /21 rather than stretching a /22 with tricks like address sharing.
Choosing the smallest size that fits is good hygiene. A block that is far bigger than needed wastes addresses and, more importantly, puts more devices in one broadcast domain, which is a security problem we cover below.
What does a /22 range look like? A worked example
Take 192.168.180.0/22. Its network address is 192.168.180.0, its first usable host is 192.168.180.1, its last usable host is 192.168.183.254, and its broadcast address is 192.168.183.255.
Notice the range covers four /24 networks: 192.168.180.0/24, 192.168.181.0/24, 192.168.182.0/24 and 192.168.183.0/24. That is why a device at 192.168.181.150 and a device at 192.168.183.10 are on the same /22 network even though they sit in different /24s. With a /24 mask they would be on different networks and need a router to talk.
Another example: 10.42.7.19/22 sits in the network 10.42.4.0/22, with usable hosts from 10.42.4.1 to 10.42.7.254 and broadcast 10.42.7.255. The network address is found by keeping the network bits of the address and setting the host bits to zero.
Which addresses are valid /22 networks?
A /22 network address must start on a multiple of 4 in the third octet: 0, 4, 8, 12, 16, and so on up to 252. The mask boundary falls inside the third octet, so only those starting points line up with the 22-bit boundary.
This is the most common /22 mistake. If someone configures 192.168.1.0/22, the address 192.168.1.0 is not a network address at all — the actual network is 192.168.0.0/22, and 192.168.1.0 is just a host inside it. Some equipment will reject the configuration; other equipment will silently accept it and behave unexpectedly, which is worse.
To check an address, divide the third octet by 4. If there is no remainder, it can be a /22 network address. If there is a remainder, round down to the nearest multiple of 4 to find the real network. For example, 10.20.7.19/22 belongs to 10.20.4.0/22.
How do you split a /22 into smaller subnets?
Add one bit to the prefix to split a /22 into two /23 subnets, or two bits to make four /24 subnets. Each extra bit doubles the number of subnets and halves the hosts in each one.
| Split a /22 into | Subnets | Usable hosts each | Total usable |
|---|---|---|---|
| 2 x /23 | 2 | 510 | 1,020 |
| 4 x /24 | 4 | 254 | 1,016 |
| 8 x /25 | 8 | 126 | 1,008 |
| 16 x /26 | 16 | 62 | 992 |
Every split costs addresses: each new subnet needs its own network and broadcast address, so four /24s give 1,016 usable hosts instead of the 1,022 a single /22 offers. That small loss buys you segmentation, which is usually worth it.
A common pattern is to split a /22 into separate /24s for staff, guests, printers and IoT devices, then control traffic between them with firewall rules. That way a compromised smart TV cannot reach the finance server, even though both started in the same address block.
Where do /22 networks live? Private vs public space
A /22 is just a size; whether it is private depends on where it sits. RFC 1918 reserves three blocks for private networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Inside those blocks you can use any /22 you like without asking anyone. A 192.168.0.0/16 block holds 64 /22 subnets, 172.16.0.0/12 holds 1,024, and 10.0.0.0/8 holds 16,384. These addresses are not routed on the public internet, so devices using them reach the outside world through NAT at the router.
Outside those blocks, a /22 is public space assigned by a regional internet registry such as ARIN. Internet providers also use /22s: a provider might assign a customer a /22 as four aggregated /24s, and advertise it as a single route, which is exactly the aggregation CIDR was designed for.
Is a /22 safe? The security trade-off
A /22 is not unsafe by itself, but a flat /22 with 1,022 hosts in one broadcast domain is a large blast radius. Any device on it can see broadcast traffic from every other device, and an attacker who lands on one host can scan the other 1,021 without crossing a firewall.
Three habits keep a /22 safe. First, segment it: split the block into VLANs by role (staff, guests, servers, IoT) and filter between them. Second, use DHCP with reservations and short leases so you always know what is on the network. Third, monitor for rogue devices — an unknown host appearing in a /22 is easy to miss precisely because the range is large.
On a home network, a /22 is almost always overkill and a sign that something was misconfigured or copied from a template. Home routers normally hand out a /24. If your home network shows a /22 mask, check the router settings: it may be intentional on a large property, but it is worth confirming. Our guide to securing your Wi-Fi covers the router settings that matter most.
Also remember that a subnet mask is not a security control. It decides which addresses are local, not who may talk to whom. Access control needs firewall rules, and encryption needs protocols like TLS — a mask provides neither. If you want to understand the encryption side, see our explainer on what encryption software is.
How do I check my subnet mask?
On Windows, open a terminal and run ipconfig; the mask appears as "Subnet Mask" next to your IPv4 address. On macOS or Linux, run ip addr or ifconfig and look for the prefix after the slash, such as /22.
On a router, the mask is in the LAN or DHCP settings, usually next to the network address and the DHCP range. If the DHCP range is wider than the mask allows, some addresses in the range will not work.
You can also see the public address your network presents to the internet with our free IP lookup tool. That shows your public IP, not your internal subnet, but it is a useful first check when a device cannot reach the internet at all.
Common /22 mistakes
Most /22 problems come from the same few errors. Avoid these and the rest is straightforward.
- Using a non-boundary network address such as 192.168.1.0/22. Round the third octet down to a multiple of 4.
- Mixing masks on the same network. If one device uses /22 and another uses /24, they disagree about who is local, and traffic that should stay local goes to the router, or vice versa.
- Forgetting the broadcast address. Assigning 192.168.183.255 to a host breaks that host and floods the network.
- Counting 1,024 usable hosts. The usable count is 1,022; planning for 1,024 leaves two devices without an address.
- Putting everything in one flat /22. Guests, printers and servers in one broadcast domain is convenient until one of them is compromised.
- Assuming the mask is a firewall. It is not. Subnetting organizes addresses; firewall rules control access.
The bottom line
A /22 subnet mask is 255.255.252.0, covering 1,024 addresses with 1,022 usable hosts across four /24 networks. It is the right size when you have outgrown a /24 but do not need a /21, and its network addresses always start on a multiple of 4 in the third octet.
Use it with segmentation: split the block by role, keep the masks consistent on every device, and remember that the mask organizes your network — it does not protect it. If you are setting up a network from scratch, check your current setup with the free DNS lookup tool and the rest of our network tools.
Frequently asked questions
What is the subnet mask for a /22?
The subnet mask for a /22 is 255.255.252.0. In binary it is 22 one bits followed by 10 zero bits: 11111111.11111111.11111100.00000000. The wildcard mask, the inverse used in access lists, is 0.0.3.255.
How many hosts can a /22 support?
A /22 supports 1,022 usable hosts. It contains 1,024 addresses in total, but the network address and the broadcast address cannot be assigned to a host, so you subtract two. If you need more than 1,022 devices, move to a /21 with 2,046 usable hosts.
What is the difference between a /22 and a /24?
A /24 has 256 addresses and 254 usable hosts, while a /22 has 1,024 addresses and 1,022 usable hosts. A /22 is exactly four /24 networks joined together. A /24 fits a small office or a single VLAN; a /22 fits a larger site with room to grow.
What are the valid /22 network addresses?
Valid /22 network addresses start on a multiple of 4 in the third octet: 192.168.0.0/22, 192.168.4.0/22, 192.168.8.0/22, and so on. An address like 192.168.1.0/22 is not a valid network address, because 1 is not a multiple of 4 — the real network is 192.168.0.0/22.
Is a /22 a private network?
A /22 can be private or public depending on the addresses it uses. A /22 inside 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16 is private under RFC 1918 and is not routed on the public internet. A /22 in any other range is public address space assigned by a regional registry.
How do I split a /22 into smaller subnets?
Add one prefix bit to split a /22 into two /23 subnets of 510 usable hosts each, or two bits to make four /24 subnets of 254 usable hosts each. Each split costs you a network and broadcast address per new subnet, so four /24s give 1,016 usable hosts instead of 1,022.
How do I find my subnet mask?
On Windows run ipconfig in a terminal, on macOS or Linux run ifconfig or ip addr. The mask is shown next to your IP address. You can also check the address your device was given with our free IP lookup tool.
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 RFC 4632 for CIDR prefix sizes and RFC 1918 for the private address ranges.
How we write and fact-check →