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 9/1/2026, 1:27:41 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.
100% Free Runs in Your Browser No Sign-Up Required
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.
Common IPv4 CIDR prefixes (RFC 4632)
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
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.
Related searches
Sources
- RFC 4632 — Classless Inter-domain Routing (CIDR) — accessed 2026-08-20