Subnet Calculator
Enter any IPv4 address with CIDR notation for the complete breakdown — network address, broadcast, usable host range, wildcard mask, host counts — plus binary masks, IP class and type detection. Split networks with the VLSM divider and calculate IPv6 subnets too. Instant, offline, private.
✓ Full CIDR Breakdown · ✓ Binary Mask · ✓ VLSM Splitter · ✓ IPv6 · ✓ /31 //32 Correct🔧 JS ⏳ · Input — · Result — · Engine ⏳
🔢 Binary & Hex
Example: /24 split into /26s = 4 equal subnets of 62 hosts each.
| # | Network | First host | Last host | Broadcast | Usable |
|---|
CIDR Subnet Reference Table
| CIDR | Subnet mask | Total addresses | Usable hosts | Typical use |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | Legacy class A |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Large networks |
| /20 | 255.255.240.0 | 4,096 | 4,094 | Large office |
| /22 | 255.255.252.0 | 1,024 | 1,022 | Medium office |
| /24 | 255.255.255.0 | 256 | 254 | Standard LAN ⭐ |
| /25 | 255.255.255.128 | 128 | 126 | Half LAN |
| /26 | 255.255.255.192 | 64 | 62 | Small dept |
| /27 | 255.255.255.224 | 32 | 30 | Small group |
| /28 | 255.255.255.240 | 16 | 14 | Small cluster |
| /29 | 255.255.255.248 | 8 | 6 | Point links + spare |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point |
| /31 | 255.255.255.254 | 2 | 2 (RFC 3021) | P2P modern |
| /32 | 255.255.255.255 | 1 | 1 (host route) | Single device |
How Subnetting Math Works
A subnet mask splits an IPv4 address into a network portion (identifying the subnet) and a host portion (identifying the device within it). The number of 1-bits in the mask is the CIDR prefix — a /26 mask has 26 one-bits followed by 6 zero-bits (255.255.255.192).
The four key operations: Network address = IP AND mask (all host bits zeroed). Broadcast address = IP OR wildcard (all host bits set to 1). Usable hosts = total addresses minus the network and broadcast addresses — except /31 point-to-point links, which use both addresses per RFC 3021, and /32 single-host routes. Example: 192.168.1.130/26 → network 192.168.1.128, broadcast 192.168.1.191, usable range .129–.190, 62 hosts. The binary panel above shows the AND operation bit by bit — the exact skill CCNA exams test.
Why Use This IP Subnet Calculator?
Complete CIDR Breakdown
Network, broadcast, range, wildcard, counts, class and type in a single pass.
Binary + Hex Views
Mask and IP in binary — the CCNA-study detail most calculators skip.
VLSM Splitter
Divide any network into equal subnets by new prefix — full list generated.
IPv6 Support
Expansion, network portion, address counts and type detection for v6.
100% Private
IPs stay in your browser — internal addresses never sent anywhere.
Instant & Offline
Pure bit math on every keystroke — works at client sites with no signal.
Popular Use Cases
- 🌐 Design subnets for office networks and VLANs
- 🎓 Practice for CCNA, Network+ and cloud certification exams
- ☁️ Plan cloud VPC subnet ranges (AWS, Azure, GCP)
- 🔧 Troubleshoot "why can't these two hosts talk" mask mismatches
- 🏢 Split acquired IP space into usable department blocks
- 🔐 Verify ACL and firewall wildcard masks match intent
Pro Tips for Subnetting
- Memorize the block sizes: /24 = 256, /25 = 128, /26 = 64, /27 = 32, /28 = 16, /29 = 8, /30 = 4. Network addresses always start on those boundaries — 192.168.1.130/26 lands in the .128 block.
- /31 is legit: RFC 3021 made two-address point-to-point links standard — older cheat sheets saying "/31 has 0 usable hosts" are outdated. This calculator handles it correctly.
- Wildcard = inverted mask: ACLs and routing configs use wildcards (0.255.255.255 for /8). The calculator provides it so you don't hand-invert octets under pressure.
- Private ranges quick check: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — plus loopback 127/8, link-local 169.254/16, and CGNAT 100.64/10. The tool detects all of these.
- IPv6 prefixes work in nibbles: prefixes move in 4-bit steps for clean boundaries — a /64 is the standard LAN size, effectively inexhaustible per site.
0 Comments