Install
4Internet / ip subnet
CIDR Calculator
Normalize an IPv4 or IPv6 CIDR and calculate its exact address boundaries and counts.
Local · IPv4 and IPv6 · exact arithmetic
Calculate a CIDR
A practical guide
How to use CIDR Calculator
A CIDR combines an address with a prefix length. Use this calculator to find the network boundary, the last address, and the exact size of an IPv4 or IPv6 block before planning subnets.
- Enter an address followed by a slash and prefix length, such as 192.0.2.17/28. IPv4 prefixes range from 0 to 32; IPv6 prefixes range from 0 to 128.
- Choose Calculate CIDR. Compare the canonical CIDR with your input: host bits are cleared to identify the containing network.
- Read total addresses separately from usable addresses. Use the related host generator when you need a bounded list of individual addresses.
Worked example
Illustrative input and expected interpretation. This example is not a live measurement.
Input
192.0.2.17/28
What to expect
Canonical CIDR: 192.0.2.16/28 First address: 192.0.2.16 Last address: 192.0.2.31 Total addresses: 16 Traditional usable range: 192.0.2.17 - 192.0.2.30 Traditional usable count: 14
What to watch for
- IPv4 /31 uses two-address point-to-point semantics; /32 describes one address. Subtracting two from every IPv4 block gives incorrect results.
- IPv6 has no IPv4-style broadcast address. Operational reservations and actual address assignments are separate from this arithmetic.
- The example uses documentation addresses. A calculated block does not prove ownership, routing, or reachability.
Your input: submitted to this server for processing. This tool does not send it to an AI provider. Your input is processed for this request. Temporary processing files are removed afterward. Avoid pasting secrets or personal data.