CIDR and subnet calculator
Type a block like 10.0.0.0/16. Split it into subnets and check whether an address is inside.
- Network
- Netmask
- Wildcard (ACLs)
- First host
- Last host
- Broadcast
- Addresses
- Usable hosts
- Usable in an AWS subnet
- Range
- Private (RFC 1918)
Split into
Questions
- How many addresses are in a /24?
- 256 (2 to the power 32 − 24). 254 are usable for hosts on a normal network, because the first is the network address and the last the broadcast address. In an AWS subnet, 251: AWS reserves five.
- What does /16 mean?
- The first 16 bits are the network part, so 10.0.0.0/16 covers 10.0.0.0 to 10.0.255.255: 65,536 addresses.
- Why does AWS give fewer usable addresses?
- AWS reserves the first four addresses of every subnet (network, VPC router, DNS, future use) and the last one, so a /24 has 251 usable addresses. The smallest subnet is /28.
- Which ranges are private?
- 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 100.64.0.0/10 is carrier-grade NAT space, often used by Kubernetes and Tailscale.
Practise it on a real machine
Broken systems in your browser. The grader checks the result.