How subnetting works.
CIDR notation, masks and usable hosts in plain English, with every IPv4 prefix in one table.
IPv4 subnet cheat sheet
| Prefix | Subnet mask | Wildcard | Addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Frequently asked questions
What does /24 mean?
It's CIDR notation for how many bits at the start of the address name the network. An IPv4 address has 32 bits, so a /24 fixes the first 24 and leaves 8 for the devices on it: 256 addresses, such as 192.168.1.0 to 192.168.1.255. Every bit fewer doubles the size; every bit more halves it.
What is a subnet mask?
The same prefix written as an address: ones for the network bits, zeros for the host bits. A /24 is 255.255.255.0 and a /26 is 255.255.255.192. A device ANDs its address with the mask to find its network, and sends anything outside it to the router.
Why are there two fewer usable hosts than addresses?
In IPv4 the first address of a block is the network address and the last is the broadcast address, which reaches every device on it, so neither goes to a device. A /24 has 256 addresses and 254 usable hosts. The exceptions are a /31, where both addresses are used on a point-to-point link, and a /32, a single address.
What is a wildcard mask?
The subnet mask inverted: zeros for the network bits and ones for the host bits, so a /24 is 0.0.0.255. Cisco access lists and OSPF use it to say which addresses a rule matches.
Which addresses are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are for private networks and aren't reachable from the internet; home routers use 192.168 and offices and clouds often use 10. 100.64.0.0/10 is used by internet providers for carrier-grade NAT, and 169.254.0.0/16 is what a device gives itself when it can't get an address. In IPv6, fc00::/7 is the private (unique local) range.
How is IPv6 different?
IPv6 addresses have 128 bits, written as eight groups of hexadecimal with the longest run of zero groups shortened to ::. There is no broadcast address, so every address in a block is usable. A single network such as a home LAN is almost always a /64, and providers hand out a /48 or /56 to a site so it can make many /64s.
How do I split a network into smaller subnets?
Make the prefix longer. Each extra bit doubles the number of subnets and halves their size: a /24 splits into two /25s, four /26s or eight /27s. In the calculator, choose the new size under Split into to list every subnet with its first and last address.
What is the reverse DNS zone?
Reverse DNS turns an address back into a name with PTR records, kept in a zone under in-addr.arpa (IPv4) or ip6.arpa (IPv6) with the address written backwards. The calculator shows the zone that holds the block's records. Whoever the block is assigned to, usually a hosting or internet provider, controls it.
Can my AI agent calculate subnets?
Yes. The Lemon Domains MCP server has a calculate_subnet tool, the REST API serves the same calculation at GET /api/v1/subnet, and the lemon command line runs it with lemon subnet 10.0.0.0/22 --split 24.
More free domain tools
Put a free bulk domain checker on your blog or site with one snippet. Pick the extensions and a theme; no account or key.
OpenPut the Is it down? checker, the port checker or the website file checker on your blog, status page or help centre with one snippet. No account or key.
OpenPut a free SPF, DMARC or DKIM checker on your blog or help centre with one snippet, plus how each email record works.
Open