What the results mean
- Network address — the first address of the subnet. It names the network and is not given to a device.
- Broadcast address — the last address of an IPv4 subnet. A packet sent to it reaches every device of the subnet.
- First / last usable host — the range you can give to computers, phones, printers and routers.
- Netmask and wildcard — the same prefix written as a mask (used by most systems) and as its inverse (used by Cisco access lists and OSPF).
CIDR notation in one minute
In 192.168.1.0/24 the number after the slash says how many bits, from the left, belong to the network. The rest identifies devices. A /24 leaves 8 bits for devices: 256 addresses, of which 254 can be used, because the network and broadcast addresses are reserved. Each step of the prefix doubles or halves the size: a /23 has 512 addresses, a /25 has 128.
IPv6 has no broadcast and no reserved first address, and subnets are much larger: a normal LAN is a /64, which holds 18 quintillion addresses.
IPv4 CIDR cheat sheet
| CIDR | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 512 | 510 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 |
| /32 | 255.255.255.255 | 1 | 1 |
Frequently asked questions
How many hosts are in a /24?
A /24 has 256 addresses and 254 usable hosts. The first (network) and the last (broadcast) addresses are reserved.
What is the subnet mask of /16?
255.255.0.0. It holds 65,536 addresses, of which 65,534 are usable.
Why do /31 and /32 have no broadcast?
A /31 is used for links between two routers, so both addresses are usable (RFC 3021). A /32 is a single address, used for one host or a loopback.