CIDR reference · IPv4

The /15 CIDR block

131,072 addresses, 131,070 usable, subnet mask 255.254.0.0.

/15 · 255.254.0.0 Open in the calculator

Two /16s. Sometimes used to give a single VPC room for two /16-sized environments (production and staging) under one aggregate.

Key numbers

Prefix length/15 (15 network bits, 17 host bits)
Subnet mask255.254.0.0
Mask in binary11111111.11111110.00000000.00000000
Wildcard mask0.1.255.255
Total addresses131,072
Usable hosts131,070 (total minus network and broadcast)
Contains512 × /24 networks
Block sizeIncrements of 2 in octet 2

Example ranges

Private (RFC 1918) blocks of this size. Click one to open it in the calculator.

BlockFirst addressLast addressUsable hosts
10.0.0.0/1510.0.0.010.1.255.25510.0.0.1 – 10.1.255.254
172.16.0.0/15172.16.0.0172.17.255.255172.16.0.1 – 172.17.255.254

Usable addresses in the cloud

Cloud providers reserve a few addresses in every subnet for the router, DNS and future use, so the usable count is lower than the formula gives.

ProviderUsable in a /15Notes
AWS VPC subnetn/aNot allowed: AWS subnets must be between /16 and /28.
Azure virtual network subnet131,067Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet131,068Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /15 uses 15 of them for the network, leaving 17 host bits, so the block has 217 = 131,072 addresses. The first address (all host bits 0) is the network address and the last (all host bits 1) is the broadcast address, which leaves 131,070 for hosts. The subnet mask is 15 ones followed by 17 zeros, written in dotted decimal as 255.254.0.0; the wildcard mask 0.1.255.255 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /15 have?

131,072 addresses in total, of which 131,070 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 131,067 usable in AWS and Azure, 131,068 in Google Cloud.

How many /24 subnets fit in a /15?

512. Each step of the prefix length halves or doubles the block, so a /15 contains 2^(24 − 15) = 512 networks of /24 size.