Skip to main content
Digital, Internet & Technology

Number of Usable IP Addresses Calculator

Find how many usable hosts an IPv4 prefix allows, or the smallest prefix that fits a number of hosts.

Also searched as: hosts per subnet · what prefix do I need · how many IPs in a /24

Your inputs

Results

Usable host addresses

254

Total addresses
256
Subnet mask
255.255.255.0
How many fit in a /24
1

✓Exact calculation — rounded only for display

Notes for this result

  • Network and broadcast addresses are excluded except for /31 (RFC 3021 point-to-point) and /32 (single host).

What if?

Pick an input and drag the slider to see how the result changes.