Usable Host Calculator

Choose a prefix length to see how many addresses and usable hosts it provides, and compare it with the neighbouring prefix sizes.

Loading the tool…

How it works

  • Total addresses = 2^(32 − prefix). Usable hosts = total − 2 for /30 and larger blocks.

Assumptions and limits

  • /31 gives 2 usable addresses on point-to-point links (RFC 3021) and /32 identifies one host.

Frequently asked questions

How many hosts in a /24?

254 usable hosts (256 addresses minus the network and broadcast addresses).

Related tools

Last reviewed 2026-10-28. More networking & internet tools. See the disclaimer.

Report a problem with this tool