IPv4 CIDR & Subnet Calculator

Compute network address, broadcast address, subnet mask, wildcard mask, and usable host IP range from any CIDR block.

How It Works & Reference

Enter an IPv4 address and prefix length /0–/32 (e.g. 10.0.16.0/20 for a cloud VPC subnet). View exact bitmask boundaries and usable host count.

Common IPv4 CIDR Prefix Cheat Sheet

CIDRSubnet MaskTotal IPsUsable Hosts
/32255.255.255.25511 (Single host)
/28255.255.255.2401614
/24255.255.255.0256254
/20255.255.240.04,0964,094
/16255.255.0.065,53665,534

Frequently Asked Questions

How many usable IPs are in a /24 subnet?

256 total addresses minus 2 (network and broadcast) = 254 usable host IPs (cloud providers may reserve 2–3 extra).

What is /32 used for?

A /32 CIDR matches a single exact IPv4 host address, commonly used in security group allowlists.

What is a wildcard mask?

The bitwise inverse of the subnet mask (e.g. 0.0.0.255 for /24), used in ACLs and OSPF.

Related Tools