Home / Subnet calculator / /21
/21 subnet: mask 255.255.248.0
A /21 network holds 2,048 addresses, of which 2,046 can be given to devices. Its subnet mask is 255.255.248.0.
- Prefix length (CIDR)
- /21
- Subnet mask
- 255.255.248.0
- Wildcard mask
- 0.0.7.255
- Mask in binary
- 11111111.11111111.11111000.00000000
- Network bits / host bits
- 21 / 11
- Total addresses
- 2,048 (2 to the power of 11)
- Usable host addresses
- 2,046 (the first address names the network and the last is the broadcast address)
- Contains
- 8 networks of size /24
What a /21 is used for
A /21 is eight /24 networks, 2,046 usable addresses. It suits a campus, a large Wi-Fi deployment or a small provider, usually as a block that is divided into smaller networks rather than run as one.
Worked example: which /21 is 172.16.77.130 in?
The mask's value in the third octet is 248, so networks advance in steps of 256 minus 248, which is 8, in that octet: 0, 8, 16, 24 and so on up to 248. The third octet of 172.16.77.130 is 77, which falls in the step that starts at 72. The network is therefore 172.16.72.0/21.
- Network
- 172.16.72.0/21
- Usable range
- 172.16.72.1 to 172.16.79.254
- Broadcast address
- 172.16.79.255
- Next /21 begins at
- 172.16.80.0/21
Open this example in the subnet calculator to see it bit by bit, or to try your own address.
The first 16 of the 32 /21 networks in 172.16.0.0/16
| Network | Usable range | Broadcast |
|---|---|---|
| 172.16.0.0/21 | 172.16.0.1 to 172.16.7.254 | 172.16.7.255 |
| 172.16.8.0/21 | 172.16.8.1 to 172.16.15.254 | 172.16.15.255 |
| 172.16.16.0/21 | 172.16.16.1 to 172.16.23.254 | 172.16.23.255 |
| 172.16.24.0/21 | 172.16.24.1 to 172.16.31.254 | 172.16.31.255 |
| 172.16.32.0/21 | 172.16.32.1 to 172.16.39.254 | 172.16.39.255 |
| 172.16.40.0/21 | 172.16.40.1 to 172.16.47.254 | 172.16.47.255 |
| 172.16.48.0/21 | 172.16.48.1 to 172.16.55.254 | 172.16.55.255 |
| 172.16.56.0/21 | 172.16.56.1 to 172.16.63.254 | 172.16.63.255 |
| 172.16.64.0/21 | 172.16.64.1 to 172.16.71.254 | 172.16.71.255 |
| 172.16.72.0/21 | 172.16.72.1 to 172.16.79.254 | 172.16.79.255 |
| 172.16.80.0/21 | 172.16.80.1 to 172.16.87.254 | 172.16.87.255 |
| 172.16.88.0/21 | 172.16.88.1 to 172.16.95.254 | 172.16.95.255 |
| 172.16.96.0/21 | 172.16.96.1 to 172.16.103.254 | 172.16.103.255 |
| 172.16.104.0/21 | 172.16.104.1 to 172.16.111.254 | 172.16.111.255 |
| 172.16.112.0/21 | 172.16.112.1 to 172.16.119.254 | 172.16.119.255 |
| 172.16.120.0/21 | 172.16.120.1 to 172.16.127.254 | 172.16.127.255 |
One size up and one size down
Each bit removed from the prefix doubles a network, and each bit added halves it. A /20 is twice the size, with 4,094 usable addresses, and a /22 is half the size, with 1,022 usable addresses. The table of every prefix size compares them all, and the VLAN planner lays out several networks of different sizes without overlaps.