A /22 subnet mask is 255.255.252.0, with 1,024 addresses and 1,022 usable hosts.
| CIDR prefix | /22 |
|---|---|
| Subnet mask | 255.255.252.0 |
| Subnet mask (binary) | 11111111.11111111.11111100.00000000 |
| Wildcard mask | 0.0.3.255 |
| Network bits / host bits | 22 / 10 |
| Total addresses | 1,024 |
| Usable hosts | 1,022 |
| /22 subnets in a /8 | 16,384 |
| /22 subnets in a /16 | 64 |
The mask ends 6 bits into octet 3, so blocks step in increments of 4 in that octet. Often used for a larger campus or data-centre segment that needs about a thousand hosts.
| Network | First usable host | Last usable host | Broadcast |
|---|---|---|---|
| 192.168.0.0/22 | 192.168.0.1 | 192.168.3.254 | 192.168.3.255 |
| 192.168.4.0/22 | 192.168.4.1 | 192.168.7.254 | 192.168.7.255 |
| 192.168.8.0/22 | 192.168.8.1 | 192.168.11.254 | 192.168.11.255 |
| 192.168.12.0/22 | 192.168.12.1 | 192.168.15.254 | 192.168.15.255 |
| 192.168.16.0/22 | 192.168.16.1 | 192.168.19.254 | 192.168.19.255 |
| 192.168.20.0/22 | 192.168.20.1 | 192.168.23.254 | 192.168.23.255 |
| 192.168.24.0/22 | 192.168.24.1 | 192.168.27.254 | 192.168.27.255 |
| 192.168.28.0/22 | 192.168.28.1 | 192.168.31.254 | 192.168.31.255 |
A /22 subnet mask is 255.255.252.0. In binary that is 11111111.11111111.11111100.00000000: 22 network bits followed by 10 host bits. The wildcard mask is 0.0.3.255.
A /22 holds 1,024 addresses in total. Subtracting the network and broadcast addresses leaves 1,022 usable hosts.
A /16 divides into 64 subnets of size /22, because each extra mask bit doubles the number of subnets.
Calculate this over HTTP: curl https://networkcalc.com/api/ip/192.168.1.0/22.
See the Subnet Calculator API.