IP

IP Subnet Calculator

IPv4 & IPv6 network, host range, mask and CIDR calculator

Result
Binary view
1 network bits0 host bits
All possible networks
NetworkUsable host rangeBroadcast

How subnetting works

An IPv4 address is 32 bits. The prefix length (CIDR, e.g. /24) says how many leading bits identify the network; the remaining bits identify hosts. A /24 leaves 8 host bits: 28 = 256 addresses, minus the network and broadcast addresses = 254 usable hosts. /31 (point-to-point, RFC 3021) and /32 (single host) have no reserved addresses.

Classful ranges & private networks

ClassRangeDefaultPrivate
A0.0.0.0 โ€“ 127.255.255.255/810.0.0.0/8
B128.0.0.0 โ€“ 191.255.255.255/16172.16.0.0/12
C192.0.0.0 โ€“ 223.255.255.255/24192.168.0.0/16
D224.0.0.0 โ€“ 239.255.255.255Multicast
E240.0.0.0 โ€“ 255.255.255.255Reserved