An IPv4 address consists of 32 bits arranged in four 8-bit octets separated by dots (e.g., 192.168.1.1). Subnetting is the process of borrowing bits from the host portion of an IP address to create smaller, isolated networks called subnets. In modern network engineering, CIDR (Classless Inter-Domain Routing) has replaced rigid legacy address classes (Class A, B, and C) with flexible variable-length subnet masks (VLSM).
The prefix length (such as /24 or /16) designates exactly how many of the 32 bits belong to the network identifier. The remaining bits determine how many host machines (servers, computers, IoT devices, or mobile endpoints) can be connected within that broadcast domain. In standard subnets, two addresses are always reserved: the Network Address (all host bits set to 0) and the Broadcast Address (all host bits set to 1). The formula for calculating total usable hosts is 2^(32 - CIDR) - 2.
Whether you are designing a cloud Virtual Private Cloud (AWS VPC or Azure VNet), configuring corporate VLANs, preparing for Cisco CCNA examinations, or setting up a secure home lab router, calculating exact host boundaries and Cisco wildcard masks prevents routing conflicts and ensures efficient IP allocation.
Calculate network boundaries, broadcast addresses, usable host ranges, and Cisco wildcard masks with visual binary bit breakdowns.
Reference table for IPv4 prefix lengths, netmasks, wildcards, and maximum usable hosts.
| CIDR | SUBNET MASK | USABLE HOSTS | TOTAL ADDRESSES | WILDCARD MASK | TYPICAL USE CASE | ACTION |
|---|---|---|---|---|---|---|
| /1 | 128.0.0.0 | 2,147,483,646 | 2,147,483,648 | 127.255.255.255 | Large Global Backbone Routing | |
| /2 | 192.0.0.0 | 1,073,741,822 | 1,073,741,824 | 63.255.255.255 | Large Global Backbone Routing | |
| /3 | 224.0.0.0 | 536,870,910 | 536,870,912 | 31.255.255.255 | Large Global Backbone Routing | |
| /4 | 240.0.0.0 | 268,435,454 | 268,435,456 | 15.255.255.255 | Large Global Backbone Routing | |
| /5 | 248.0.0.0 | 134,217,726 | 134,217,728 | 7.255.255.255 | Large Global Backbone Routing | |
| /6 | 252.0.0.0 | 67,108,862 | 67,108,864 | 3.255.255.255 | Large Global Backbone Routing | |
| /7 | 254.0.0.0 | 33,554,430 | 33,554,432 | 1.255.255.255 | Large Global Backbone Routing | |
| /8 | 255.0.0.0 | 16,777,214 | 16,777,216 | 0.255.255.255 | Class A / ISP Supernet Block | |
| /9 | 255.128.0.0 | 8,388,606 | 8,388,608 | 0.127.255.255 | Subnetted Corporate Network | |
| /10 | 255.192.0.0 | 4,194,302 | 4,194,304 | 0.63.255.255 | Subnetted Corporate Network | |
| /11 | 255.224.0.0 | 2,097,150 | 2,097,152 | 0.31.255.255 | Subnetted Corporate Network | |
| /12 | 255.240.0.0 | 1,048,574 | 1,048,576 | 0.15.255.255 | Subnetted Corporate Network | |
| /13 | 255.248.0.0 | 524,286 | 524,288 | 0.7.255.255 | Subnetted Corporate Network | |
| /14 | 255.252.0.0 | 262,142 | 262,144 | 0.3.255.255 | Subnetted Corporate Network | |
| /15 | 255.254.0.0 | 131,070 | 131,072 | 0.1.255.255 | Subnetted Corporate Network | |
| /16 | 255.255.0.0 | 65,534 | 65,536 | 0.0.255.255 | Class B / Large Datacenter Block | |
| /17 | 255.255.128.0 | 32,766 | 32,768 | 0.0.127.255 | Subnetted Corporate Network | |
| /18 | 255.255.192.0 | 16,382 | 16,384 | 0.0.63.255 | Subnetted Corporate Network | |
| /19 | 255.255.224.0 | 8,190 | 8,192 | 0.0.31.255 | Subnetted Corporate Network | |
| /20 | 255.255.240.0 | 4,094 | 4,096 | 0.0.15.255 | Mid-sized Enterprise / Cloud VPC | |
| /21 | 255.255.248.0 | 2,046 | 2,048 | 0.0.7.255 | Mid-sized Enterprise / Cloud VPC | |
| /22 | 255.255.252.0 | 1,022 | 1,024 | 0.0.3.255 | Mid-sized Enterprise / Cloud VPC | |
| /23 | 255.255.254.0 | 510 | 512 | 0.0.1.255 | Mid-sized Enterprise / Cloud VPC | |
| /24 | 255.255.255.0 | 254 | 256 | 0.0.0.255 | Standard Office / Home LAN (Class C) | |
| /25 | 255.255.255.128 | 126 | 128 | 0.0.0.127 | Subnetted Corporate Network | |
| /26 | 255.255.255.192 | 62 | 64 | 0.0.0.63 | Subnetted Corporate Network | |
| /27 | 255.255.255.224 | 30 | 32 | 0.0.0.31 | Subnetted Corporate Network | |
| /28 | 255.255.255.240 | 14 | 16 | 0.0.0.15 | Small Branch / Server Subnet | |
| /29 | 255.255.255.248 | 6 | 8 | 0.0.0.7 | Small Branch / Server Subnet | |
| /30 | 255.255.255.252 | 2 | 4 | 0.0.0.3 | Traditional Point-to-Point (2 hosts) | |
| /31 | 255.255.255.254 | 2 | 2 | 0.0.0.1 | Point-to-Point Link (RFC 3021) | |
| /32 | 255.255.255.255 | 1 | 1 | 0.0.0.0 | Single Host Route (/32) |