IP Subnet Calculator
Enter a valid IPv4 address (e.g. 192.168.1.10) and a prefix from 0 to 32.
| Network address | — |
| Broadcast address | — |
| Subnet mask | — |
| Wildcard mask | — |
| First usable host | — |
| Last usable host | — |
| Usable hosts | — |
| Total addresses | — |
A free IP subnet calculator for IPv4. Enter an IP address and a CIDR prefix — for example 192.168.1.10/24 — and get the network address, broadcast address, subnet mask, wildcard mask, first and last usable hosts, and how many usable hosts the subnet holds. Everything is calculated in your browser, instantly.
Frequently asked questions
What is CIDR notation?
CIDR writes the subnet mask as a prefix length after a slash: /24 means the first 24 bits are the network part, which is the same as the mask 255.255.255.0. A larger prefix means a smaller subnet.
How many usable hosts does a /24 have?
254. A /24 holds 256 addresses in total, but the network address and the broadcast address cannot be assigned to hosts, so 256 − 2 = 254 are usable.
What is the wildcard mask?
The wildcard mask is the inverse of the subnet mask (255.255.255.255 minus the mask). It is used in access control lists and some routing rules: for a /24 it is 0.0.0.255.
Why do /31 and /32 show 0 usable hosts?
A /32 is a single host address with no network or broadcast to spare, and a /31 has only two addresses. Some routers do use /31 for point-to-point links, but the classic usable-host count is 0, so this calculator says so rather than inventing a number.