IPv4 CIDR Calculator · How it works
How it works
CIDR and address counts
IPv4 addresses contain 32 bits. For prefix p, the address count is 2^(32 − p): 256 for /24 and 65,536 for /16. Ordinary subnet host counts exclude the network and broadcast addresses. For example, 192.168.1.10/24 is normalized to 192.168.1.0/24.
/31, /32 and provider reservations
RFC 3021 allows both /31 addresses to be used on point-to-point links. A /32 represents one host; neither case has a broadcast address here. Cloud providers may reserve additional addresses. Check their policies and your equipment’s /31 support separately. The /0 total includes private, reserved and special-use addresses.
Worked example
192.168.1.130/26 gives network 192.168.1.128, broadcast 192.168.1.191 and hosts .129–.190 (62 usable). /26 leaves 6 host bits: 2⁶ = 64 addresses. Use this to compare subnet sizes; provider reservations are separate.