255.255.248.0 • 2,046 hosts • 11 host bits

/21 Subnet Mask: 255.255.248.0

/21 Subnet Analysis

Pre-set to 192.168.8.0/21 so there is a worked block to read. Change the address and keep the /21, or change the prefix to compare — any address inside a block resolves to the same network.

10.0.0.5/22, 10.0.0.5 255.255.252.0 and 2001:db8::/48 all parse.
Optional — lists the equal subnets inside the block.

No address you type is resolved, logged or sent anywhere.
Quick Answer • What is a /21 subnet?

A /21 subnet mask is 255.255.248.0. It has 11 host bits, so 2,048 total addresses and 2,046 hosts. Example: 192.168.8.0/21 runs from 192.168.8.0 to 192.168.15.255, with hosts 192.168.8.1–192.168.15.254. Wildcard mask 0.0.7.255.

Everything a /21 implies, worked through on 192.168.8.0/21: the mask in dotted decimal and binary, the wildcard mask, the address range, how many blocks of this size fit inside a larger one, and what happens when you split it. The calculator above is pre-filled, so change the address and the answers follow.

1. What a /21 network is

The /21 in a CIDR block is the prefix length: how many leading bits identify the network. Those 21 bits are identical for every address in the block, and the remaining 11 host bits are free to vary. Written out as a mask that is 21 ones followed by 11 zeros, which in dotted decimal is 255.255.248.0.

prefix     /21
mask       255.255.248.0
binary     11111111.11111111.11111000.00000000
wildcard   0.0.7.255

11 host bits give 211 = 2,048 addresses. Two of them are not assignable to an interface: the first is the network address and the last is the broadcast address. That leaves 2,046 usable hosts.

PropertyValue
CIDR notation/21
Subnet mask255.255.248.0
Wildcard mask0.0.7.255
Host bits11
Total addresses2,048
Usable hosts2,046

The wildcard mask is the bitwise inverse of the subnet mask — 0.0.7.255 here — and it is what Cisco access lists and OSPF network statements expect instead of a netmask. A zero bit in a wildcard means “this bit must match”, which is the opposite convention to a netmask, and mixing the two up is one of the most common configuration errors in the subject. In classful terms a /21 is between the class B and class C default masks.

2. The 192.168.8.0/21 block, address by address

A worked example is easier to check than a formula. 192.168.8.0/21 is a real /21 inside a private range, and every figure below follows from the mask alone:

AddressValueWhat it is
Network192.168.8.0The block itself; not assigned to a host
Host range192.168.8.1192.168.15.2542,046 hosts you can assign
Broadcast192.168.15.255The last address — reaches every host on the segment
Subnet mask255.255.248.0Which bits are the network
Wildcard0.0.7.255The inverse, for ACLs
network  11000000.10101000.00001000.00000000
mask     11111111.11111111.11111000.00000000

Line the two up and the rule is visible: wherever the mask has a 1, the network bit is fixed; wherever it has a 0, the address is free to count up. This is also why entering any address inside the block gives the same answer — the calculator masks the host bits away, so 192.168.8.1/21 and 192.168.8.0/21 describe the same network.

3. How many /21 networks fit inside a bigger block

Prefix arithmetic is powers of two all the way down: each extra bit of prefix halves the block. Going the other way, the number of /21 networks inside a shorter prefix is two to the power of the difference between the two prefix lengths, which is where these counts come from.

One block ofContainsUsable hosts in total
1 × /88,192 × /2116,760,832
1 × /12512 × /211,047,552
1 × /1632 × /2165,472
1 × /202 × /214,092

The usable-host column is the one worth noticing. Every split costs two addresses per subnet to the network and broadcast addresses, so a plan built from many small subnets always has fewer usable addresses than the block it came from — dividing one /24 into eight /27s leaves 240 usable addresses where the /24 had 254. That is the real price of a subnetting plan, and it is why router-to-router links in a modern design get /31s rather than /30s.

4. Splitting a /21

Borrowing host bits turns one block into several equal ones. Each bit borrowed doubles the number of subnets and halves their size:

