IP Subnet Calculator
Enter an IPv4 address and CIDR prefix to calculate all subnet details
Real-Life Guide to Using the IP Subnet Calculator
CIDR, host range, subnet mask
When this calculator is useful
Reach for this when you are handed a block like 192.168.10.0/26 and need to know the usable host range before configuring a router, VLAN, or firewall rule, or when you are splitting an office network into smaller segments.
Common Mistakes
- Forgetting that the first address in a subnet is the network address and the last is the broadcast address — neither can be assigned to a device, so a /24 gives 254 usable hosts, not 256.
- Confusing a subnet mask (255.255.255.0) with a wildcard mask (0.0.0.255) when configuring Cisco ACLs, which inverts the entire rule.
- Assuming /31 and /32 subnets follow the normal network/broadcast rule — RFC 3021 makes /31 usable for exactly two point-to-point addresses with no broadcast address at all.
- Picking a CIDR size based on current headcount only, e.g. using /28 (14 hosts) for a 12-person team with no room for printers, phones, or a guest VLAN.
- Mixing up the CIDR prefix from a public IP allocation (given by an ISP) with an internal RFC 1918 range, then trying to route the private block on the public internet.
How to Interpret Results
The output splits your input into network address, broadcast address, first/last usable host, and total usable hosts — use the first/last usable range directly as the DHCP pool or static assignment range, and never assign the network or broadcast address to a device.
IP Subnet Calculator FAQs
IP Subnetting Explained
A subnet divides a large IP network into smaller segments. The CIDR (Classless Inter-Domain Routing) prefix /n tells you how many bits are fixed for the network portion. The remaining bits identify individual hosts. A /24 network has 2⁸ = 256 addresses, minus 2 (network + broadcast) = 254 usable hosts.
The wildcard mask (inverse of subnet mask) is used in Cisco ACLs and OSPF routing configurations. Private IP ranges (RFC 1918) — 10.x.x.x, 172.16–31.x.x, 192.168.x.x — are not routable on the public internet and are used for internal networks.