IP subnet and CIDR calculator
Enter an IPv4 address in CIDR notation — for example 192.168.1.10/24 — and
instantly get the network address, broadcast address, usable host
range, subnet mask, wildcard mask, and total address count. Network
engineers use this to plan address space and verify firewall and routing config.
How it works
The prefix length (the number after the slash) sets how many leading bits are the network portion. The calculator builds a 32-bit mask of that many 1-bits, then:
- Network address = IP AND mask (host bits zeroed)
- Broadcast address = network OR wildcard (host bits set to 1)
- Wildcard mask = bitwise NOT of the subnet mask
- Usable hosts = 2^(32 − prefix) − 2 (the /31 and /32 special cases keep both addresses)
Example
For 192.168.1.10/24:
| Field | Value |
|---|---|
| Subnet mask | 255.255.255.0 |
| Network address | 192.168.1.0 |
| Broadcast address | 192.168.1.255 |
| Usable host range | 192.168.1.1 – 192.168.1.254 |
| Total addresses | 256 |
| Usable hosts | 254 |
All of the math is bitwise arithmetic done in your browser, so no address or network detail is ever uploaded.