Subnet calculator
Type any IPv4 address with a prefix or a mask. Everything updates as you type.
Usable hosts
62
192.168.10.64/26
- Network
- 192.168.10.64
- Broadcast
- 192.168.10.127
- Host range
- 192.168.10.65 to 192.168.10.126
- Subnet mask
- 255.255.255.192
- Wildcard mask
- 0.0.0.63
- Addresses in block
- 64
- Class
- C
- Type
- Private (RFC 1918)
- Prefix for 50 hosts
- /26
Subnetting drill
One question at a time on a fresh network. Work it out by hand, then check.
Work it out by hand, then check.
Prefixes, masks and host counts
| Prefix | Mask | Addresses | Usable hosts |
|---|---|---|---|
| /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 |
Then the whole exam
The free diagnostic has 15 questions across all five domains and takes 15 minutes. No account. You get your score in each domain and a short lesson on the one to fix first.
Questions people ask
How do you work out the number of usable hosts?
Take the host bits, 32 minus the prefix. 2 to that power is the number of addresses; subtract 2 for the network and broadcast addresses. A /26 has 6 host bits: 64 addresses, 62 usable.
What is the broadcast address of a subnet?
The last address in the block. Find the block size from the prefix, find the block the address sits in, and take its last address. 192.168.10.77/26 sits in .64 to .127, so the broadcast is 192.168.10.127.
What are the private IPv4 ranges?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 169.254.0.0/16 is link-local, which Windows calls APIPA, and 127.0.0.0/8 is loopback.