Toolvist

Subnet / CIDR Calculator

Calculate network, broadcast, host range and mask from CIDR notation.

Free Subnet / CIDR Calculator

Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, usable host range, subnet mask, wildcard mask and total host count — everything a network engineer needs at a glance.

To expand a block into every address it contains, use CIDR to IPv4 Range; to check the network you are actually on, see What Is My IP.

How to use the Subnet Calculator

  1. 1 Enter an address in CIDR form, such as 192.168.1.0/24.
  2. 2 Read the network address, broadcast address, usable host range and subnet mask.
  3. 3 Check the host count to see how many devices the subnet can hold.
  4. 4 Try a different prefix length to see how the block size changes.

IPv4 subnet calculations and network address range planning

The Subnet CIDR Calculator processes an IPv4 address and Classless Inter-Domain Routing (CIDR) prefix mask (such as /24 or /28) to compute complete network parameters. It calculates the network identifier, broadcast address, subnet mask, wildcard mask, total IP capacity, and the range of usable host addresses.

Accurate subnetting is fundamental to network engineering, VPC provisioning in cloud platforms (AWS, Azure, GCP), and firewall security zoning. Calculating subnets avoids IP overlapping, ensures sufficient host address allocations, and establishes routing boundaries across enterprise networks.

  • Calculates network IP, broadcast address, and subnet mask from CIDR notation.
  • Determines total IP allocation and exact range of usable host IP addresses.
  • Outputs dotted decimal subnet masks (e.g., 255.255.255.0) and inverse wildcard masks.
  • Critical for cloud VPC architecture, router configuration, and VLAN network planning.

Understanding CIDR

CIDR notation like /24 means the first 24 bits are the network portion and the remaining 8 bits identify hosts — 254 usable addresses. Larger prefixes mean smaller subnets. Use this calculator to plan addressing, verify firewall rules or troubleshoot routing.

Frequently asked questions

What does the /24 in an address mean?

It is the prefix length — the first 24 bits of the address identify the network, leaving 8 bits for hosts. So a /24 holds 256 addresses, of which 254 are usable, and it corresponds to the familiar 255.255.255.0 subnet mask.

Why are two addresses per subnet unusable?

The first address is the network identifier and the last is the broadcast address, so neither can be assigned to a host. That gives 2ⁿ − 2 usable addresses for a block of 2ⁿ — which is why a /24 yields 254, not 256.

Why do /31 and /32 behave differently?

They have no room for the usual reservation. A /32 is a single address used for a host route, and a /31 contains exactly two addresses, both usable — RFC 3021 allows this for point-to-point links, so the "minus two" rule does not apply to them.

Related Unit & Data Converters

Browse all Unit & Data Converters →

You might also need

Tools from other categories that people pair with the Subnet Calculator:

Browse the full tool directory →