IP Subnet Calculator

Calculate network address, broadcast, subnet mask and usable host range for IPv4.

/

How to use the IP Subnet Calculator

  1. Enter or choose the ip address.
  2. Enter or choose the cidr prefix.
  3. Results update instantly as you type — press Calculate any time to refresh.

Formula

Network = IP AND mask; broadcast = network OR NOT mask; hosts = 2^(32 − prefix) − 2.

About this calculator

Enter an IPv4 address and CIDR prefix to calculate the network address, subnet mask, wildcard mask, broadcast address, usable host range and host count. Useful for network planning, firewall rules and certification study.

Frequently asked questions

How many hosts are in a /24?

256 addresses, 254 usable hosts.

What are private IP ranges?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918).