Interactive IPv4 Subnetting Calculator & CIDR Cheat Sheet (AWS, Azure & CCNA)
Live browser IPv4 subnetting & wildcard calculator supporting /8–/32 prefixes, binary mask breakdown, plus AWS VPC & Azure VNet 5-reserved-IP planning tables.
Exam Code: CIDR · /8 to /32 | Track: Networking & Infrastructure | Recommended Course: CompTIA Network+ & Cloud Networking Bootcamp
Interactive IPv4 Subnet & CIDR Calculator supporting /8 to /32 prefixes across AWS VPC / Azure VNet (5 reserved IPs) and Cisco CCNA / Network+ RFC modes.
IPv4 CIDR & Subnet Mask Quick Reference (/16 to /32)
Memorize these 17 CIDR boundaries for CompTIA Network+ (N10-009), Cisco CCNA (200-301), Azure VNets, and AWS VPC subnet planning.
| CIDR | Subnet Mask | Wildcard Mask (ACL/OSPF) | Total IPs / Usable Hosts |
|---|---|---|---|
/16 | 255.255.0.0 | 0.0.255.255 | 65,536 total / 65,534 usable |
/20 | 255.255.240.0 | 0.0.15.255 | 4,096 total / 4,094 usable |
/21 | 255.255.248.0 | 0.0.7.255 | 2,048 total / 2,046 usable |
/22 | 255.255.252.0 | 0.0.3.255 | 1,024 total / 1,022 usable |
/23 | 255.255.254.0 | 0.0.1.255 | 512 total / 510 usable |
/24 | 255.255.255.0 | 0.0.0.255 | 256 total / 254 usable (251 AWS/Azure) |
/25 | 255.255.255.128 | 0.0.0.127 | 128 total / 126 usable |
/26 | 255.255.255.192 | 0.0.0.63 | 64 total / 62 usable |
/27 | 255.255.255.224 | 0.0.0.31 | 32 total / 30 usable (Azure Firewall/Gateway min) |
/28 | 255.255.255.240 | 0.0.0.15 | 16 total / 14 usable (11 AWS/Azure) |
/29 | 255.255.255.248 | 0.0.0.7 | 8 total / 6 usable (Small Transit Link) |
/30 | 255.255.255.252 | 0.0.0.3 | 4 total / 2 usable (Classic Router P2P) |
/31 | 255.255.255.254 | 0.0.0.1 | 2 total / 2 P2P hosts (RFC 3021 Point-to-Point) |
/32 | 255.255.255.255 | 0.0.0.0 | 1 Host Route (/32 Loopback or Firewall Rule) |
Cloud Reserved IPs Rule (Azure vs AWS vs On-Premises)
Why cloud subnet planning differs from Cisco CCNA textbook math.
| Environment | Reserved IPs per Subnet | Practical Example (`/28` = 16 IPs) |
|---|---|---|
Traditional On-Premises (RFC) | 2 IPs (Network + Broadcast) | 14 usable host IPs |
AWS VPC Subnets | 5 IPs (.0 Net, .1 Router, .2 DNS, .3 Future, .255 Bcast) | 11 usable EC2/ENI IPs (min VPC subnet /28) |
Microsoft Azure VNet Subnets | 5 IPs (First 4 + Last 1 broadcast) | 11 usable VM/NIC IPs (min practical /29 = 3) |
Frequently Asked Questions
Why do AWS VPC and Microsoft Azure VNet reserve 5 IP addresses in every subnet instead of 2?
Both AWS and Azure reserve the first 4 IPs (.0 network, .1 default gateway/router, .2 DNS services, .3 future platform use) and the last IP (broadcast), leaving 2^n - 5 usable host IPs.
What is the smallest subnet supported inside an AWS VPC or Azure GatewaySubnet?
AWS VPCs enforce a minimum subnet mask of /28 (11 usable IPs). Azure allows /29 in general subnets, while Azure VPN GatewaySubnet / AzureFirewallSubnet require /27 or larger.