Charts & data

Usable host addresses by prefix length

How many usable IPv4 host addresses each prefix length from /24 to /31 provides.

Usable host addresses by prefix length

How many usable IPv4 host addresses each prefix length from /24 to /31 provides.

/24 prefix/25 prefix/26 prefix/27 prefix/28 prefix/29 prefix/30 prefix/31 prefix (point-to-point)0100200300Prefix lengthUsable addresses
Synthetic documentation data: the classic 2ⁿ − 2 rule leaves 254 hosts in a /24 and 2 in a /30. A /31 is the RFC 3021 exception for point-to-point links, where both addresses are usable.
Usable host addresses by prefix length
Prefix lengthUsable host addresses
/24 prefix254 hosts
/25 prefix126 hosts
/26 prefix62 hosts
/27 prefix30 hosts
/28 prefix14 hosts
/29 prefix6 hosts
/30 prefix2 hosts
/31 prefix (point-to-point)2 hosts

Tags

  • subnet
  • ipv4
  • prefix
  • hosts
  • addressing

Lessons using this diagram