Ip Calculator
Calculate network details like network address, broadcast address, usable hosts, and subnet mask from an IP address and CIDR prefix.
Was this calculator helpful?
How to use this tool?
How to Use the IP Calculator
This calculator computes network details from an IPv4 address and CIDR prefix. Follow these steps:
- Enter an IPv4 address in the IP Address field (e.g.,
192.168.1.0). Must be four octets (0–255). - Enter a CIDR prefix (0–32) in the CIDR Prefix field (e.g.,
24for a /24 subnet). - Click Calculate or press Enter in either input field.
Results shown:
- Network Address – first IP of the subnet.
- Broadcast Address – last IP of the subnet.
- Subnet Mask – dotted decimal mask (e.g.,
255.255.255.0). - Usable Hosts – number of assignable IPs (excludes network and broadcast, except /31 and /32).
- Formula – brief explanation of the calculation.
Note: Invalid IPs or CIDR values show red error messages. All inputs must be valid to get results.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
An IP calculator computes network details like network address, broadcast address, subnet mask, and number of usable hosts from an IP address and CIDR prefix.
Enter a valid IPv4 address (e.g., 192.168.1.0) and a CIDR prefix (e.g., 24), then click Calculate. The results will show network address, broadcast address, subnet mask, and usable hosts.
CIDR prefix must be between 0 and 32 inclusive. Common values are 24, 16, and 8.