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, RFC 4632) 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) |
Type any IPv4 address (e.g. 192.168.1.1, 10.0.0.1, or 172.16.0.5) into the calculator input.
Choose your subnet size using the dropdown or CIDR slider from /1 to /32 (such as /24 for standard 255.255.255.0).
Immediately view your Network ID, First Usable Host, Last Usable Host, Broadcast Address, Wildcard Mask, and Binary Octets.
Reference cheat sheet for commonly configured network masks, host counts, and Cisco wildcard masks:
| CIDR Prefix | Subnet Mask | Usable Hosts | Total IPs | Wildcard Mask | Typical Application |
|---|---|---|---|---|---|
| /24 | 255.255.255.0 | 254 | 256 | 0.0.0.255 | Standard LAN / Home Office |
| /25 | 255.255.255.128 | 126 | 128 | 0.0.0.127 | Split Department Subnet |
| /26 | 255.255.255.192 | 62 | 64 | 0.0.0.63 | Office Floor / Small Team |
| /27 | 255.255.255.224 | 30 | 32 | 0.0.0.31 | Server Rack / DMZ Segment |
| /28 | 255.255.255.240 | 14 | 16 | 0.0.0.15 | Small Cloud Cluster |
| /29 | 255.255.255.248 | 6 | 8 | 0.0.0.7 | ISP Public IP Block |
| /30 | 255.255.255.252 | 2 | 4 | 0.0.0.3 | Point-to-Point Router Link |
| /31 | 255.255.255.254 | 2 | 2 | 0.0.0.1 | RFC 3021 Point-to-Point |
| /32 | 255.255.255.255 | 1 | 1 | 0.0.0.0 | Single Host / Loopback |
Master binary octet math, VLSM network planning, AWS VPC sizing, and Cisco wildcard calculations.
A subnet (subnetwork) is a logical subdivision of an IP network. Subnetting divides a large network into smaller, manageable, and secure subnetworks. It reduces broadcast traffic congestion, improves network routing efficiency, enhances security by isolating segments, and conserves scarce IPv4 address space.
CIDR (Classless Inter-Domain Routing) notation is a concise way to represent an IP address and its associated routing prefix. It is written as an IP followed by a slash and the number of bits in the network mask (for example, 192.168.1.0/24). A /24 prefix indicates that the first 24 bits are the network portion and the remaining 8 bits identify individual hosts.
In standard IPv4 subnets (/30 through /1), the first address is reserved as the Network ID (used by routers to identify the subnet itself), and the last address is reserved as the Broadcast Address (used to send packets to all devices on that subnet simultaneously). Therefore, the number of usable host addresses in any subnet is 2^(32 - CIDR) - 2.
A wildcard mask is the bitwise inverse of a subnet mask (255.255.255.255 minus the subnet mask). For example, a /24 subnet mask of 255.255.255.0 has a wildcard mask of 0.0.0.255. Wildcard masks are commonly used in Cisco IOS Access Control Lists (ACLs) and OSPF routing configurations to specify which IP bits must match.
RFC 1918 defines three blocks of IPv4 addresses reserved for private local networks: 10.0.0.0/8 (10.0.0.0 – 10.255.255.255), 172.16.0.0/12 (172.16.0.0 – 172.31.255.255), and 192.168.0.0/16 (192.168.0.0 – 192.168.255.255). These addresses are non-routable on the public internet and require Network Address Translation (NAT) to access external web servers.