CIDR Calculator

Calculate IP ranges from CIDR notation.

What this does & when to use it

Calculates the network and broadcast addresses, subnet mask, host count, IP class and usable range for any IPv4 CIDR block. Useful while planning subnets, configuring firewalls, or auditing route tables.

Format: IPv4 address followed by /0 to /32

Learn more

Background on the concepts this tool uses.

CIDR (Classless Inter-Domain Routing) notation expresses an IP range as an address followed by a slash and the number of leading 1-bits in the subnet mask, like 192.168.1.0/24. The prefix length determines how many addresses are in the block: a /24 contains 256, a /16 contains 65,536, and so on.

The network address is the first address in the block; the broadcast address is the last. Hosts use the addresses in between. For most prefixes the host count is 2^(32 − prefix) − 2 because the network and broadcast addresses are reserved. /31 point-to-point links use both addresses (RFC 3021), and /32 describes a single host.