How to use the CIDR calculator
Try an example
192.168.1.10/24
192.0.2.0/31
How to calculate an IPv4 CIDR range
Enter an IPv4 address and prefix, such as 192.168.1.10/24. The calculator normalizes host bits and shows the network address, last address, subnet mask and address count. Switch to IP range → CIDR to cover an inclusive address range with the smallest list of CIDR blocks.
How many addresses are in a /24?
An IPv4 prefix /n contains 2^(32−n) addresses. A /24 contains 256 addresses and uses mask 255.255.255.0. For 192.168.1.10/24, the range is 192.168.1.0–192.168.1.255.
Are total addresses and usable hosts the same?
Usually not. Conventional subnets reserve network and broadcast addresses. A /31 has special point-to-point semantics and a /32 identifies one address. Cloud providers may reserve additional addresses, so check their allocation rules.
Can every IP range become a single CIDR?
No. A single CIDR must have a power-of-two size and a correctly aligned starting address. Other ranges need multiple blocks. This calculator supports IPv4; use Subnet Calculator when you want to divide a network into smaller subnets.