/21 subnet (CIDR)

A /21 network has subnet mask 255.255.248.0, 2,048 total addresses and 2,046 usable hosts.

255.255.248.0Subnet mask
0.0.7.255Wildcard mask
2,048Addresses
2,046Usable hosts

Open 172.16.0.0/21 in the subnet calculator →

Details

PropertyValue
Network bits21
Host bits11
Mask in binary11111111.11111111.11111000.00000000
Mask in hex0xFFFFF800
Total addresses211 = 2,048
Usable hosts211 − 2 = 2,046
Number of /24s inside8
Historic class equivalent—

Example: 172.16.0.0/21

Network 172.16.0.0, broadcast 172.16.7.255, hosts 172.16.0.1 to 172.16.7.254.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /21 holds two /22s.

Frequently asked questions

How many hosts in a /21?
2,046 usable out of 2,048 addresses.
What is the subnet mask for /21?
255.255.248.0 (binary 11111111.11111111.11111000.00000000).