IP subnet calculator calculator

Network, broadcast, mask and host range of an IPv4 address in CIDR form. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.

Formula

mask = 32 − prefix zero bits
network = IP AND mask,   broadcast = network OR NOT mask
hosts = 2^(32 − prefix) − 2

Inputs

  • IP address / prefix (e.g. 192.168.1.10/24) (IP)

Worked example: 192.168.1.10/24

  • IP address / prefix (e.g. 192.168.1.10/24) IP = 192.168.1.10/24
  1. Prefix /24 → mask 255.255.255.0 (24 ones, 8 zeros)
  2. Network = 192.168.1.10 AND 255.255.255.0 = 192.168.1.0
  3. Broadcast = network OR 0.0.0.255 = 192.168.1.255
  4. Hosts = 2^8 − 2 = 254

Answer: Network address: 192.168.1.0/24; Broadcast address: 192.168.1.255; Subnet mask: 255.255.255.0; Wildcard mask: 0.0.0.255; Usable host range: 192.168.1.1 – 192.168.1.254; Usable hosts: 254

More software engineering calculators

Software Engineering formula sheet · All calculators · Practice problems