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.

CIDRSubnet MaskWildcard Mask (ACL/OSPF)Total IPs / Usable Hosts
/16255.255.0.00.0.255.25565,536 total / 65,534 usable
/20255.255.240.00.0.15.2554,096 total / 4,094 usable
/21255.255.248.00.0.7.2552,048 total / 2,046 usable
/22255.255.252.00.0.3.2551,024 total / 1,022 usable
/23255.255.254.00.0.1.255512 total / 510 usable
/24255.255.255.00.0.0.255256 total / 254 usable (251 AWS/Azure)
/25255.255.255.1280.0.0.127128 total / 126 usable
/26255.255.255.1920.0.0.6364 total / 62 usable
/27255.255.255.2240.0.0.3132 total / 30 usable (Azure Firewall/Gateway min)
/28255.255.255.2400.0.0.1516 total / 14 usable (11 AWS/Azure)
/29255.255.255.2480.0.0.78 total / 6 usable (Small Transit Link)
/30255.255.255.2520.0.0.34 total / 2 usable (Classic Router P2P)
/31255.255.255.2540.0.0.12 total / 2 P2P hosts (RFC 3021 Point-to-Point)
/32255.255.255.2550.0.0.01 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.

EnvironmentReserved IPs per SubnetPractical Example (`/28` = 16 IPs)
Traditional On-Premises (RFC)2 IPs (Network + Broadcast)14 usable host IPs
AWS VPC Subnets5 IPs (.0 Net, .1 Router, .2 DNS, .3 Future, .255 Bcast)11 usable EC2/ENI IPs (min VPC subnet /28)
Microsoft Azure VNet Subnets5 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.