Enter an IPv4 address and a subnet mask or CIDR prefix to calculate the network address, broadcast address, usable host range and more.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
This calculator converts your IP address and subnet mask (or CIDR prefix) into 32-bit binary numbers, then applies a bitwise AND between the IP and the mask to find the network address, the lowest address in the range. The broadcast address is found by setting all the 'host' bits (the bits not covered by the mask) to 1.
The usable host range excludes the network address and broadcast address from a subnet, since those are reserved, except for /31 subnets (used for point-to-point links, both addresses are usable) and /32 (a single host route with exactly one address).
CIDR notation (like /24) expresses the subnet mask as a prefix length, the number of leading 1 bits in the mask. This is equivalent to a dotted-decimal mask like 255.255.255.0, this calculator accepts either format and shows both in the results, along with the wildcard mask, the inverse of the subnet mask used in access control lists on some network equipment.
Entering IP address 192.168.1.10 with a /24 subnet mask gives: network address 192.168.1.0, broadcast address 192.168.1.255, a usable host range of 192.168.1.1 through 192.168.1.254 (254 usable hosts), subnet mask 255.255.255.0, and wildcard mask 0.0.0.255. Try the special-case /31 instead (say 10.0.0.0/31) and you'll see both 10.0.0.0 and 10.0.0.1 listed as usable hosts, per RFC 3021, since a two-device point-to-point link doesn't need a separate broadcast address.
Assigning the network address or broadcast address to a device, these two addresses at the very start and end of the range are reserved (except in the /31 special case), assigning either to a host causes routing and broadcast conflicts on the network.
Confusing the wildcard mask with the subnet mask, the wildcard mask is the bitwise inverse of the subnet mask, used specifically in access control list configurations on some network equipment, plugging a wildcard mask in where a regular subnet mask is expected (or vice versa) inverts your intended matching logic.
Assuming every subnet has usable hosts equal to total addresses minus 2, that formula only applies to /0 through /30, /31 has exactly 2 usable hosts (both addresses) and /32 has exactly 1 (a single host route), both special cases this calculator handles correctly but are easy to miscalculate by hand.
Yes, this calculator accepts either format in the subnet mask field, for example both '/24' (or just '24') and '255.255.255.0' work and produce the same result.
Per RFC 3021, /31 subnets are a special case used for point-to-point links, both addresses in the subnet are usable as host addresses since there's no need for a separate broadcast address on a two-device link.
CIDR Range Calculator - Calculate IP Range from CIDR Notation
Convert a CIDR block into its first and last IP address.
IP Address to Hex Converter - Convert IP to Hexadecimal
Convert an IPv4 address between decimal, binary and hexadecimal.
Google AdSense Banner
This area will contain advertisements after approval.