🌐 CIDR Notation Calculator
Calculate subnet ranges, host counts, network & broadcast addresses from any CIDR block instantly
254 Hosts
2 Hosts
65,534 Hosts
16.7M Hosts
| Prefix | Subnet Mask | Total IPs | Usable Hosts | Wildcard Mask | Typical Use |
|---|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | 0.255.255.255 | ISP / Large Corp |
| /16 | 255.255.0.0 | 65,536 | 65,534 | 0.0.255.255 | Enterprise Campus |
| /20 | 255.255.240.0 | 4,096 | 4,094 | 0.0.15.255 | Large VLAN |
| /22 | 255.255.252.0 | 1,024 | 1,022 | 0.0.3.255 | Data Center Block |
| /23 | 255.255.254.0 | 512 | 510 | 0.0.1.255 | Medium Office |
| /24 | 255.255.255.0 | 256 | 254 | 0.0.0.255 | Home / Small Office |
| /25 | 255.255.255.128 | 128 | 126 | 0.0.0.127 | VLAN Half-Split |
| /26 | 255.255.255.192 | 64 | 62 | 0.0.0.63 | Department Segment |
| /27 | 255.255.255.224 | 32 | 30 | 0.0.0.31 | IoT / Management |
| /28 | 255.255.255.240 | 16 | 14 | 0.0.0.15 | Small Office |
| /29 | 255.255.255.248 | 8 | 6 | 0.0.0.7 | DMZ Server Zone |
| /30 | 255.255.255.252 | 4 | 2 | 0.0.0.3 | Point-to-Point Link |
| /31 | 255.255.255.254 | 2 | 2* | 0.0.0.1 | Router Links (RFC 3021) |
| /32 | 255.255.255.255 | 1 | 0 | 0.0.0.0 | Single Host / Route |
| Range | CIDR | Total IPs | Class | Typical Use |
|---|---|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16,777,216 | A | Large enterprise, VPN |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1,048,576 | B | Corporate networks |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 | C | Home, small office |
| 169.254.0.0 – 169.254.255.255 | 169.254.0.0/16 | 65,536 | Link-local | APIPA, no DHCP fallback |
| 127.0.0.0 – 127.255.255.255 | 127.0.0.0/8 | 16,777,216 | Loopback | Localhost only |
| Project Type | Recommended CIDR | Usable Hosts | Notes |
|---|---|---|---|
| Home Lab (1–10 devices) | /28 | 14 | Tight, good for isolation |
| Home Network (standard) | /24 | 254 | Router default, most common |
| IoT Isolation VLAN | /27 | 30 | Separate from main LAN |
| Small Office (25–50 users) | /26 | 62 | Leaves room for printers/APs |
| Medium Office (50–200) | /24 or /23 | 254–510 | Use /23 with DHCP pools |
| Campus Network | /16 | 65,534 | Split into VLANs by dept |
| Data Center Block | /22 | 1,022 | Per-rack or per-pod segments |
| Point-to-Point WAN | /30 | 2 | 2 IPs: one each side of link |
CIDR Notation for Simple Internet Domain Routing, and yes, it sounds almost like “cider” when you say it out loud. In the 1980s Phil Karn created the Notation for compact display of an IP address together with its subnet mask and routing prefix. The idea itself is quite simple: you take a normal IP address, put a slash after it and add a number after it.
Do you know what that number really means? It shows how many bits of the address belong to the net itself.
CIDR Notation Made Simple
What does that number mean for you? It shows how many bits of the address relate to the network part. Take /24 as an example, that means that the first 24 bits belong to the net, while the remaining 8 bits stay for separate hosts.
Writing always 11111111.11111111.11111111.00000000 would be really mad, and so CIDR Notation helps as a short form. Instead of all those ones and zeros, you just write /24. The same mask equals 255.255.255.0, if you perfer decimal form.
CIDR Notation itself comes from counting the continuous chain of ones in the subnet mask, after you convert it to binary. Here the key point is, those bits go from the left to the right only. You can not simply mix ones and zeros freely.
For example, /25 becomes 11111111.11111111.11111111.10000000 in binary, which matches 255.255.255.128 in usual decimal Notation.
Looking at a practical case. For IP address 192.168.0.15 with mask 255.255.255.0, it becomes 192.168.0.15/24 in CIDR form. Here is another: 192.168.100.0/22 covers around 1024 IPv4 addresses, from 192.168.100.0 too 192.168.103.255.
But not every CIDR block that you find is correct. For example, 192.168.1.1/24 does not count, it should be 192.168.1.0/24 to be valid.
CIDR Notation shrinks the size of routing tables and makes nets much more efficient globally. It works for both IPv4 and IPv6 addresses. Programs like pfSense really prefer CIDR form instead of the old subnet mask.
Working with masks already became outdated in most current systems.
Say that you need around 600 IP addresses. One byte gives only 256. Doubling that, you get 512, and again to reach 1024.
That makes /22 your ideal choice, which in binary is 11111111.11111111.11111100.00000000. Learning binary math and converting between base 2 and base 10 really helps when you work with CIDR and subnets.
You commonly see 255.255.255.0 for /24 and 255.255.0.0 for /16. Old style addresses went away more than twenty years ago, fully replaced by CIDR as the current standard. CIDR blocks can describe ranges of IP addresses, and CIDR calculators help to convert between ranges and notations.
CIDR reallysaved the internet from IP address problems by means of clear mathematical logic.



