CIDR
/22
Subnet Mask
255.255.252.0
Total Addresses
1,024
Usable Hosts
1,022
01 / EXAMPLE

Example: 10.0.0.0/22

Network address
10.0.0.0
Broadcast
10.0.3.255
First host
10.0.0.1
Last host
10.0.3.254
Subnet mask
255.255.252.0
Wildcard mask
0.0.3.255
Open in Calculator → Open as AWS VPC
02 / CLOUD HOSTS

Usable hosts by cloud provider

Provider Reserved Usable Hosts
Standard (RFC)21,022
AWS VPC51,019
Azure VNet51,019
GCP41,020
OCI31,021
1,024 total − 5 reserved = 1,019 usable
03 / WHERE YOU SEE /22

When to use a /22

1,024 addresses. Common parent block for VLSM with 4-8 children of various sizes.

03 / SUBNET MATH

How to read the /22 mask

The /22 subnet uses 255.255.252.0 as its subnet mask — meaning the first 22 bits of every address identify the network, and the remaining 10 bits identify the host within that network. That gives you 1,024 total addresses (1,022 usable on standard RFC math, after subtracting the network and broadcast addresses).

The wildcard mask — the bitwise inverse of the subnet mask — is 0.0.3.255. Wildcards are what Cisco access-control lists and OSPF area definitions use instead of subnet masks; the "1" bits mark "don't care" positions. For a /22, that leaves 10 don't-care host bits.

To find the network address for any IP in a /22 block, perform a bitwise AND between the IP and the subnet mask. To find the broadcast, OR the network address with the wildcard. Modern tools — like our subnet calculator — do this in microseconds, but the underlying mechanics are straightforward binary arithmetic.

04 / IN PRACTICE

Where you encounter /22 in real networks

A /22 contains 1,024 addresses. Frequently used as a campus or floor aggregate that is then split via VLSM into /24, /25, /26 subnets per VLAN. The example block on this site for VLSM walkthroughs.

Cloud-provider quirks matter at every prefix size: AWS and Azure reserve 5 IPs per subnet, GCP reserves 4, and OCI reserves 3. So a /22 on standard RFC math gives you 1,022 usable hosts, but on AWS or Azure that drops to 1,019. The capacity-planning gap bites hardest at small prefixes (a /28 has 14 usable on paper, only 11 on AWS) but exists at every size. Our cloud-aware calculator applies the right math automatically.

05 / FAQ

Common questions

How many usable hosts does a /22 subnet have?

A /22 subnet has 1,022 usable hosts on standard RFC math. On AWS or Azure (which reserve 5 IPs per subnet), you get 1,019 usable. On GCP (4 reserved), 1,020. On OCI (3 reserved), 1,021.

What is the subnet mask for /22?

The /22 prefix corresponds to subnet mask 255.255.252.0. The matching wildcard mask (used in Cisco ACLs) is 0.0.3.255.

How do you calculate the network and broadcast addresses for a /22?

Apply a bitwise AND between the IP and the subnet mask to get the network address. OR the network address with the wildcard mask to get the broadcast. For example, 172.16.0.0/22 has 1,024 total addresses, with the first being the network address and the last being the broadcast.

06 / RELATED

Related prefixes & tools

← /21
All prefixes →
/23 →