/9 · 255.128.0.0
Open in the calculator
Rarely used on its own; a /9 is half of a /8. You meet it when splitting 10.0.0.0/8 into two halves, for example one per data centre region.
Key numbers
| Prefix length | /9 (9 network bits, 23 host bits) |
| Subnet mask | 255.128.0.0 |
| Mask in binary | 11111111.10000000.00000000.00000000 |
| Wildcard mask | 0.127.255.255 |
| Total addresses | 8,388,608 |
| Usable hosts | 8,388,606 (total minus network and broadcast) |
| Contains | 32,768 × /24 networks |
| Block size | Increments of 128 in octet 2 |
Example ranges
Private (RFC 1918) blocks of this size. Click one to open it in the calculator.
| Block | First address | Last address | Usable hosts |
|---|---|---|---|
| 10.0.0.0/9 | 10.0.0.0 | 10.127.255.255 | 10.0.0.1 – 10.127.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.
| Provider | Usable in a /9 | Notes |
|---|---|---|
| AWS VPC subnet | n/a | Not allowed: AWS subnets must be between /16 and /28. |
| Azure virtual network subnet | 8,388,603 | Allowed. Azure reserves the first four addresses and the last one. |
| Google Cloud subnet | 8,388,604 | Allowed. Google Cloud reserves the first two and the last two addresses. |
How the numbers are derived
An IPv4 address has 32 bits. A /9 uses 9 of them for the network, leaving 23 host bits, so the block has 223 = 8,388,608 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 8,388,606 for hosts. The subnet mask is 9 ones followed by 23 zeros, written in dotted decimal as 255.128.0.0; the wildcard mask 0.127.255.255 is its inverse, used in Cisco ACLs and OSPF configuration.
FAQ
How many hosts can a /9 have?
8,388,608 addresses in total, of which 8,388,606 are usable after removing the network and broadcast addresses. Cloud providers reserve a few more: 8,388,603 usable in AWS and Azure, 8,388,604 in Google Cloud.
How many /24 subnets fit in a /9?
32,768. Each step of the prefix length halves or doubles the block, so a /9 contains 2^(24 − 9) = 32,768 networks of /24 size.