How it works
Enter an IPv4 address
Any address within the subnet you want to inspect.
Enter a prefix or subnet mask
Type a CIDR prefix like 24, or a dotted-decimal mask like 255.255.255.0 — either works.
Read the full subnet breakdown
Network, broadcast, usable host range, and total addresses all update live.
IP Subnet Calculator breaks down an IPv4 address and prefix into every commonly needed subnet detail: the subnet mask, wildcard mask, network and broadcast addresses, the range of usable host addresses, and the total address count — the same numbers a network engineer works out by hand when planning or troubleshooting a subnet.
The math is pure bitwise arithmetic: the subnet mask marks which bits of the address are "network" bits versus "host" bits, ANDing the address with the mask gives the network address, and OR-ing the network address with the mask's complement (the wildcard mask) gives the broadcast address. The usable host range is everything strictly between those two, since the network and broadcast addresses themselves aren't assignable to individual devices in ordinary subnets.
Two prefix lengths break that general rule on purpose: a /32 has only one address, so there's no room for a separate network/broadcast pair — the single address serves as all three. A /31 has exactly two addresses, and RFC 3021 explicitly designates both as usable endpoints for point-to-point links (like a connection between two routers), rather than wasting half of a tiny 2-address block on an unusable broadcast address the way the general rule would otherwise require.
