/20 subnet (CIDR)

A /20 network has subnet mask 255.255.240.0, 4,096 total addresses and 4,094 usable hosts.

255.255.240.0Subnet mask
0.0.15.255Wildcard mask
4,096Addresses
4,094Usable hosts

Open 172.16.0.0/20 in the subnet calculator →

Details

PropertyValue
Network bits20
Host bits12
Mask in binary11111111.11111111.11110000.00000000
Mask in hex0xFFFFF000
Total addresses212 = 4,096
Usable hosts212 − 2 = 4,094
Number of /24s inside16
Historic class equivalent—

Typical use: Typical subnet size in large cloud VPCs (4,091 usable).

Example: 172.16.0.0/20

Network 172.16.0.0, broadcast 172.16.15.255, hosts 172.16.0.1 to 172.16.15.254.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /20 holds two /21s.

Frequently asked questions

How many hosts in a /20?
4,094 usable out of 4,096 addresses.
What is the subnet mask for /20?
255.255.240.0 (binary 11111111.11111111.11110000.00000000).