Subnet Mask
255.255.240.0
CIDR
/20
Total Addresses
4,096
Usable Hosts
4,094
01 / KEY VALUES

255.255.240.0 at a glance

Subnet mask
255.255.240.0
CIDR notation
/20
Wildcard mask
0.0.15.255
Total addresses
4,096
Usable hosts (RFC)
4,094
Subnet bits
20
Open in Calculator → See /20 prefix page
02 / CLOUD HOSTS

Usable hosts by cloud provider

Provider Reserved Usable Hosts
Standard (RFC)24,094
AWS VPC54,091
Azure VNet54,091
GCP44,092
OCI34,093
03 / WHERE YOU SEE IT

When to use 255.255.240.0

Often used as the size of a Kubernetes service CIDR or an application tier subnet.

For the full deep dive (use cases, examples, AWS-specific sizing), see the /20 prefix page →

← 255.255.224.0 (/19)
All masks →
255.255.248.0 (/21) →
03 / SUBNET MATH

How to read the 255.255.240.0 mask

The /20 subnet uses 255.255.240.0 as its subnet mask — meaning the first 20 bits of every address identify the network, and the remaining 12 bits identify the host within that network. That gives you 4,096 total addresses (4,094 usable on standard RFC math, after subtracting the network and broadcast addresses).

The wildcard mask — the bitwise inverse of the subnet mask — is 0.0.15.255. Wildcards are what Cisco access-control lists and OSPF area definitions use instead of subnet masks; the "1" bits mark "don't care" positions. For a /20, that leaves 12 don't-care host bits.

To find the network address for any IP in a /20 block, perform a bitwise AND between the IP and the subnet mask. To find the broadcast, OR the network address with the wildcard. Modern tools — like our subnet calculator — do this in microseconds, but the underlying mechanics are straightforward binary arithmetic.

04 / IN PRACTICE

Where you encounter 255.255.240.0 in real networks

A /20 holds 4,096 addresses. AWS uses /20 as a default suggestion for VPC sizing — it gives you 16 /24 subnets across availability zones with plenty of growth room. Also a typical regional cloud allocation.

Cloud-provider quirks matter at every prefix size: AWS and Azure reserve 5 IPs per subnet, GCP reserves 4, and OCI reserves 3. So a /20 on standard RFC math gives you 4,094 usable hosts, but on AWS or Azure that drops to 4,091. The capacity-planning gap bites hardest at small prefixes (a /28 has 14 usable on paper, only 11 on AWS) but exists at every size. Our cloud-aware calculator applies the right math automatically.

05 / FAQ

Common questions

What CIDR notation is 255.255.240.0?

The subnet mask 255.255.240.0 equals /20 in CIDR notation. This means 20 bits of the 32-bit address identify the network, and 12 bits identify the host.

How many hosts does the 255.255.240.0 subnet support?

A subnet with mask 255.255.240.0 (/20) supports 4,094 usable hosts on standard RFC math. On AWS or Azure (5 reserved IPs), 4,091 hosts. On GCP (4 reserved), 4,092.

What is the wildcard mask for 255.255.240.0?

The wildcard mask is the bitwise inverse of the subnet mask. For 255.255.240.0, the wildcard is 0.0.15.255. Cisco access control lists use wildcard masks instead of subnet masks.

06 / RELATED

Related prefixes & tools