Subnet / CIDR Calculator
Network, broadcast, masks, host range, binary mask, and RFC classification from any IPv4 CIDR block. Optionally subdivide into smaller subnets (preview of up to 256 blocks).
IPv4 Subnet & CIDR Cheat Sheet
Common subnet masks, usable host capacities, and RFC 1918 private network allocations.
| Prefix | Subnet Mask | Total IPs | Usable Hosts | Common Use Case |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 (Host route) | Single host / Loopback |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point link |
| /29 | 255.255.255.248 | 8 | 6 | Small office / DMZ |
| /28 | 255.255.255.240 | 16 | 14 | Small subnet |
| /27 | 255.255.255.224 | 32 | 30 | Medium departmental subnet |
| /26 | 255.255.255.192 | 64 | 62 | Departmental subnet |
| /25 | 255.255.255.128 | 128 | 126 | Large departmental subnet |
| /24 | 255.255.255.0 | 256 | 254 | Standard LAN (Class C) |
| /23 | 255.255.254.0 | 512 | 510 | Dual Class C supernet |
| /20 | 255.255.240.0 | 4,096 | 4,094 | Enterprise campus subnet |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Large enterprise (Class B) |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | ISP / Cloud block (Class A) |
Special & Private IPv4 Ranges
| Block | Scope | Standard / RFC | Purpose |
|---|---|---|---|
| 10.0.0.0/8 | Private LAN | RFC 1918 | Enterprise private intranets |
| 172.16.0.0/12 | Private LAN | RFC 1918 | Mid-size private networks (172.16 - 172.31) |
| 192.168.0.0/16 | Private LAN | RFC 1918 | Home / SOHO local networks |
| 127.0.0.0/8 | Host | RFC 1122 | Loopback (localhost) |
| 169.254.0.0/16 | Subnet | RFC 3927 | Link-local (APIPA autoconfiguration) |
| 100.64.0.0/10 | ISP | RFC 6598 | Carrier-Grade NAT (CGNAT) |
| 224.0.0.0/4 | Multicast | RFC 5771 | Multicast group communication |
Frequently Asked Questions
How do I calculate a subnet?
Enter a block like 192.168.1.0/24 and click Calculate Subnet — strict notation is enforced, so 192.168.1.0/24foo is rejected.
How do I split a network?
Enter a longer prefix such as /26 in the split field to preview up to 256 subnets with usable ranges and broadcasts.
How many addresses does a block hold?
Two to the power of host bits — 256 for a /24 — minus network and broadcast, except /31 with two usable and /32 with one.
Why do /31 and /32 show no broadcast?
They are point-to-point and host routes (RFC 3021) and have no broadcast address by design.
What is the wildcard mask for?
The inverse of the subnet mask, used in firewall and ACL rules — it is shown next to the regular mask.
Which special ranges are detected?
Private (RFC 1918), loopback, link-local, carrier-grade NAT, documentation, benchmarking, multicast and reserved ranges are named next to the class.
Does it support IPv6?
No — this calculator handles IPv4 CIDR blocks only.