/21 Subnet Mask: 255.255.248.0
A /21 prefix fixes the first 21 bits of the address as the network, leaving 11 bits for hosts. That gives 2,048 addresses, of which 2,046 can be assigned to hosts.
| CIDR notation | /21 |
| Subnet mask | 255.255.248.0 |
| Wildcard mask | 0.0.7.255 |
| Binary mask | 11111111.11111111.11111000.00000000 |
| Hex mask | 0xFFFFF800 |
| Total addresses | 2,048 |
| Usable hosts | 2,046 |
Example: 172.16.0.0/21
- Network address: 172.16.0.0
- First usable host: 172.16.0.1
- Last usable host: 172.16.7.254
- Broadcast address: 172.16.7.255
When to use a /21 subnet
Larger office or campus segments, and cloud subnets that need hundreds to thousands of addresses.
- 8,192 /21 subnets fit in a /8.
- 32 /21 subnets fit in a /16.
Frequently Asked Questions
What is the subnet mask for /21?
The subnet mask for /21 is 255.255.248.0, and its wildcard (inverse) mask is 0.0.7.255.
How many hosts are in a /21?
A /21 contains 2,048 addresses. Subtracting the network and broadcast addresses leaves 2,046 usable hosts.