Calculate network address, broadcast address, subnet mask, and usable hosts for any IP/CIDR.
| CIDR | Subnet Mask | Addresses | Usable Hosts | Class |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | A |
| /16 | 255.255.0.0 | 65,536 | 65,534 | B |
| /24 | 255.255.255.0 | 256 | 254 | C |
| /25 | 255.255.255.128 | 128 | 126 | - |
| /26 | 255.255.255.192 | 64 | 62 | - |
| /28 | 255.255.255.240 | 16 | 14 | - |
| /30 | 255.255.255.252 | 4 | 2 | - |
| /32 | 255.255.255.255 | 1 | 1 | - |
Step 1 — Enter an IP Address with CIDR: Type any IPv4 address followed by a slash and the prefix length, for example 192.168.1.0/24. If you omit the CIDR notation, the calculator defaults to /24. You can also click the quick CIDR buttons (/8, /16, /24, etc.) for common subnet sizes.
Step 2 — Click Calculate: The tool instantly computes the network address, broadcast address, subnet mask, wildcard mask, total addresses, usable hosts, first and last host addresses, and the IP class. A binary breakdown shows which bits belong to the network portion versus the host portion.
Step 3 — Review Results: The results grid displays all computed values at a glance. Accent-colored values highlight the most important results. The IP Range section shows the full network range and usable host range. Use the Common CIDR Reference table below for quick lookups of frequently used subnet sizes.
Tips: When designing networks, plan for growth by choosing a CIDR that provides more hosts than you currently need. A /24 (254 hosts) is standard for small office networks, while /16 (65,534 hosts) suits large enterprise environments. Remember that /31 and /32 are special cases — /31 gives 2 addresses for point-to-point links, and /32 represents a single host.