Calculate
IP/CIDR Calculator
Enter any IPv4 CIDR block to get the network address, broadcast address, usable host range, netmask and host count — computed locally.
Calculate
Enter any IPv4 CIDR block to get the network address, broadcast address, usable host range, netmask and host count — computed locally.
—
—
—
—
—
—
—
—
Usable hosts = total − 2, except /31 (point-to-point) and /32 (single host) where all addresses are usable.
Walkthrough
192.168.1.0/24 — a bare IP defaults to /32.Use cases
VPC and firewall planning. Verify a proposed subnet fits inside its parent block and has enough host space.
IP allowlists. Expand a CIDR entry in a security group to confirm which IPs it covers.
DHCP ranges. Derive the first/last usable addresses when configuring a DHCP pool.
FAQ
Calculate the parent block, then check that the child's network address is between the parent's first and last host addresses. Equivalently: the child's network must be within the parent's total range.
The number after the slash is the number of fixed bits in the network mask. /24 = 255.255.255.0 and 256 addresses; /25 = 128; each +1 halves the block.
RFC 3021 defines point-to-point links, so both addresses are usable. This calculator applies that rule for /31 and /32.
Related