Calculators.Life Calculator
Engineering

CIDR Range Calculator

Input Parameters

Scenarios
Select or enter an IPv4 address with prefix length (e.g. 192.168.1.0/24)

Computed Results

Usable Host Addresses
254
Total Addresses256
Network Address192.168.1.0
Broadcast Address192.168.1.255
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Usable Host Min192.168.1.1
Usable Host Max192.168.1.254
IP ClassClass C
IP TypePrivate (RFC 1918)
Integer ID3,232,235,776
Hex ID0xC0A80100

The CIDR range calculator determines the exact number of usable host addresses, total IP addresses, and the complete network range for any given IPv4 CIDR notation. By entering an IP address and its prefix length, you can instantly identify the network address, broadcast address, subnet mask, and IP class to properly configure routers, firewalls, and network segments.

How CIDR Calculations Work

Classless Inter-Domain Routing (CIDR) notation combines an IP address with a routing prefix (e.g., /24) to define a block of IP addresses. The prefix indicates how many bits of the 32-bit IPv4 address are used for the network portion, leaving the remaining bits for host addresses.

To find the total number of addresses in a subnet, subtract the prefix from 32 and raise 2 to that power:

Total Addresses = 2(32 − Prefix)

In most standard subnets, the first IP address is reserved for the network identifier, and the last IP address is reserved for the broadcast address. Therefore, the number of usable hosts is typically calculated as:

Usable Hosts = Total Addresses − 2

Exceptions exist for specific prefix lengths. A /31 subnet provides exactly 2 usable hosts (often used for point-to-point links), and a /32 subnet provides exactly 1 usable host (representing a single specific computer or loopback interface).

Verified Subnet Scenarios

Understanding how different prefix lengths affect your available IP pool is critical for network planning. Here are examples of common CIDR blocks and their resulting address ranges.

Small Subnet for Point-to-Point Link

Using the CIDR notation 192.168.1.0/30, the network allocates 30 bits for the network and 2 bits for hosts. This yields 4 total addresses. Subtracting the network address (192.168.1.0) and the broadcast address (192.168.1.3) leaves exactly 2 usable hosts (192.168.1.1 to 192.168.1.2). The subnet mask is 255.255.255.252.

Standard Office Network Segment

A larger block like 10.0.0.0/16 leaves 16 bits for host addresses. This provides 65,536 total addresses and 65,534 usable hosts, ranging from 10.0.0.1 to 10.0.255.254. The subnet mask for this Class A private network is 255.255.0.0.

Large Enterprise Internal Network

For massive internal networks, a CIDR of 172.16.0.0/12 provides 1,048,576 total addresses. The usable host range spans from 172.16.0.1 to 172.31.255.254, totaling 1,048,574 usable hosts. The subnet mask is 255.240.0.0.

Single Host Specific Assignment

Entering 192.168.1.1/32 specifies a single host. Because all 32 bits are used for the network prefix, there is 1 total address and 1 usable host. The network, broadcast, and host addresses are all identical (192.168.1.1), and the subnet mask is 255.255.255.255.

Practical Use Cases

Network engineers and system administrators use CIDR calculations to design efficient IP addressing schemes without wasting addresses. Common applications include:

Frequently Asked Questions

What is the difference between a subnet mask and a wildcard mask?

A subnet mask uses binary 1s to identify the network portion of an IP address and 0s for the host portion. A wildcard mask is the exact inverse, using 0s to match the network portion and 1s to indicate the variable host bits. Wildcard masks are frequently used in firewall rules and routing protocols like OSPF.

Why do I lose two IP addresses in a standard subnet?

In standard IPv4 networking, the very first IP address in a subnet block is reserved to identify the network itself, and the very last IP address is reserved as the broadcast address, which is used to send messages to all hosts on that specific subnet.

What does a /24 CIDR mean?

A /24 CIDR means that the first 24 bits of the 32-bit IP address are locked as the network identifier, leaving 8 bits for host addresses. This results in 256 total addresses and 254 usable hosts, with a subnet mask of 255.255.255.0.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.