CIDR reference · IPv4

The /13 CIDR block

524,288 addresses, 524,286 usable, subnet mask 255.248.0.0.

/13 · 255.248.0.0 Open in the calculator

A /13 is eight /16s. Cloud providers advertise many public /13 and /14 blocks; on private networks it is a regional allocation.

Key numbers

Prefix length/13 (13 network bits, 19 host bits)
Subnet mask255.248.0.0
Mask in binary11111111.11111000.00000000.00000000
Wildcard mask0.7.255.255
Total addresses524,288
Usable hosts524,286 (total minus network and broadcast)
Contains2,048 × /24 networks
Block sizeIncrements of 8 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/1310.0.0.010.7.255.25510.0.0.1 – 10.7.255.254
172.16.0.0/13172.16.0.0172.23.255.255172.16.0.1 – 172.23.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 /13Notes
AWS VPC subnetn/aNot allowed: AWS subnets must be between /16 and /28.
Azure virtual network subnet524,283Allowed. Azure reserves the first four addresses and the last one.
Google Cloud subnet524,284Allowed. Google Cloud reserves the first two and the last two addresses.

How the numbers are derived

An IPv4 address has 32 bits. A /13 uses 13 of them for the network, leaving 19 host bits, so the block has 219 = 524,288 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 524,286 for hosts. The subnet mask is 13 ones followed by 19 zeros, written in dotted decimal as 255.248.0.0; the wildcard mask 0.7.255.255 is its inverse, used in Cisco ACLs and OSPF configuration.

FAQ

How many hosts can a /13 have?

524,288 addresses in total, of which 524,286 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 524,283 usable in AWS and Azure, 524,284 in Google Cloud.

How many /24 subnets fit in a /13?

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