/20 subnet
A /20 fixes the first 20 bits of the address and leaves 12 for hosts. That gives 4,096 addresses and subnet mask 255.255.240.0.
Example: 192.168.0.0/20
- CIDR block
- 192.168.0.0/20
- Network address
- 192.168.0.0
- Broadcast address
- 192.168.15.255
- Usable host range
- 192.168.0.1 – 192.168.15.254
- Total addresses
- 4,096
- Usable hosts
- 4,094
- Subnet mask
- 255.255.240.0
- Wildcard mask
- 0.0.15.255
- Mask in binary
- 11111111.11111111.11110000.00000000
Check another address in the subnet calculator.
What fits inside a /20
Splitting 192.168.0.0/20 into /22 blocks starts with 192.168.0.0/22, 192.168.4.0/22, 192.168.8.0/22, 192.168.12.0/22.
How many fit in a larger block
- A /8 holds 4,096 blocks of /20.
- A /16 holds 16 blocks of /20.
A /20 in the cloud
| Provider | Usable addresses |
|---|---|
| AWS VPC | 4,091 |
| Azure Virtual Network | 4,091 |
| Google Cloud VPC | 4,092 |
Each provider reserves addresses in every subnet: AWS VPC 5, Azure Virtual Network 5, Google Cloud VPC 4 (primary range).
Questions
How many hosts are in a /20 subnet?
A /20 has 4,096 addresses. Two are reserved for the network and broadcast addresses, which leaves 4,094 usable hosts.
What is the subnet mask for a /20?
The subnet mask for a /20 is 255.255.240.0, written in binary as 11111111.11111111.11110000.00000000. The wildcard mask is 0.0.15.255.
What is an example of a /20 range?
192.168.0.0/20 runs from 192.168.0.0 to 192.168.15.255. Hosts use 192.168.0.1 to 192.168.15.254, and 192.168.15.255 is the broadcast address.