CIDR Calculator

Calculate subnets, visualize network ranges, supernet, and convert between CIDR and IP ranges

  1. Home
  2. /
  3. CIDR Calculator

What is CIDR Calculator?

CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP address ranges and subnets. Instead of using separate network and subnet mask fields, CIDR uses a single notation like 10.0.0.0/16 where the number after the slash indicates how many bits are used for the network prefix.

This calculator computes all essential network details from a given CIDR notation or IP range: network address, broadcast address, subnet mask, wildcard mask, usable host range, total number of hosts, and usable hosts. It also provides a binary visualization that helps you understand the bit-level structure of the subnet, and a subnet breakdown feature for dividing large networks into smaller subnets.

Common use cases include network planning and subnet design, calculating address ranges for firewall rules and security groups, understanding IP allocation in cloud environments (AWS VPCs, GCP subnets, Azure virtual networks), validating network configurations, and learning how IP subnetting works at the binary level.

How to Use This Tool

  1. Enter a CIDR or IP range — Type a CIDR notation such as 192.168.1.0/24 or use the example buttons to load common prefixes.
  2. Optional subnet breakdown — Select a prefix from the dropdown to break down the network into smaller subnets (e.g., break a /16 into /24 subnets).
  3. Click Calculate — The tool instantly computes all network details and displays them in summary cards.
  4. Review results — Check network address, broadcast address, subnet mask, wildcard mask, host range, total hosts, and usable hosts.
  5. Binary visualization — View the bit-level representation of the network and host portions to understand how the subnet is structured.
  6. Subnet breakdown — If you selected a breakdown prefix, scroll through the list of all resulting subnets with their ranges and host counts.

Frequently Asked Questions

What is the difference between total hosts and usable hosts?

Total hosts is the total number of IP addresses in the subnet, including the network address (first) and broadcast address (last). Usable hosts subtracts these two reserved addresses to give the actual number of addresses available for devices. For example, a /24 network has 256 total hosts but only 254 usable hosts.

How do I calculate the subnet mask from a prefix length?

The subnet mask is derived by setting the first N bits (where N is the prefix length) to 1 and the remaining bits to 0. For example, /24 gives 255.255.255.0, /16 gives 255.255.0.0, and /8 gives 255.0.0.0. This tool does this conversion automatically.

What is the purpose of the wildcard mask?

The wildcard mask (also called an inverted subnet mask) is used in network access control lists (ACLs) and routing protocols like OSPF. It is the bitwise inversion of the subnet mask. Where the subnet mask has 1s (network portion), the wildcard mask has 0s, and vice versa.

Can this tool calculate IPv6 subnets?

Currently this tool focuses on IPv4 CIDR calculations. For IPv6 subnetting, we recommend using our dedicated IPv6 Calculator tool available in the related tools section.

How do I find the number of subnets created when breaking down a network?

When you break down a network with prefix /X into subnets with prefix /Y, the number of subnets created is 2^(Y-X). For example, breaking a /16 into /24 subnets creates 2^(24-16) = 256 subnets, each with 256 total hosts.

Last updated: 9 Jul 2026