Subnet / CIDR Calculator
The Subnet / CIDR Calculator computes network addresses, broadcast addresses, subnet masks, Cisco wildcard masks, usable host IP ranges, and total host capacities for any IPv4 prefix (/0 to /32). Features an interactive 32-bit binary visualizer and cloud VPC sizing guidance.
Enter any host or network IP (e.g., 10.0.0.1, 172.16.5.10, 192.168.1.1)
📊 Network Specification & Masks
🔬 32-Bit Binary Bitmask Architecture
Visual representation of 32 bits partitioned into Network bits (prefix) and Host bits.
☁️ Cloud VPC Subnet Architecture Guide
When provisioning subnets in cloud platforms like Amazon Web Services (AWS VPC) or Microsoft Azure VNet, providers reserve specific host IPs in every CIDR block for infrastructure management:
Note: An AWS VPC /24 subnet has 251 usable IP addresses instead of 254 due to these 5 reserved IPs.
📑 CIDR Subnet Mask Reference Table (/0 – /32)
Complete cheat sheet for quick reference across all 33 IPv4 prefixes.
Proper IPv4 subnetting is critical for network engineering, firewall rules, and sizing cloud Virtual Private Clouds (VPCs) across AWS, Azure, and Google Cloud. This calculator delivers immediate bitwise precision, RFC 1918 classification, a live 32-bit binary bitmask visualizer, and an exhaustive CIDR cheat sheet.
How to use the Subnet / CIDR Calculator
- Enter an IPv4 address (e.g., 192.168.1.1, 10.0.0.0, or 172.16.0.1).
- Select your CIDR prefix (/0 through /32) from the dropdown or drag the interactive slider.
- Review calculated network, broadcast, wildcard mask, and usable host range metrics.
- Inspect the 32-bit binary bitmask to visualize network versus host bit partitioning.
Common use cases
- Size subnets for AWS VPCs, Azure VNets, and Kubernetes cluster pod networks.
- Generate wildcard masks for Cisco IOS Access Control Lists (ACLs) and OSPF configurations.
- Identify whether an IP belongs to RFC 1918 private space, CGNAT (RFC 6598), or public internet.
- Plan point-to-point router links using modern RFC 3021 31-bit subnets.
Tips
- Cloud providers like AWS reserve the first 4 IP addresses and the last IP address of every subnet (e.g., in a /24, you get 251 usable IPs instead of 254).
- For point-to-point router links, use /31 subnets (RFC 3021) which allow exactly 2 host IPs without wasting space on traditional network and broadcast addresses.
- Click 'Show Full Cheat Sheet' at the bottom to explore the complete matrix of all 33 IPv4 prefixes (/0 to /32).
Frequently asked questions
What is a CIDR prefix? +
Classless Inter-Domain Routing (CIDR) notation represents an IP address followed by a slash and the number of leading 1-bits in the subnet mask (e.g., /24 equals 255.255.255.0 with 24 network bits and 8 host bits).
What is an RFC 1918 private IP address? +
RFC 1918 defines three private IPv4 blocks reserved for internal enterprise and local networks: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. These addresses are not routable on the global public internet.
Why are there two fewer usable hosts than total hosts? +
In standard subnets (/1 to /30), the first address is reserved as the Network Identifier and the last address is reserved as the Directed Broadcast Address, leaving 2^(32 - prefix) - 2 addresses for assignable hosts.