Last updated: November 28, 2026 · By Visal Vadayar
Quick answer: Enter an IP address and prefix (for example 192.168.1.10/24). The calculator shows the network address (192.168.1.0), broadcast address (192.168.1.255), usable host range (.1 to .254) and 254 usable hosts. Each step down in prefix (/24 to /23) doubles the addresses.
Subnet Calculator (IPv4 CIDR)
Enter an IP address and CIDR prefix or subnet mask to get the network address, broadcast address, usable host range, wildcard mask and number of hosts.
Usable hosts exclude the network and broadcast addresses (except /31 point-to-point links and /32 single hosts, per RFC 3021).
Subnet cheat sheet
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /30 | 255.255.255.252 | 2 |
| /29 | 255.255.255.248 | 6 |
| /28 | 255.255.255.240 | 14 |
| /27 | 255.255.255.224 | 30 |
| /26 | 255.255.255.192 | 62 |
| /25 | 255.255.255.128 | 126 |
| /24 | 255.255.255.0 | 254 |
| /23 | 255.255.254.0 | 510 |
| /22 | 255.255.252.0 | 1,022 |
| /16 | 255.255.0.0 | 65,534 |
| /8 | 255.0.0.0 | 16,777,214 |
How subnetting works
An IPv4 address has 32 bits. The prefix says how many bits identify the network; the rest identify hosts. Hosts = 2^(32 − prefix) − 2. The network address has all host bits set to 0, and the broadcast address has them all set to 1.
Example: 10.20.30.40/22 → network 10.20.28.0, broadcast 10.20.31.255, hosts 10.20.28.1 – 10.20.31.254 (1,022 usable).
Private IP ranges
| Range | CIDR | Typical use |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | Large company networks |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | Medium networks, Docker |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | Home routers |
Networking guides: how to reset a router, clear DNS cache, mesh Wi-Fi vs extender. Look up any domain’s IP and WHOIS with Domain Dossier.
FAQ
How many hosts are in a /24 subnet?
A /24 (255.255.255.0) has 256 addresses and 254 usable hosts, because the network and broadcast addresses can’t be assigned to devices.
What is CIDR notation?
CIDR notation writes the subnet mask as the number of network bits after a slash. /24 means the first 24 bits are the network, equal to 255.255.255.0.
What is a wildcard mask?
It’s the inverse of the subnet mask, used in router access lists and OSPF. The wildcard for 255.255.255.0 is 0.0.0.255.
Which IP ranges are private?
RFC 1918 private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They’re used inside home and company networks and aren’t routed on the internet.




