World’s largest virtual agentic engineering & quality conference
Calculate the IP range, subnet mask, and usable hosts from any CIDR notation. Enter an IPv4 address, pick a prefix, and get full network details instantly in your browser.
Calculate
Reset
Copy to Clipboard
A CIDR calculator is a free online tool that turns CIDR notation, such as 192.168.0.0/24, into the network details engineers need every day. From a single IP address and prefix it works out the network address, the broadcast address, the full IP range, the subnet mask, and the number of total and usable hosts in the block.
Instead of doing binary math by hand, you read the answer in seconds. This makes a CIDR calculator a fast companion when you plan address space, size a subnet, write firewall rules, or carve a cloud network into smaller ranges. It is also a clear way to learn how CIDR and subnetting map to real IPv4 addresses.
CIDR, short for Classless Inter-Domain Routing, is a compact way to describe a block of IP addresses. It writes an address followed by a slash and a prefix length, such as 192.168.0.0/24. Understanding the parts makes every result from the calculator easy to read:
Getting a full breakdown of any CIDR block takes only a few seconds, and nothing is installed or uploaded. Follow these steps:
It helps to keep a quick reference for how common CIDR prefixes map to subnet masks and host counts. The table below lists frequently used prefixes, their dotted decimal subnet mask, and the number of usable hosts each block provides:
| CIDR prefix | Subnet mask | Usable hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /30 | 255.255.255.252 | 2 |
As a tool, the CIDR calculator offers a few capabilities that make subnet math effortless. Here are the features of our calculator:
A CIDR calculator is useful anywhere IP addressing has to be planned, secured, or documented. It speeds up each of these workflows by doing the subnet math for you:
This calculator is maintained by TestMu AI (formerly LambdaTest), the team behind a unified testing platform, so it is shaped by the same focus on accurate, network-aware tooling that engineers rely on. For related address conversions, the Binary to Hex tool covers another common format need.
A CIDR calculator is an online tool that turns CIDR notation such as 192.168.0.0/24 into network details. It returns the network and broadcast addresses, the IP range, the subnet mask, and the count of total and usable hosts in the block.
The /24 means the first 24 bits of the address are the network portion and the remaining 8 bits identify hosts. A /24 equals the subnet mask 255.255.255.0 and contains 256 addresses, of which 254 are usable for hosts.
A /24 block contains 256 IP addresses in total. Two of these are reserved, the network address and the broadcast address, which leaves 254 usable host addresses. The /24 prefix maps to the subnet mask 255.255.255.0.
Usable hosts equal 2 raised to the power of 32 minus the prefix, minus 2 for the network and broadcast addresses. For a /26 that is 2 to the power of 6, which is 64 addresses and 62 usable hosts. A /31 and a /32 are special cases.
They describe the same boundary in different ways. CIDR notation uses a prefix length such as /24, while a subnet mask writes those same network bits as dotted decimal such as 255.255.255.0. The CIDR calculator shows both for every block you enter.
Yes, the CIDR calculator is completely free with no signup, login, or usage limit. You can calculate as many subnets and IP ranges as you need. The tool is maintained by TestMu AI (formerly LambdaTest).
This calculator is built for IPv4 CIDR notation, with prefixes from /1 to /32. IPv6 uses a much larger 128-bit address space and a different prefix range, so IPv4 results from this tool should not be applied to IPv6 networks.
No. All calculation happens in your browser and nothing is uploaded. The IP addresses and prefixes you enter never leave your machine, which makes the tool safe to use with internal addressing plans and private network details.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance