All tools
Developer

IP Subnet Calculator

Network address, broadcast, mask, and usable host range from a CIDR.

🔒 Runs entirely in your browser — nothing here is ever uploaded

About the IP Subnet Calculator

Calculates the network address, broadcast address, subnet mask, and usable host range for an IPv4 address and CIDR prefix — standard networking math used when configuring subnets.

How to use it
  1. Enter an IP address.
  2. Enter a Prefix length (CIDR), from 0–32.
  3. Read the network address, subnet mask, broadcast address, and usable host range in the readout.
Formula
Subnet mask is derived from the prefix length. Network address = IP AND mask. Broadcast address = network address OR (NOT mask). Usable hosts = 2^(32−prefix) − 2. Standard IPv4 CIDR (Classless Inter-Domain Routing) math, as specified in RFC 4632.
Worked example

192.168.1.0/24 has a network address of 192.168.1.0, a broadcast of 192.168.1.255, and 254 usable host addresses.

Recommendations
  • A /24 network is a common default for small local networks, giving 254 usable addresses — smaller prefixes like /28 suit point-to-point links or small device groups.
  • The network and broadcast addresses aren't assignable to devices — only the addresses between them are usable hosts.
  • /31 and /32 are special cases with no traditional usable host range, often used for point-to-point links and single-host routes.
Frequently asked questions
It's the number of bits reserved for the network portion of the address — a /24 reserves 24 bits, leaving 8 bits (256 addresses) for hosts.