IP + CIDR → network address, broadcast, host range & subnet mask
Whether you're a network engineer designing a corporate infrastructure, a student studying for your CCNA certification, or a cloud architect provisioning virtual networks, understanding subnets is essential. Our free Subnet Calculator takes any IPv4 address combined with a CIDR prefix length and instantly returns the network address, broadcast address, usable host range, subnet mask, and total host count.
Subnetting is the practice of dividing a larger IP network into smaller, logically isolated sub-networks. This technique is fundamental to modern networking because it optimizes IP address allocation, reduces unnecessary broadcast traffic, and enhances network security by segmenting different groups of devices.
Imagine a mid-sized company with 500 employees spread across three departments. Instead of placing every device on a single flat network, the IT team can create separate subnets for Finance, Engineering, and Operations. Each subnet limits broadcast domains, allows targeted firewall policies, and makes troubleshooting significantly easier.
CIDR (Classless Inter-Domain Routing) notation expresses a network as an IP address followed by a slash and a prefix length — for example, 192.168.1.0/24. The number after the slash indicates how many bits are used for the network portion. The remaining bits define the host space. A /24 means 24 network bits and 8 host bits, allowing up to 254 usable hosts.
Using our subnet calculator is straightforward. Simply enter an IP address along with its CIDR prefix (e.g., 10.10.5.100/22) and click Calculate. The tool immediately returns:
Let's work through 172.16.50.200/20. A /20 prefix uses 20 bits for the network, leaving 12 bits for hosts (4,096 addresses total). The calculator produces:
This kind of result is invaluable when configuring routers, setting up DHCP scopes, or writing access control lists (ACLs).
The subnet calculator is used daily by networking professionals across many scenarios:
Even experienced engineers sometimes make subnetting errors. Here are the most common pitfalls:
They represent the same concept in different formats. A subnet mask like 255.255.255.0 uses dotted-decimal notation, while the CIDR prefix /24 expresses the same information as a bit count. Both indicate that 24 bits are reserved for the network portion of the address.
A /29 subnet has 8 total addresses (2³). Subtracting the network and broadcast addresses leaves 6 usable host addresses. It's commonly used for small network segments or router interconnects.
Absolutely. The calculator works for all valid IPv4 addresses including private ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, as well as public IP ranges. The subnet math is identical regardless of the address class.
A /32 subnet represents a single host address — there are no additional host bits. It is used in routing tables to define a specific host route or in configurations like loopback interfaces. There are 0 usable hosts in the traditional sense, as the single address is both network and host.
This calculator is optimized for IPv4 subnetting. IPv6 uses 128-bit addresses and different subnetting conventions, so a dedicated IPv6 tool would be more appropriate for those calculations.