
CIDR / Subnet Calculator
Enter an IP address in CIDR notation to calculate network details, binary breakdown, and subnet splits. Supports IPv4 and IPv6.
Last reviewed: April 2026New to this tool? Click here for instructions
Examples: 10.0.0.0/8 - 192.168.1.0/24 - 172.16.0.0/12 - 10.10.10.0/28 - 2001:db8::/32
Divide a subnet into equal smaller subnets. Enter the parent CIDR in the Calculate tab first, then choose how many subnets to create.
IPv4 Subnet Reference (/8 - /32)
| CIDR | Subnet Mask | Wildcard | Hosts | Network Class |
|---|
How to Use the Subnet Calculator
To use the CIDR / Subnet Calculator, enter an IP address in CIDR notation (e.g., 10.0.0.0/8) in the input field and click Calculate. The tool will display network address, broadcast address, subnet mask, wildcard mask, first and last usable host, total host count, and a binary breakdown of the IP and mask.
When to Use the Tool in Real Workflows
Use the CIDR / Subnet Calculator when you need to plan and manage IP address spaces in your network infrastructure. It's particularly useful for cloud networking, where you need to allocate and divide CIDR blocks for different environments and Availability Zones.
How It Works
The CIDR / Subnet Calculator uses CIDR notation to calculate network details. CIDR notation consists of an IP address and a prefix length, which indicates how many bits belong to the network portion of the address. The tool then calculates the network address, broadcast address, subnet mask, wildcard mask, and other relevant details.
Tips, Edge Cases, or Limitations
The calculator handles both IPv4 and IPv6 CIDR notation. However, it does not support advanced features like subnet mask conversion or subnetting with variable-length subnet masks (VLSM). For more complex network planning, consider using specialized network design tools.
Frequently Asked Questions
Example walk-through
Worked example: step-by-step
Step 1. Enter the IP address and subnet mask into the calculator interface. For example:
IP Address: 192.168.1.0
Subnet Mask: 255.255.255.0
Step 2. Convert the subnet mask to CIDR notation by counting the number of consecutive 1s in its binary form. The mask 255.255.255.0 translates to /24.
Step 3. Calculate the network address by performing a bitwise AND operation between the IP address and subnet mask. For 192.168.1.0 and 255.255.255.0, the result is 192.168.1.0.
Step 4. Determine the broadcast address by setting all host bits to 1. With a /24 subnet, the broadcast address becomes 192.168.1.255.
Step 5. Compute the number of usable hosts using the formula 2^(32 - CIDR prefix) - 2. For /24, this results in 254 usable hosts.
Step 6. Display the results in a structured format. The expected output for the sample input is:
Network Address: 192.168.1.0
Broadcast Address: 192.168.1.255
Usable Hosts: 254
CIDR Notation: /24
This step-by-step process demonstrates how the CIDR/Subnet Calculator transforms input into precise network configuration details.