What is a /20 subnet? 4,096 IPs and the AWS default size
By TechCompare · Updated · How we check
A /20 subnet has the mask 255.255.240.0 and 4,096 addresses. AWS and Azure each reserve five, leaving 4,091 assignable, and AWS uses this size for the default subnet in each Availability Zone.
A /20 subnet, written as 255.255.240.0, covers 4,096 addresses, with 4,094 usable for hosts. It's the size AWS gives the default subnet in each Availability Zone of a default VPC. Use it for a campus building or a larger segment that you still plan to split with VLANs.
CIDR reference table
Every IPv4 prefix from /8 to /32 with its subnet mask, wildcard mask and address counts. Pick a prefix to open its page or the calculator.
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20This page | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Usable hosts are the total minus the network address and the broadcast address. A /31 is the exception: it has neither, so both addresses work as hosts on a point to point link (RFC 3021). A /32 is a single address. The wildcard mask is the subnet mask with every bit flipped, and Cisco IOS access lists and OSPF network commands use it.
How this is calculated
In binary, the mask leaves 12 host bits, so the block holds 4,096 addresses. AWS's default VPC is a /16, and AWS says that VPC provides up to 65,536 private IPv4 addresses. A /16 holds 16 /20 blocks, and each /20 holds 16 /24 blocks. If a second building needs its own /20, the same /16 has room for it. Access control lists and some routing configs write this block with its wildcard mask, 0.0.15.255, which is the mask with every bit flipped. AWS and Azure each reserve five addresses in every subnet, so a /20 leaves 4,091 addresses for resources. With 10.0.16.0 as the network address, the usable range is 10.0.16.1 to 10.0.31.254, and the broadcast address is 10.0.31.255.
Verdict
Pick a /20 for a single campus building, a large floor or a segment you expect to split with VLANs later. Its 4,096 addresses leave room for many devices, but in a cloud subnet, plan around 4,091. A /20 also sits neatly inside a /16, so the rest of that block stays free for other subnets. If each VLAN takes a /24, this /20 is the summary the core router advertises for the whole building, and it covers 16 of them. Sketch the VLAN list before you carve the block, so each VLAN gets a size that matches its job.
More Subnet scenarios
Related guides
Frequently asked questions
How many usable IPs are in a /20?
Is a /20 the AWS default subnet size?
How does a /22 compare with a /20?
How many /24 blocks fit in a /20?
Related tools
DNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolDisplay Bandwidth Calculator
Check display bandwidth for HDMI, DisplayPort, USB-C, Thunderbolt, and USB4.
Use toolData Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool