Skip to content
ToolsLeb ToolsLeb

CIDR / Subnet Calculator

Calculate the network address, broadcast address, subnet mask, and usable host range for any IPv4 CIDR block.

Enter an IPv4 CIDR block

Share on Social Media:

Enter an IPv4 address with its CIDR prefix (e.g. 192.168.1.0/24) to calculate its subnet mask, wildcard mask, network and broadcast addresses, usable host address range, and total/usable host counts.

Frequently Asked Questions

The number after the slash (e.g. the /24 in 192.168.1.0/24) is the number of bits used for the network portion of the address — a smaller number means a larger subnet with more usable host addresses.

A /32 identifies a single host with no network/broadcast pair, and a /31 (per RFC 3021) is a two-address point-to-point link with no dedicated broadcast address — both are handled as special cases rather than using the standard "usable hosts minus two" formula.

In a standard subnet, the first address is reserved as the network address and the last as the broadcast address, leaving the remaining addresses in between as usable host addresses.