Subnet Calculator

Enter an IPv4 address and CIDR prefix length to calculate subnet details.

IPv4 Subnet Calculator

What Is Subnetting?

Subnetting is the practice of dividing a larger IP network into smaller, more manageable segments called subnets. Every IPv4 address is a 32-bit number split into two parts: the network portion, which identifies the subnet itself, and the host portion, which identifies individual devices within that subnet. A subnet mask determines where this boundary falls. Subnetting is essential for efficient network design because it reduces broadcast traffic, improves security through logical segmentation, and makes the best use of limited IPv4 address space. Whether you are configuring a home router, planning a corporate campus network, or provisioning cloud infrastructure, understanding subnet calculator results is a foundational networking skill. For a step-by-step introduction, see our subnetting beginner’s guide.

Understanding CIDR Notation

Classless Inter-Domain Routing (CIDR) replaced the older classful addressing system in 1993 and remains the standard way to describe IP subnets today. A CIDR notation like 192.168.1.0/24 pairs an IP address with a prefix length that tells you how many leading bits belong to the network. The /24 prefix means the first 24 bits are the network portion, leaving 8 bits for host addresses, which gives you 256 total addresses (254 usable). Our CIDR calculator converts any prefix length from /0 through /32 into the corresponding subnet mask, wildcard mask, network address, broadcast address, and usable host range so you can plan allocations quickly. To see the binary math behind each octet, try the IP Binary Converter.

Practical Subnetting Examples

Consider a common scenario: you have been assigned the 10.0.0.0/24 block and need to split it among four departments. By using an ip subnet calculator, you can determine that four equal subnets require a /26 prefix, giving each department 64 total addresses and 62 usable hosts. The resulting subnets would be 10.0.0.0/26, 10.0.0.64/26, 10.0.0.128/26, and 10.0.0.192/26. If one department needs more hosts, you might allocate a /25 (126 usable) to it and split the remaining /25 into two /26 blocks. This kind of variable-length subnet masking (VLSM) is a direct benefit of CIDR-based subnetting.

When to Use This Tool

Use this subnet calculator whenever you need to verify network boundaries before configuring routers, firewalls, or DHCP scopes. It is equally useful for exam preparation, troubleshooting connectivity issues, or auditing existing address plans. Enter any valid IPv4 address, select a prefix length, and the tool instantly returns all the details you need, including the wildcard mask commonly required for access control lists in Cisco IOS and similar platforms. Understanding the difference between IPv4 and IPv6 and recognizing public vs. private ranges will also help you plan allocations effectively.

Related Tools & Resources

Explore more of our free networking tools: look up DNS records, find your public IP address, identify hardware with the MAC Address Lookup, or check which services use which network ports.