Split intoMaskHow manyUsable hosts each
/22255.255.252.021,022
/23255.255.254.04510
/24255.255.255.08254
/25255.255.255.12816126

The console at the top of this page does this for you: set the CIDR to a /21 and choose a longer prefix under Split into to get the resulting networks with their ranges. It caps how many rows it draws — splitting a /8 into /24s is 65,536 subnets — but the count it reports is always the true total.

Variable-length subnetting Nothing requires the subnets of a block to be the same size. A /21 can be carved into a mix of longer prefixes as long as each one is aligned to its own size — that is what VLSM means, and it is how one parent block gives a /30 to a router link and a /26 to a user VLAN.

5. Where a /21 is used

2,046 hosts, or eight /24s. Used when a /22 runs out but a /20 would waste a block.

A prefix length says nothing about whether the addresses are private. That is decided by the address itself: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are the RFC 1918 private ranges, 100.64.0.0/10 is carrier-grade NAT space from RFC 6598, 169.254.0.0/16 is link-local, and 127.0.0.0/8 is loopback. A /21 carved out of any of them is private; the same /21 out of a public allocation is globally routable. The console labels which range an address falls into, including the documentation blocks from RFC 5737 that turn up in tutorials.

IPv6 changes the habit rather than the arithmetic. The mask still marks the network bits, but subnets are conventionally /64 regardless of how many hosts are on them — SLAAC needs 64 host bits — and a site is normally delegated a /48 or /56. There is no broadcast address to subtract, so the “minus two” rule has no IPv6 equivalent. The console handles IPv6 blocks as well; switch the address family above.

6. CIDR to subnet mask, around /21

The neighbouring prefixes, for when the question is really “which one do I need?” — each row is a page of its own with the same worked detail:

PrefixSubnet maskWildcardAddressesUsable hosts
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254

The subnet calculator carries the full /8 to /32 chart, and works the question backwards too: give it a host count and it returns the shortest prefix that fits, which is the calculation a design actually starts from.

7. /21 Subnet FAQs

What is the subnet mask for a /21?

255.255.248.0. In binary that is 11111111.11111111.11111000.00000000 — 21 network bits followed by 11 host bits. The wildcard mask, which Cisco access lists and OSPF network statements use instead of a netmask, is the bitwise inverse: 0.0.7.255.

How many hosts are in a /21?

2,048 addresses in total and 2,046 usable hosts. The first address in the block is the network address and the last is the broadcast address, so two of the 2,048 cannot be assigned to an interface.

How many /21 networks fit in a /16?

32. Each extra bit of prefix halves the block, so the count is two to the power of the difference in prefix length — 21 minus 16 is 5 bits, giving 32 separate /21 networks with 2,046 usable hosts each.

What is the address range of 192.168.8.0/21?

192.168.8.0 to 192.168.15.255, which is 2,048 addresses. Assignable hosts run from 192.168.8.1 to 192.168.15.254, with 192.168.15.255 reserved as the broadcast address.

Why is a /21 not simply the address count minus two?

Because the first address in every block identifies the network itself and the last is the broadcast address for the segment, so neither can be given to an interface. A /21 has 2,048 addresses and therefore 2,046 usable hosts. The exceptions are /31 and /32, where RFC 3021 removes both special addresses.

How do I split a /21 into smaller subnets?

Borrow host bits. Moving from /21 to /22 gives two equal subnets, /23 gives four, and so on — each bit doubles the count and halves the size. Enter the block above and set “Split into /” to the longer prefix to list every resulting subnet with its range and host count.

Does a /21 mean the addresses are private?

No. The prefix length says how big the block is, not who can route to it. Private addressing comes from the ranges themselves: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 under RFC 1918, plus 100.64.0.0/10 for carrier-grade NAT and 169.254.0.0/16 for link-local. The same prefix length out of a public allocation is globally routable.

Is the address I enter sent to a server?

No. Addresses are parsed and masked in your browser as 32-bit integers, or as BigInt values for IPv6. No DNS query is made, nothing is resolved, nothing is logged or stored, and the page works offline once it has loaded.