Subnet Host Count

Enter an IPv4 CIDR block and instantly see the network address, broadcast address, subnet mask, and number of usable hosts.

IPv4 CIDR Input

Enter an IPv4 address followed by a prefix length (0–32).

Quick Examples

Enter a CIDR block on the left to see subnet details.

Copied!

Summary

Enter an IPv4 CIDR block and instantly see the network address, broadcast address, subnet mask, and number of usable hosts.

How it works

  1. Enter an IPv4 address with a CIDR prefix length, e.g. 192.168.10.0/24.
  2. The tool derives the subnet mask from the prefix length (e.g. /24 → 255.255.255.0).
  3. The network address is computed by ANDing the IP with the mask.
  4. The broadcast address is the network address OR'd with the inverted mask.
  5. Usable hosts = 2^(32 − prefix) − 2 (subtract network and broadcast addresses).
  6. First and last usable host addresses are shown for quick reference.

Use cases

  • Plan IP address allocation for a new network segment.
  • Verify that a CIDR block is large enough for the expected number of devices.
  • Look up the broadcast address before configuring firewall rules.
  • Cross-check subnetting homework or certification exam practice.
  • Confirm the usable range when setting DHCP pool boundaries.
  • Convert a prefix length to dotted-decimal subnet mask quickly.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu