Subnet / CIDR Calculator

Enter an IP address and CIDR prefix to get the network address, broadcast address, usable host range, and mask.

Network address
—
Broadcast address
—
Subnet mask
—
Wildcard mask
—
First usable host
—
Last usable host
—
Usable hosts
—

Notes on edge cases

/31 networks (2 addresses) follow RFC 3021 — both addresses are usable, point-to-point style, with no network/broadcast distinction. /32 is a single host route. These are handled correctly here, not just the common /24-style cases.