Toolman

/21 subnet

A /21 has a subnet mask of 255.255.248.0 and 2,046 usable hosts.

The numbers

Prefix length/21
Subnet mask255.255.248.0
Wildcard mask0.0.7.255
Network bits21
Host bits11
Total addresses2,048
Usable hosts2,046
/24 networks contained8

Where a /21 is used

About 2,000 hosts. Used where a /22 is too small and a /20 wasteful.

Why the usable count is what it is

A /21 leaves 11 bits for hosts, giving 211 = 2,048 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 2,046.

Binary layout

mask   11111111.11111111.11111000.00000000
       ^^^^^^^^^^^^^^^^^^^^^           
       21 network bits, 11 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/204,094Two /21 networks combine into one /20
This network/212,046
Half the size/221,022One /21 splits into two /22 networks
A quarter/23510Four /23 networks fit in a /21

Frequently asked questions

How many hosts are in a /21?

2,048 addresses in total, of which 2,046 are usable. The first is the network address and the last is the broadcast address, so two are always lost.

What is the subnet mask for /21?

255.255.248.0. The prefix length is the count of leading 1 bits in the mask, so /21 is 21 ones followed by 11 zeros.

What is the wildcard mask for /21?

0.0.7.255 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.

How does a /21 compare to a /24?

A /21 is 8 times larger than a /24 — it contains 8 of them.

Other prefix lengths

All prefix lengths · Subnet calculator