IP Subnet Calculator
Enter an IPv4 address and CIDR prefix to instantly get the network address, broadcast address, subnet mask, and usable host range for network planning.
IP Address & CIDR
Result
Enter an IP and CIDR prefix to calculate subnet details
Disclaimer: This calculator supports IPv4 only. Always verify subnet plans against your network hardware and provider documentation before deploying to production infrastructure.
About the IP Subnet Calculator
Subnetting divides a larger IP network into smaller sub-networks, improving routing efficiency and network organization. This calculator takes an IPv4 address and CIDR prefix length and derives all the key subnet parameters.
Key Terms
The network address identifies the subnet itself (host bits all zero). The broadcast address targets all hosts on the subnet (host bits all one). The usable host range excludes both the network and broadcast addresses — these are the addresses you can actually assign to devices.
CIDR Notation
CIDR (Classless Inter-Domain Routing) notation like /24 specifies how many bits of the 32-bit IPv4 address are the network portion. A /24 means 24 network bits and 8 host bits, giving 256 total addresses (254 usable) — the classic "Class C" sized subnet.
Worked Example: Splitting a Block into /26 Subnets
Suppose a device has the address 172.16.45.130 and the subnet is written as /26. A /26 mask has 26 network bits and 6 host bits, so the calculator returns these values.
- Subnet mask: 255.255.255.192
- Wildcard mask: 0.0.0.63
- Network address: 172.16.45.128
- Broadcast address: 172.16.45.191
- Usable host range: 172.16.45.129 to 172.16.45.190
- Total addresses 64, usable hosts 62
The address ends in .130, which falls in the block that starts at .128, because a /26 slices the last octet into blocks of 64 (0, 64, 128, 192). A second example: 10.20.30.77 with /20 gives a network of 10.20.16.0, a broadcast of 10.20.31.255, a mask of 255.255.240.0 and 4,094 usable hosts out of 4,096.
Common Mistakes
- Assuming the address you typed is the network address. The tool applies the mask for you. Entering 172.16.45.130/26 gives a network of 172.16.45.128, not .130.
- Forgetting the two reserved addresses. A /26 holds 64 addresses but only 62 can be assigned, because the first is the network and the last is the broadcast.
- Confusing the subnet mask with the wildcard mask. The wildcard is the bitwise opposite. Access-list syntax on some routers expects the wildcard, while interface settings expect the mask.
- Entering the prefix in the wrong box or using the mask instead of the prefix. The prefix field expects a number from 0 to 32, not 255.255.255.192.
- Planning for exact host counts. A /30 shows only 2 usable hosts. Allow room for growth, gateways and any virtual addresses before you choose a size.
Where You Would Use This
- Office or home lab design: deciding which prefix gives enough addresses for separate staff, guest and device networks.
- Router and firewall setup: finding the correct network address and mask to enter in a static route.
- Certification study: checking your hand-worked subnetting answers for networking exams.
- Troubleshooting: confirming whether two hosts with given addresses sit in the same subnet.