What is the Subnet Calculator?
A subnet calculator takes an IP address with CIDR notation (e.g. 192.168.1.1/24) and instantly returns the network address, broadcast address, subnet mask, wildcard mask and the range of usable host IPs.
Calculate network, broadcast, subnet mask and host range from an IP/CIDR.
Subnet formula. Subnet mask = 32-bit mask with the first `prefix` bits set to 1 (e.g. /24 → 255.255.255.0). Network address = IP AND mask. Broadcast address = network OR NOT(mask). Total hosts = 2^(32 − prefix); usable hosts = total − 2 (network and broadcast are reserved).
Example. For IP 192.168.1.1/24: the network address is 192.168.1.0, the broadcast address is 192.168.1.255, the subnet mask is 255.255.255.0, the wildcard mask is 0.0.0.255, and there are 254 usable host addresses (192.168.1.1 through 192.168.1.254).
| Field | Value |
|---|---|
| IP address | 192.168.1.1 |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| Network | 192.168.1.0/24 |
| Broadcast address | 192.168.1.255 |
| First usable host | 192.168.1.1 |
| Last usable host | 192.168.1.254 |
| Total hosts | 256 |
| Usable hosts | 254 |
| IP class | C |
| Scope | Private |
A subnet calculator takes an IP address with CIDR notation (e.g. 192.168.1.1/24) and instantly returns the network address, broadcast address, subnet mask, wildcard mask and the range of usable host IPs.
Subnet mask = 32-bit mask with the first `prefix` bits set to 1 (e.g. /24 → 255.255.255.0). Network address = IP AND mask. Broadcast address = network OR NOT(mask). Total hosts = 2^(32 − prefix); usable hosts = total − 2 (network and broadcast are reserved).
For IP 192.168.1.1/24: the network address is 192.168.1.0, the broadcast address is 192.168.1.255, the subnet mask is 255.255.255.0, the wildcard mask is 0.0.0.255, and there are 254 usable host addresses (192.168.1.1 through 192.168.1.254).