$cidr-calc 10.0.1.0/24

CIDR Calculator

CIDR Calculator. Enter a CIDR like 192.168.1.0/24 and click Calculate in this CIDR calculator to get the subnet mask and IP range.

Input

Common CIDR Blocks

/816.7M hosts
/1665,534 hosts
/24254 hosts
/2814 hosts
/302 hosts

CIDR Calculation Results

IP Address Range
-
Network Address
-
Broadcast Address
-
Usable Hosts
-
First Usable IP
-
Last Usable IP
-
Total Addresses
-

Network Details

CIDR Notation-
Subnet Mask-
Wildcard Mask-
IP Class-

Binary Representation

Network (Binary)
-
Subnet Mask (Binary)
-

Enter a CIDR notation like 192.168.1.0/24 to instantly convert it to a subnet mask, calculate the full IP address range, and determine network boundaries. Get detailed results including network address, broadcast address, usable host count, and wildcard mask — everything you need for accurate IP address management and network planning.

A CIDR Calculator takes any IP address and prefix length and instantly works out the subnet mask, wildcard mask, and usable host range hidden inside that slash notation. Whether you're carving a /24 network into smaller subnets or double-checking a colleague's routing table entry, this network range calculator saves you from doing binary math by hand. It's built for network administrators, students, and anyone who touches IP addressing on the internet — from a home lab VLAN to a data center rollout. You'll walk away knowing exactly how many hosts fit in your subnet and what CIDR notation actually means.

What Is a CIDR Calculator?

A CIDR calculator reads a network prefix and host portion written in CIDR format — an IP address followed by a slash and a prefix length, like 203.0.113.0/24 — and expands it into everything a network engineer needs: the network address, the broadcast address, the subnet mask, and the number of hosts you can assign. CIDR replaced an older, rigid addressing system with a flexible routing prefix that can end anywhere from /1 to /32, which is what keeps today's internet protocol routing manageable at a global scale. Think of it as a CIDR & network range calculator combined into a single lookup: one input, every derived value you'd otherwise compute by hand.

CIDR Notation Explained

Standard CIDR notation pairs an IP address with a prefix length that tells you how many leading bits identify the network number, leaving the rest as the host identifier. A shorter prefix, such as /16, describes a larger network with more possible hosts; a longer prefix, such as /28, describes a small subnet with room for only a handful of devices. Every device on a TCP/IP network relies on this split to know whether traffic is local or needs to be handed off to a gateway.

Subnet Mask and Wildcard Mask

The subnet mask and the wildcard mask are two sides of the same bit mask. A subnet mask marks network bits as 1 and host bits as 0 — 255.255.255.0 for a /24, for example — while a wildcard mask simply inverts that pattern. Network engineers pair wildcard masks with access control lists to define exactly which hosts an ACL rule applies to, which is why most CIDR calc tools display both values side by side rather than making you flip the bits yourself.

How to Use an IP Subnet Calculator for CIDR Ranges

Using this calculator is a two-step process: enter an IP address plus either a subnet mask or CIDR notation, then read off the results. Internally, the tool is doing exactly what an IPv4 subnet calculator has always done — converting the address and prefix into binary, applying the mask, and reporting the network address, broadcast address, and range back in decimal.

Mask Bits and Prefix Length

The mask bits value — also called the prefix length — is just the number after the slash. A /24 has 24 mask bits, leaving 8 bits for host identifiers, which works out to \(2^{8} = 256\) total addresses in that block. Two of those, the network address and the broadcast address, aren't assignable to a device, so the tool subtracts them automatically:

$$\text{Usable Hosts} = 2^{(32 - \text{prefix length})} - 2$$

Drop in a /26 and that formula returns 62 assignable addresses; drop in a /30 — the smallest practical point-to-point subnet — and it returns 2.

Calculating the Address Range

