Enter an IPv4 network in CIDR notation. Returns the network and broadcast addresses, the usable host range, host counts, netmask and wildcard mask — plus a bit-by-bit view of where the network boundary falls.
A CIDR block like 192.168.1.0/24 describes a contiguous range of IP addresses. The number after the slash — the prefix length — is how many leading bits of the 32-bit address are fixed as the network portion. The remaining bits are the host portion, free to vary, and they define how many addresses the block contains.
Setting every host bit to 0 gives the network address. Setting every host bit to 1 gives the broadcast address. In a normal subnet those two are reserved, so the usable host range runs from network+1 to broadcast−1. That's why a /24 holds 256 addresses but only 254 usable hosts.
A /31 has no room for separate network and broadcast addresses, so RFC 3021 defines both as usable — exactly two hosts, ideal for point-to-point links. A /32 is a single host route. This calculator handles both rather than reporting "0 usable hosts."
The subnet mask is the prefix written as dotted decimal — /24 is 255.255.255.0. The wildcard mask is its bitwise inverse (0.0.0.255) and is what you use in Cisco ACLs and OSPF, where a 1 bit means "don't care."
| Prefix | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /30 | 255.255.255.252 | 4 | 2 |
| /29 | 255.255.255.248 | 8 | 6 |
| /28 | 255.255.255.240 | 16 | 14 |
| /24 | 255.255.255.0 | 256 | 254 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
Three ranges are reserved for private use and won't route on the public internet: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. This calculator flags whether your block is private, public, or special-use.
A /24 contains 256 addresses, but the first (network) and last (broadcast) are reserved, leaving 254 assignable to hosts.
They're bitwise inverses. The subnet mask marks network bits with 1s (255.255.255.0); the wildcard mask marks "don't care" bits with 1s (0.0.0.255) and is used in ACLs and OSPF.
Yes. Enter 192.168.1.77/24 and the calculator derives the correct network (192.168.1.0/24) by masking off the host bits.
Not yet — this tool is IPv4. An IPv6 prefix calculator is a planned companion tool.