Work out network, broadcast, usable hosts and masks for any IPv4 or IPv6 CIDR, and split networks into subnets.
Last updated:
All maths runs in your browser.
| CIDR | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 (single host) |
| /31 | 255.255.255.254 | 2 | 2 (point-to-point) |
| /30 | 255.255.255.252 | 4 | 2 |
| /29 | 255.255.255.248 | 8 | 6 |
| /28 | 255.255.255.240 | 16 | 14 |
| /27 | 255.255.255.224 | 32 | 30 |
| /26 | 255.255.255.192 | 64 | 62 |
| /25 | 255.255.255.128 | 128 | 126 |
| /24 | 255.255.255.0 | 256 | 254 |
| /23 | 255.255.254.0 | 512 | 510 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| Range | CIDR | Typical use |
|---|---|---|
| 10.0.0.0 - 10.255.255.255 | 10.0.0.0/8 | Big companies, cloud VPCs |
| 172.16.0.0 - 172.31.255.255 | 172.16.0.0/12 | Docker, mid-size networks |
| 192.168.0.0 - 192.168.255.255 | 192.168.0.0/16 | Home and small office routers |
| 100.64.0.0 - 100.127.255.255 | 100.64.0.0/10 | Carrier-grade NAT (ISPs) |
256 addresses, 254 usable hosts.
255.255.255.224, with 30 usable hosts.
The inverse of the subnet mask, used in Cisco ACLs and OSPF. For /24 it is 0.0.0.255.
The first is the network address and the last is the broadcast address. /31 and /32 are exceptions.
Do a bitwise AND of the IP and the mask. 192.168.1.130/25 gives network 192.168.1.128.
Yes. Switch to IPv6 and enter an address with a prefix, like 2001:db8::/48.