Subnet Calculator & CIDR Planner
Compute usable IPv4 host ranges, wildcard masks, and broadcast boundaries. Visualize static vs. DHCP address allocations and optimize 2.4/5 GHz non-overlapping Wi-Fi channels.
Reserved banner container configured with strict Core Web Vitals CLS = 0 layout preservation.
IPv4 CIDR Reference Cheat Sheet
Quick reference guide mapping CIDR prefix lengths to decimal subnet masks, total address capacity, usable host counts, and standard enterprise network applications:
| CIDR Prefix | Subnet Mask | Total Addresses | Usable Hosts | Typical Application |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 | Single host route / Loopback interface |
| /31 | 255.255.255.254 | 2 | 2 (RFC 3021) | Point-to-Point router links (zero waste) |
| /30 | 255.255.255.252 | 4 | 2 | Legacy Point-to-Point links |
| /29 | 255.255.255.248 | 8 | 6 | Small static IP block from ISP |
| /28 | 255.255.255.240 | 16 | 14 | Small DMZ, isolated server cluster |
| /27 | 255.255.255.224 | 32 | 30 | Small office VLAN / Cloud subnet |
| /26 | 255.255.255.192 | 64 | 62 | Departmental network segment |
| /25 | 255.255.255.128 | 128 | 126 | Mid-sized internal network segment |
| /24 | 255.255.255.0 | 256 | 254 | Standard Class C LAN / Default Wi-Fi scope |
| /23 | 255.255.254.0 | 512 | 510 | Medium office or campus building |
| /22 | 255.255.252.0 | 1,024 | 1,022 | Large corporate VLAN |
| /20 | 255.255.240.0 | 4,096 | 4,094 | Cloud Virtual Private Cloud (AWS/GCP VPC) |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Standard Class B Enterprise private block |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | Class A Private range (10.0.0.0/8) |
How CIDR Replaced Classful Routing
In the early architecture of the ARPANET and early Internet, IPv4 addresses were divided into rigid classes: Class A (/8 with 16.7 million hosts), Class B (/16 with 65,534 hosts), and Class C (/24 with 254 hosts). By 1992, the explosive growth of connected organizations created two imminent existential threats to the Internet:
- Massive Address Waste: Organizations that required 500 IP addresses could not fit into a Class C block, so they were allocated an entire Class B block (65,534 addresses), leaving more than 99% of their allocated address space stranded and unused.
- Routing Table Explosion: Every individual classful network required an entry in the core BGP routing tables of global Internet routers. Routers of the era were running out of memory to store routing tables.
In September 1993, the Internet Engineering Task Force (IETF) published RFC 1519, introducing Classless Inter-Domain Routing (CIDR). CIDR eliminated the fixed boundary constraints of address classes. It introduced Variable-Length Subnet Masking (VLSM), allowing network engineers to slice IP address blocks into arbitrary prefix lengths (/25, /26, /27, /28) that matched their actual operational requirements. Furthermore, CIDR introduced Route Aggregation (Supernetting), enabling thousands of contiguous subnets to be summarized into a single route announcement, compressing the global BGP routing table.
Why the First and Last Addresses Are Reserved
In any standard IPv4 subnet of prefix length /30 or shorter, the total number of usable host addresses is calculated by the formula 2^(32 − prefix) − 2. The two subtracted addresses serve mandatory protocol functions defined in RFC 791 and RFC 919:
The very first address in the block (e.g. 192.168.1.0 in a /24) represents the entire network segment itself. Routers use this address in their forwarding tables (FIB) to direct traffic toward that subnet. Operating systems treat this address as unroutable to any single network interface card.
The very last address in the block (e.g. 192.168.1.255 in a /24) is the directed broadcast address. When a packet is addressed to this IP, the local Ethernet switch flood-replicates it to every connected device on the VLAN. Used for ARP requests and DHCP discovery, assigning it to a single device would break local broadcast resolution.
The RFC 3021 Exception (/31 Subnets): For modern point-to-point router-to-router serial or fiber links, RFC 3021 permits the use of /31 masks (2 total IPs). Because there are only two devices on the wire, there is no ambiguity: both addresses are assigned as usable endpoints with no need for separate broadcast or network IDs, saving millions of IP addresses across core telecom backbones.
Private IP Ranges (RFC 1918) & NAT Architecture
In February 1996, the IETF published RFC 1918, designating three distinct blocks of IPv4 address space strictly for private, internal networks. Internet service providers and core Internet backbone routers are configured to immediately drop packets addressed to these destinations without routing them across the public Internet:
Range: 10.0.0.0 – 10.255.255.255
16,777,216 addresses. Standard allocation for large enterprise campuses, hyperscale cloud VPCs (AWS, GCP, Azure), and multi-region microservices.
Range: 172.16.0.0 – 172.31.255.255
1,048,576 addresses (16 contiguous /16 blocks). Ideal for Docker container overlays, Kubernetes pod CIDRs, and staging environments.
Range: 192.168.0.0 – 192.168.255.255
65,536 addresses (256 contiguous /24 blocks). Default scope for residential routers, small office LANs, and local Wi-Fi hotspots.
The Role of NAT / PAT: Because RFC 1918 addresses cannot traverse the public Internet, routers employ Network Address Translation (NAT) and Port Address Translation (PAT). When an internal computer connects to a public web server, the edge router replaces the private source IP (e.g. 192.168.1.45) with its single public WAN IP, tracking the session via an ephemeral source TCP port. This allows thousands of private devices to share a single routable public IPv4 address.
Wi-Fi Channel Optimization: The Science of Non-Overlapping Channels
In the 2.4 GHz spectrum, each channel center is spaced only 5 MHz apart, but a standard Wi-Fi transmission occupies 20 MHz of spectral width. As a result, channels heavily bleed into neighboring frequencies:
When two access points share Channel 1, they understand each other's preamble signals and cooperatively wait their turn (CSMA/CA), maintaining throughput.
Transmitting on Channel 3 causes raw electromagnetic noise on Channels 1 and 6. Routers cannot decode the signal, resulting in packet corruption, CRC errors, and connection drops.
Related Network & Hardware Diagnostics
Explore complementary browser utilities for network analysis, hardware diagnostics, and email inspection:
My IP & Geolocation Map
Detect public WAN IP, WebRTC local LAN probe, and OpenStreetMap ISP PoP map.
Visual Route Tracer & Map
Map intermediate router hops and visualize packet journeys across the globe.
Browser & Leak Checker
Probe WebRTC STUN leaks and verify Client Hints consistency.
My System Specs
Inspect unmasked GPU model, CPU threads, display Hz, and RAM tier.
Network Jitter Test
Real-time edge ping jitter graph and bufferbloat quality grading.
PCAP Dump Viewer
Decode protocol distributions and isolate plaintext traffic leaks.
Email Hop Analyzer
Parse RFC 5322 Received headers and audit SPF, DKIM, and DMARC.
Frequently Asked Questions (FAQ)
In standard IPv4 subnets, the very first address represents the Network Identifier (used by routers in routing tables), and the very last address represents the Broadcast Address (used to transmit packets simultaneously to every host on that local segment). Because these two addresses are reserved by the IP specification, the usable host formula is always 2^(32-prefix) - 2.
Reserved banner container configured with strict Core Web Vitals CLS = 0 layout preservation.