CIDR Calculator
Convert an IPv4 address and CIDR prefix into its subnet mask, network, broadcast address, host range, and address capacity.
About the CIDR calculator
CIDR calculation examples
Common private-network blocks illustrate how the prefix controls subnet size.
| CIDR input | Network and capacity | Use case |
|---|---|---|
| 192.168.1.42/24 | 192.168.1.0 to 192.168.1.255; 254 usable | A typical small local network with a 255.255.255.0 mask. |
| 10.20.30.40/8 | 10.0.0.0 to 10.255.255.255; 16,777,214 usable | The full private 10.0.0.0 block has a 255.0.0.0 mask. |
| 172.16.5.130/26 | 172.16.5.128 to 172.16.5.191; 62 usable | A /26 divides a /24 into four blocks of 64 addresses. |
How to use the CIDR calculator
- Enter an IPv4 address using four decimal octets separated by periods.
- Enter the CIDR prefix length as a whole number between 0 and 32.
- Select Calculate Subnet to derive the network boundaries and masks.
- Use the host range and capacity when planning assignments, routes, or firewall rules.
CIDR calculator FAQ
What does the number after the CIDR slash mean?
It is the count of leading address bits reserved for the network prefix. A larger number leaves fewer host bits and creates a smaller subnet.
Why are two addresses usually not usable?
The first address conventionally identifies the network and the final address is used for broadcast traffic. Ordinary IPv4 subnets therefore have two fewer assignable hosts than total addresses.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask, with host bits shown as ones. Network devices often use it to match address ranges in access lists and routing statements.
Can this calculator process IPv6 addresses?
No, this tool validates dotted-decimal IPv4 addresses only. IPv6 uses 128-bit hexadecimal notation and requires different formatting and capacity handling.
Are /31 and /32 networks valid?
Yes, although they serve specialized purposes. A /31 is useful on point-to-point links, while a /32 commonly represents one exact host route.