Subnet Calculator
Calculate subnet details from IP address and CIDR notation. Shows network address, broadcast address, host range, and number of usable hosts.
Class C /24
Class A /8
Class B /16
How to Use Subnet Calculator
- Enter an IP address (e.g., 192.168.1.0).
- Select or type the CIDR prefix length (0-32).
- The subnet details are calculated and displayed instantly.
- Click "Copy" next to any result to copy it to your clipboard.
How Subnet Calculation Works
Subnetting divides a larger network into smaller, more manageable sub-networks. The CIDR prefix length determines how many bits of the IP address are used for the network portion, and the remaining bits are used for host addresses. A /24 prefix means 24 bits for the network and 8 bits for hosts, allowing 256 total addresses (254 usable).
This tool performs all calculations using bitwise operations on the IP address octets entirely in your browser. It computes the subnet mask, network address, broadcast address, host range, and wildcard mask from the given IP and prefix length.