SaveMyCert
IPv4 reference

/22 subnet mask (255.255.252.0)

A /22 is the subnet mask 255.255.252.0: 22 network bits and 10 host bits, giving 1,024 addresses and 1,022 usable hosts. Its wildcard mask is 0.0.3.255 and its block size is 4.

Subnet mask
255.255.252.0
Wildcard
0.0.3.255
Addresses
1,024
Usable hosts
1,022
Block size
4

The /22 mask in binary

The prefix is the number of 1 bits at the start of the mask. Ones mark the network part of an address, zeros the host part.

11111111.11111111.11111100.00000000

22 network bits, 10 host bits.

Every /22 in 172.16.0.0/16

A /16 holds 64 /22 subnets, each starting where the previous one ends.

/22 subnets of 172.16.0.0/16
NetworkFirst hostLast hostBroadcast
172.16.0.0/22172.16.0.1172.16.3.254172.16.3.255
172.16.4.0/22172.16.4.1172.16.7.254172.16.7.255
172.16.8.0/22172.16.8.1172.16.11.254172.16.11.255
172.16.12.0/22172.16.12.1172.16.15.254172.16.15.255
172.16.16.0/22172.16.16.1172.16.19.254172.16.19.255
172.16.20.0/22172.16.20.1172.16.23.254172.16.23.255
172.16.24.0/22172.16.24.1172.16.27.254172.16.27.255
172.16.28.0/22172.16.28.1172.16.31.254172.16.31.255
172.16.32.0/22172.16.32.1172.16.35.254172.16.35.255
172.16.36.0/22172.16.36.1172.16.39.254172.16.39.255
172.16.40.0/22172.16.40.1172.16.43.254172.16.43.255
172.16.44.0/22172.16.44.1172.16.47.254172.16.47.255
172.16.48.0/22172.16.48.1172.16.51.254172.16.51.255
172.16.52.0/22172.16.52.1172.16.55.254172.16.55.255
172.16.56.0/22172.16.56.1172.16.59.254172.16.59.255
172.16.60.0/22172.16.60.1172.16.63.254172.16.63.255
172.16.64.0/22172.16.64.1172.16.67.254172.16.67.255
172.16.68.0/22172.16.68.1172.16.71.254172.16.71.255
172.16.72.0/22172.16.72.1172.16.75.254172.16.75.255
172.16.76.0/22172.16.76.1172.16.79.254172.16.79.255
172.16.80.0/22172.16.80.1172.16.83.254172.16.83.255
172.16.84.0/22172.16.84.1172.16.87.254172.16.87.255
172.16.88.0/22172.16.88.1172.16.91.254172.16.91.255
172.16.92.0/22172.16.92.1172.16.95.254172.16.95.255
172.16.96.0/22172.16.96.1172.16.99.254172.16.99.255
172.16.100.0/22172.16.100.1172.16.103.254172.16.103.255
172.16.104.0/22172.16.104.1172.16.107.254172.16.107.255
172.16.108.0/22172.16.108.1172.16.111.254172.16.111.255
172.16.112.0/22172.16.112.1172.16.115.254172.16.115.255
172.16.116.0/22172.16.116.1172.16.119.254172.16.119.255
172.16.120.0/22172.16.120.1172.16.123.254172.16.123.255
172.16.124.0/22172.16.124.1172.16.127.254172.16.127.255
172.16.128.0/22172.16.128.1172.16.131.254172.16.131.255
172.16.132.0/22172.16.132.1172.16.135.254172.16.135.255
172.16.136.0/22172.16.136.1172.16.139.254172.16.139.255
172.16.140.0/22172.16.140.1172.16.143.254172.16.143.255
172.16.144.0/22172.16.144.1172.16.147.254172.16.147.255
172.16.148.0/22172.16.148.1172.16.151.254172.16.151.255
172.16.152.0/22172.16.152.1172.16.155.254172.16.155.255
172.16.156.0/22172.16.156.1172.16.159.254172.16.159.255
172.16.160.0/22172.16.160.1172.16.163.254172.16.163.255
172.16.164.0/22172.16.164.1172.16.167.254172.16.167.255
172.16.168.0/22172.16.168.1172.16.171.254172.16.171.255
172.16.172.0/22172.16.172.1172.16.175.254172.16.175.255
172.16.176.0/22172.16.176.1172.16.179.254172.16.179.255
172.16.180.0/22172.16.180.1172.16.183.254172.16.183.255
172.16.184.0/22172.16.184.1172.16.187.254172.16.187.255
172.16.188.0/22172.16.188.1172.16.191.254172.16.191.255
172.16.192.0/22172.16.192.1172.16.195.254172.16.195.255
172.16.196.0/22172.16.196.1172.16.199.254172.16.199.255
172.16.200.0/22172.16.200.1172.16.203.254172.16.203.255
172.16.204.0/22172.16.204.1172.16.207.254172.16.207.255
172.16.208.0/22172.16.208.1172.16.211.254172.16.211.255
172.16.212.0/22172.16.212.1172.16.215.254172.16.215.255
172.16.216.0/22172.16.216.1172.16.219.254172.16.219.255
172.16.220.0/22172.16.220.1172.16.223.254172.16.223.255
172.16.224.0/22172.16.224.1172.16.227.254172.16.227.255
172.16.228.0/22172.16.228.1172.16.231.254172.16.231.255
172.16.232.0/22172.16.232.1172.16.235.254172.16.235.255
172.16.236.0/22172.16.236.1172.16.239.254172.16.239.255
172.16.240.0/22172.16.240.1172.16.243.254172.16.243.255
172.16.244.0/22172.16.244.1172.16.247.254172.16.247.255
172.16.248.0/22172.16.248.1172.16.251.254172.16.251.255
172.16.252.0/22172.16.252.1172.16.255.254172.16.255.255

Where a /22 is used

A /22 joins four /24 networks: 1,022 usable hosts, often used for a campus wireless network where one /24 runs out of addresses.

As a summary route it stands for four /24s, which must start on a multiple of 4 in the third octet (10.1.4.0/22 covers 10.1.4.0 to 10.1.7.255).

Usable addresses in a /22
WhereUsable addresses
Ordinary network1,022
AWS VPC subnet (5 reserved)1,019
Azure subnet (5 reserved)1,019

Worked example: 172.16.45.9/22

The block-size method, the way you would do it in an exam without a calculator.

  1. /22 means a mask of 255.255.252.0.
  2. The interesting octet is the third one, where the mask is 252. Block size = 256 − 252 = 4.
  3. Subnets in that octet start at multiples of 4. 45 falls in the block from 44 to 47.
  4. Network address = 172.16.44.0; broadcast = the next block minus one = 172.16.47.255.
  5. Usable hosts run from the network plus one to the broadcast minus one: 172.16.44.1 to 172.16.47.254, which is 2^10 − 2 = 1,022 addresses.

Try another address in the subnet calculator, or practise without one on the subnetting practice questions.

/22 subnet mask: your questions

The subnet mask for /22 is 255.255.252.0. The prefix counts the 1 bits in the mask: 11111111.11111111.11111100.00000000 has 22 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.3.255.

Other prefixes