CIDR Calculator
127.255.255.255
0.0.0.0
0.0.0.0/1
0.0.0.0 - 127.255.255.255
CIDR notation compresses an IP address and its subnet mask into one compact form, like 10.0.0.1/24, but reading exactly what that slash number means for your network still requires converting it into a mask, a range, and a host count. This CIDR calculator does that conversion instantly: enter an IP address and mask bits (or pick a CIDR netmask directly), and it returns the wildcard mask, network address, broadcast range, and maximum subnets and addresses for that prefix length.
Classless Inter-Domain Routing (CIDR) notation replaced the older, rigid Class A/B/C addressing system by allowing a subnet mask to be any prefix length rather than a fixed set of options. This calculator takes an IP address and a CIDR prefix (mask bits) and derives every other value that prefix length implies: the equivalent dotted-decimal subnet mask, its inverse (the wildcard mask), the network address for your specific IP, the full usable address range, and how many total subnets and addresses that prefix length supports.
A larger prefix number (like /28) means more bits are dedicated to identifying the network, leaving fewer bits for host addresses, so /28 describes a smaller subnet than /24. This inverse relationship, larger prefix number equals smaller subnet, is one of the more common points of confusion when reading CIDR notation for the first time, and it’s exactly why this calculator’s Maximum Addresses column is worth checking directly rather than trying to recall the relationship from memory.
The wildcard mask is the bitwise inverse of the subnet mask, flipping every 1-bit to a 0-bit and vice versa. It’s used in access control lists and OSPF configuration on many router platforms, where the matching logic is expressed in terms of “don’t care” bits (the wildcard’s 1-bits) rather than the network-identifying bits a subnet mask represents.
| Prefix (/) | Subnet Mask | Usable Hosts per Subnet (approx.) |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /28 | 255.255.255.240 | 14 |
| /30 | 255.255.255.252 | 2 |
Every subnet reserves one address for the network address itself and one for the broadcast address, which is why usable host counts run slightly below the raw total the remaining bits would otherwise suggest. This calculator’s Maximum Addresses field accounts for the full address block, while the CIDR Address Range shown separately marks out the network and broadcast boundaries so you can see exactly where the usable range sits.
The CIDR Network (Route) and Net: CIDR Notation fields don’t just echo back your entered IP, they calculate the actual network address that IP belongs to under the selected prefix length. This distinction matters in real network configuration: entering 10.0.0.1/24 has you configuring a host address on the 10.0.0.0/24 network, and this calculator makes that underlying network boundary explicit rather than leaving you to work it out separately.
VLSM (Variable Length Subnet Masking) is the broader practice of subnetting a larger network into multiple smaller subnets of different sizes, each sized to match its actual number of hosts, rather than carving every subnet to the same fixed size. CIDR notation is the addressing format that makes VLSM practical, since it allows each of those differently sized subnets to use whatever prefix length fits its needs, unlike the old classful system’s rigid boundaries. This calculator handles the CIDR side of that work directly: converting any single IP and prefix length into its mask, range, and capacity, which is the calculation you’d repeat for each subnet when planning a VLSM addressing scheme by hand.
The prefix number is how many bits are used to identify the network portion of the address. A larger prefix (like /28) leaves fewer of the 32 total bits available for host addresses, resulting in a smaller subnet. A smaller prefix (like /16) leaves more bits for hosts, producing a much larger subnet.
The subnet mask marks network-identifying bits with 1s and host bits with 0s. The wildcard mask is its exact inverse, marking “don’t care” or host bits with 1s instead. Wildcard masks are commonly used in access control list and OSPF network statement configuration on many router platforms, where matching logic is expressed in wildcard terms rather than subnet mask terms.
It calculates the CIDR values (mask, wildcard, range, and capacity) for any single IP and prefix length you enter, which is the core calculation VLSM subnetting relies on. VLSM itself is the practice of applying different prefix lengths to different subnets based on how many hosts each one needs, so you’d use this calculator once per subnet size you’re planning as part of a larger VLSM scheme.