IPv4 Subnet Host Count Calculator

Determine how many usable addresses a subnet provides from its CIDR prefix length.

Assumes standard IPv4 addressing.

Examples

  • /24 ⇒ 254 hosts
  • /16 ⇒ 65534 hosts

FAQ

Why subtract 2?

Network and broadcast addresses are reserved.

Prefixes over 30?

They leave too few usable addresses.

Additional Information

  • Result unit: hosts