Subnet / CIDR Calculator
Subnet / CIDR Calculator calculates the network address, broadcast address, usable host range, subnet mask and total address count from a CIDR notation (e.g. 192.168.1.10/24). It also handles IPv6 CIDR blocks (network, last address, address count, /64 count).
How it works
- 1Enter an IPv4 address and prefix length in CIDR format (e.g. 10.0.0.0/16).
- 2The network address, broadcast address and usable host range are calculated instantly.
- 3The subnet mask and wildcard mask are shown at the same time.
- 4For edge cases like /31 and /32, the usable host count shows as 0 (these are used for special purposes like point-to-point links).
Frequently asked questions
Why is usable host count 2 less than the total?−+
Every subnet reserves its first address (network address) and last address (broadcast address), they can't be assigned to hosts, so usable hosts = total addresses - 2 (except for /31 and smaller).
What's the wildcard mask used for?−+
It's the inverted (bit-flipped) form of the subnet mask, used in configurations like Cisco ACLs (access control lists) and OSPF.
Why does /24 equal 255.255.255.0?−+
The prefix length specifies how many leading bits are 1 (network bits); /24 means the first 24 bits are 1, which is 255.255.255.0 in decimal notation.
Does this tool support IPv6 CIDRs?−+
No, it currently only supports IPv4 subnet calculations.
Does it support IPv6?−+
Yes, an address containing a colon is calculated as IPv6, e.g. 2001:db8::/32. Address counts are exact thanks to BigInt.
Embed on your site
<iframe src="https://toolsqube.com/en/network/subnet-cidr-calculator/embed" width="480" height="360" style="border:0;border-radius:14px" title="Subnet / CIDR Calculator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Network and Systems Guide →