IP Subnet Calculator

Estimate IPv4 subnet size from a CIDR prefix.

Enter values and select Calculate to see your result.

Estimate IPv4 subnet size from a CIDR prefix

Network and broadcast address exceptions apply to /31 and /32.

View formula

Usable host count for a typical IPv4 subnet = 2^(32−prefix) − 2.