How many usable hosts in a /13?
A /13 subnet has 524,288 IP addresses and 524,286 usable hosts. The first address is the network address and the last is the broadcast address, so neither can go on a host. Its netmask is 255.248.0.0 and its wildcard mask is 0.7.255.255.
/13 at a glance
- Prefix
- /13
- Netmask
- 255.248.0.0
- Wildcard
- 0.7.255.255
- Addresses
- 524,288
- Usable hosts
- 524,286
Example: 10.0.0.0/13
- Network
- 10.0.0.0
- Broadcast
- 10.7.255.255
- Hosts
- 10.0.0.1 – 10.7.255.254
Usable IPs in a /13 cloud subnet
As a cloud subnet it leaves 524,283 usable on Azure and 524,284 on Google Cloud; it is too large for AWS, which allows /16 to /28.
| Provider | Usable |
|---|---|
| AWS VPCReserves 5: network, VPC router, DNS, one held for future use, broadcast | Not allowed (/16–/28 only) |
| Azure VNetReserves 5: network, default gateway, two for Azure DNS, broadcast | 524,283 |
| Google Cloud VPCReserves 4: network, default gateway, second-to-last, broadcast | 524,284 |
Questions
Quick answers.
Worked out with the same code as the CIDR calculator, which takes any IPv4 block and also splits it and checks overlaps.
What is the subnet mask for a /13?
255.248.0.0. In binary it is 13 ones followed by 19 zeros. The wildcard mask, which Cisco ACLs and OSPF use, is 0.7.255.255.
How many /24 subnets fit in a /13?
2,048. A /13 holds 524,288 addresses and a /24 holds 256, so it splits into 2,048 /24 subnets of 254 usable hosts each.