IPv4 CIDR Calculator

Calculate IPv4 network, mask, broadcast and address count from a CIDR prefix.

Your workspace

Processed in your browser

Enter your values or try the example.

This calculator processes IPv4 addresses in CIDR (Classless Inter-Domain Routing) notation to derive essential network parameters. It helps network administrators and developers quickly determine the boundaries and capacity of a specific subnet.

Calculating subnet details

  1. Input an IPv4 address followed by a slash and the prefix length (e.g., 192.168.1.0/24).
  2. Review the calculated network address, subnet mask, broadcast address, and the total number of available IP addresses.

Interpreting Address Capacity

The 'total addresses' count includes both the network address and the broadcast address. For standard subnets, the number of usable hosts is typically total addresses minus two. Note that for specific edge cases like /31 or /32 subnets, standard host-count conventions may differ based on your specific network equipment requirements.

CIDR Calculation Check

192.168.1.42/24

Network: 192.168.1.0, Mask: 255.255.255.0, Broadcast: 192.168.1.255, Total: 256

Questions about this operation

Does the total address count include the network and broadcast IPs?

Yes, the total address count provided represents the full size of the subnet block, including the network address (first) and the broadcast address (last).

How do I handle /31 or /32 subnets?

While this tool provides the mathematical total, remember that /31 and /32 subnets are special cases in networking. Always verify if your specific hardware or protocol supports these non-standard host configurations.

Continue your workflow

Explore more tools in this category for your next step.