IP Subnet (CIDR) Calculator

Calculate network address, broadcast, host range and mask for any IPv4 CIDR block. Free, no sign-up, runs in your browser.

Loading tool…

About this tool

Enter an IP with a prefix like 10.0.12.34/22. The calculator shows the network, the first and last usable host, the number of hosts and the masks.

How to use it

  1. Enter or paste your values in the fields above.
  2. The result updates as you type.
  3. Use the Copy button to copy the result.

Frequently asked questions

How many hosts are in a /24?

256 addresses, 254 usable hosts.

Why do /31 and /32 look different?

/31 is used for point-to-point links with 2 usable addresses, and /32 is a single host.

Let’s talk

Need a team to build it?

We build the software behind tools like this: web apps, APIs, SaaS products and AI features.