Subnet Calculator
Calculate IPv4 and IPv6 network ranges, subnet masks, broadcast addresses, host capacity, and CIDR details.
Please configure parameters and execute the action.
About Subnet Calculator
Subnet Calculator derives network boundaries and addressing details from an IPv4 or IPv6 address and CIDR prefix. IPv4 results include mask, wildcard, broadcast, and usable hosts; IPv6 results include the network and address range.
How to Use
Choose the IP version, enter an address, and set its prefix length.
- Select IPv4 or IPv6.
- Enter an address without or with a CIDR suffix.
- Set the prefix length and calculate the subnet details.
Examples
-
IPv4 /24 office network
IP address: 192.168.10.42 Prefix: /24 Network: 192.168.10.0/24 Broadcast: 192.168.10.255 Usable range: 192.168.10.1 - 192.168.10.254 Usable hosts: 254
-
IPv6 documentation subnet
IP address: 2001:db8:abcd:12::34 Prefix: /64 Network: 2001:db8:abcd:12::/64 First address: 2001:db8:abcd:12:: Last address: 2001:db8:abcd:12:ffff:ffff:ffff:ffff
Real-World Usage Scenarios
- Enterprise Network Planning - Define precise network boundaries and calculate total host capacity for departmental VLANs to ensure proper address allocation.
- Firewall Policy Validation - Confirm the exact CIDR range targeted by firewall access control lists (ACLs) to prevent overly permissive security policies.
- Connectivity Troubleshooting - Identify if two different IP addresses reside within the same subnet, helping to isolate routing or gateway configuration errors.
Frequently Asked Questions
What is the function of the CIDR prefix?
The CIDR prefix denotes the number of bits in the network portion of the address. A higher prefix value results in a smaller network size.
Why are some IPv4 hosts unavailable for assignment?
IPv4 subnets reserve the first address for the network identifier and the last address for broadcast traffic. Special cases exist for /31 and /32.
How does this tool handle IPv6 addressing?
IPv6 does not utilize broadcast addresses. Instead, the tool identifies the start and end of the address range within the specified prefix.