A notation like 192.168.1.10/24 shows up in router settings, firewall rules, and network documentation — but it isn't always obvious what it actually means: which range of addresses belongs to the subnet, how many hosts fit in it, and what its broadcast address is. Let's walk through how this is calculated.
What CIDR notation is
CIDR (Classless Inter-Domain Routing) is a way to write an IP address together with its subnet mask as a single number: /24 means the first 24 bits of the address are the network number, and the remaining 8 bits are the host number within it. The larger the number after the slash, the fewer addresses the subnet has:
| Prefix | Mask | Total addresses | Usable hosts |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /28 | 255.255.255.240 | 16 | 14 |
| /30 | 255.255.255.252 | 4 | 2 |
What the calculator shows
From an address and prefix, the IP calculator computes:
- Network address — the first address in the subnet, identifying the network itself.
- Broadcast address — the last address in the subnet, reserved for broadcasting to every host on the network.
- Subnet mask and wildcard mask — the latter is used in some devices' ACLs (Cisco, for example).
- First and last usable host — the range of addresses that can be assigned to devices.
- Total and usable address counts, the network class (A/B/C), and whether the address is private.