Once that's set, the address range — the first usable host through the last — follows directly from the subnet mask. For 192.0.2.0/26, the calculator reports a range of 192.0.2.1 through 192.0.2.62, a broadcast address of 192.0.2.63, and 62 assignable addresses. This is the same math an ip cidr lookup performs whether you're sizing a /30 link between two sites or a /22 block for an entire branch office.

CIDR / VLSM Calculators and IP Address Aggregation

A CIDR / VLSM calculator — sometimes just called a VLSM calculator — goes a step further than basic subnetting: Variable Length Subnet Masking lets you split one network into subnets of different sizes instead of forcing every subnet to match, which is closer to how real networks actually get built. The payoff is IP address aggregation: folding many small routes into one CIDR block so a router only needs a single routing entry instead of dozens.

  • Fewer entries per routing table, since one aggregated CIDR block replaces many single-network routes.
  • Lower routing latency, because routers spend less time scanning long prefix lists.
  • Reduced network bandwidth use, since routing updates carry fewer routes to advertise.
  • Simpler configuration at the gateway, where a single network interface can front many aggregated subnets.

Classless Inter-Domain Routing vs. Classful Addressing

Before classless inter-domain routing existed, IPv4 addressing was split into rigid classes: a Class A, Class B, or Class C network each had a fixed network mask no matter how many hosts a business actually needed, which wasted enormous blocks of address space. CIDR removed that constraint, and it's also why an ipv4 address's ip class no longer determines its subnet size the way it did under the old classful system. IPv6 uses the same slash notation, though its address space is large enough that aggregation matters even more there.

CIDR & Network Range Calculator: Prefix Reference Table

The table below is what this calculator is really referencing under the hood — every prefix length from /24 down to /30, alongside its subnet mask, wildcard mask, and usable host count.

CIDR NotationPrefix LengthSubnet MaskWildcard MaskUsable Hosts
/2424255.255.255.00.0.0.255254
/2525255.255.255.1280.0.0.127126
/2626255.255.255.1920.0.0.6362
/2727255.255.255.2240.0.0.3130
/2828255.255.255.2400.0.0.1514
/2929255.255.255.2480.0.0.76
/3030255.255.255.2520.0.0.32

Every row is an ip address block trade-off: a shorter prefix like /24 hands you 254 assignable addresses but eats a larger slice of an ipv4 allocation, while a longer prefix like /30 wastes almost nothing but only fits a two-device link.

Why Network Administrators Rely on CIDR and Supernetting

Beyond sizing a single subnet, the same math runs in reverse as a supernet calculator: instead of splitting one network into many, you combine several contiguous networks into one larger CIDR block with a shorter prefix. Teams reorganizing address space lean on this constantly, since fewer, larger blocks mean simpler firewall rules, cleaner access control lists, and routing tables that don't grow every time a new subnet is provisioned.

Real-World Networking and Cybersecurity Use Cases

This kind of subnetting math shows up everywhere, not just on paper. Cybersecurity teams use CIDR ranges to scope firewall rules and vulnerability scans to exactly the hosts that need them. Cloud teams size virtual private networks the same way, whether that's cloud networking across regions or a single data center rack. And every communications protocol that keeps global traffic moving efficiently — from TCP/IP itself down to the routes exchanged between individual routers — ultimately depends on the same CIDR arithmetic this calculator performs in a fraction of a second.

Related Network Tools

Explore these related tools for subnet calculation and IP address management.

Additional networking calculators for IP address planning and network analysis.

More tools to support network design, addressing, and subnet troubleshooting.

About the author

Subash Geetha Krishnan

Tech Lead for Nimble Storage at HPE Services Storage Support

Subash Geetha Krishnan is a Tech Lead for Nimble Storage at HPE Services Storage Support, based in Singapore, with over 15 years of experience in enterprise storage solutions. He created SubnetCalculate so that accurate networking calculations are free and easy for everyone.

  • Content author: Subash Geetha Krishnan
  • Fact checked by: Subash Geetha Krishnan. Each calculator is built on industry-standard algorithms and tested against known results before it goes live.
  • Published Updated

Comments & Feedback

Share your experience or ask questions about this tool