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
CalcoTools · IP Subnet Calculator · generated 8/23/2026, 1:07:51 PM
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
- Enter an IP address.
- Enter a Prefix length (CIDR), from 0–32.
- 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.
Sources
- RFC 4632 — Classless Inter-domain Routing (CIDR) — accessed 2026-08-20