/20 subnet (255.255.240.0)
Everything about a /20 network: mask, wildcard, number of hosts, example ranges and when to use it.
| Prefix (CIDR) | /20 |
|---|---|
| Subnet mask | 255.255.240.0 |
| Wildcard mask | 0.0.15.255 |
| Total addresses | 4,096 |
| Usable hosts | 4,094 |
| Block size | 16 in the third octet |
| Mask in binary | 11111111.11111111.11110000.00000000 |
What is a /20 used for?
A common size for cloud virtual networks (for example an AWS VPC or Azure VNet) that you then divide into subnets. A /20 contains 16 /24 networks.
How the numbers are worked out
/20 means the first 20 bits of the address are the network part, leaving 12 bits for hosts. 212 = 4,096 addresses. Take away 2 for the network and broadcast addresses and you get 4,094 usable hosts.
The mask has 20 ones followed by 12 zeros. The wildcard mask is the opposite: 255.255.255.255 minus the subnet mask, 0.0.15.255.
Example /20 networks
| Network | Usable range | Broadcast |
|---|---|---|
10.0.0.0/20 | 10.0.0.1 – 10.0.15.254 | 10.0.15.255 |
10.0.16.0/20 | 10.0.16.1 – 10.0.31.254 | 10.0.31.255 |
10.0.32.0/20 | 10.0.32.1 – 10.0.47.254 | 10.0.47.255 |
10.0.48.0/20 | 10.0.48.1 – 10.0.63.254 | 10.0.63.255 |
Each next /20 network starts 4,096 addresses after the previous one. Work out any address with the free subnet calculator, or split a network into different sizes with the VLSM planner.
Frequently asked questions
How many hosts are in a /20 subnet?
A /20 has 4,096 addresses in total and 4,094 usable hosts. The first address is the network address and the last is the broadcast address.
What is the subnet mask for /20?
The subnet mask for /20 is 255.255.240.0, and the wildcard mask (used in Cisco ACLs and OSPF) is 0.0.15.255.
What is a /20 subnet used for?
A common size for cloud virtual networks (for example an AWS VPC or Azure VNet) that you then divide into subnets.
Other prefix sizes
Learn more: subnetting in your head, subnetting step by step and the subnetting cheat sheet.