IPv4 Subnet Calculator
Result
IPv4 Subnet Calculator is a mathematics calculator that helps you calculate ipv4 subnet values from your input data. The formula used is: Subnet Mask: set leftmost CIDR bits to 1, rest to 0\nUsable Hosts = 2^(32−CIDR) − 2\nNetwork = IP AND Mask\nBroadcast = Network OR ~Mask. Ensure all inputs share the same unit system (e.g. all metres or all feet) unless the formula converts between units.
Formula
Example Calculation
- IP Octet 1: 192
- IP Octet 2: 168
- IP Octet 3: 1
- IP Octet 4: 0
- CIDR Prefix: 24 /
Suppose you enter: IP Octet 1 = 192, IP Octet 2 = 168, IP Octet 3 = 1, IP Octet 4 = 0, CIDR Prefix = 24. The calculator applies the formula (Subnet Mask: set leftmost CIDR bits to 1, rest to 0\nUsable Hosts = 2^(32−CIDR) − 2\nNetwork = IP AND Mask\nBroadcast = Network OR ~Mask) and shows all output values below. Change any input field to immediately see how the result changes.