Subnetting organizes IP address space and helps networks scale efficiently. This IP Subnet Calculator computes key subnet properties such as network address, broadcast address, subnet mask, and usable host range for an IPv4 block based on an input IP and prefix length. Use it to learn networking fundamentals.
How to Use
- Enter an IPv4 address.
- Enter the prefix length (CIDR) such as 24 or 16.
- Run the calculation to see network and broadcast addresses.
- Review the usable host range and number of hosts.
The Math / Logic Behind It
Subnet mask is derived from prefix length by setting the first p bits to 1. Network address = IP AND mask. Broadcast address = network OR (NOT mask). Usable hosts depend on whether you exclude network and broadcast addresses.
Real-World Examples
- An IP in /24 networks typically uses 255.255.255.0 with 256 total addresses.
- A /16 block contains 65,536 total addresses and a much larger host range.
- The calculator updates network boundaries when prefix length changes.
