Subnet Calculator
Calculate network address, broadcast address, usable hosts, and more from any IP address and CIDR notation.
Subnet Details
PrivateBinary Representation
You May Also Like
What is Subnetting?
Imagine the internet is like a postal system. Your IP address is your house address, and subnetting is like dividing a city into neighborhoods.
Subnetting breaks a large network into smaller, more manageable pieces called subnets. Each subnet is like a neighborhood where devices can talk to each other directly.
Why does this matter?
- Security: Keep sensitive devices (like servers) separate from guest WiFi
- Performance: Reduce network congestion by limiting broadcast traffic
- Organization: Group related devices together logically
Understanding CIDR Notation
You've probably seen IP addresses written like 192.168.1.0/24. That /24 at the end is CIDR notation (Classless Inter-Domain Routing).
The number after the slash tells you how many bits of the IP address identify the network portion:
| CIDR | Subnet Mask | Usable Hosts | Common Use |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Large corporations |
| /16 | 255.255.0.0 | 65,534 | Medium organizations |
| /24 | 255.255.255.0 | 254 | Home/small office |
| /30 | 255.255.255.252 | 2 | Point-to-point links |
The most common subnet for home networks is /24, giving you 254 usable addresses - plenty for most households!
Network vs Host Portions
Every IP address has two parts:
- Network portion: Identifies which network you're on (like a street name)
- Host portion: Identifies your specific device (like a house number)
For 192.168.1.100/24:
- Network:
192.168.1.0(first 24 bits) - Host:
.100(last 8 bits) - All devices from
192.168.1.1to192.168.1.254are on the same network
Special Addresses in Every Subnet
Every subnet reserves two addresses that you cannot assign to devices:
๐ Network Address (first address)
- Example:
192.168.1.0in a /24 network - Identifies the network itself
- Used in routing tables
๐ข Broadcast Address (last address)
- Example:
192.168.1.255in a /24 network - Messages sent here reach ALL devices on the subnet
- Used for network discovery protocols
That's why a /24 network has 256 total addresses but only 254 usable hosts!
Private vs Public IP Addresses
Not all IP addresses can be used on the public internet:
๐ Private Ranges (use freely in your network):
10.0.0.0/8โ 16 million addresses172.16.0.0/12โ 1 million addresses192.168.0.0/16โ 65,000 addresses
๐ Public Addresses: Assigned by your ISP, visible on the internet
Never expose private IP addresses on the public internet. They're designed for internal use only and won't route properly.
Practical Subnetting Tips
1. Plan for Growth If you need 50 hosts now, use /25 (126 hosts) not /26 (62 hosts). Networks always grow!
2. Use Standard Boundaries Stick to /24, /25, /26, /27, /28 - they're easier to troubleshoot and remember.
3. Document Everything Keep a spreadsheet of your subnets. Future you will thank present you.
4. Leave Room Between Subnets If possible, don't use consecutive subnet ranges. This gives flexibility to expand later.
5. Consider VLANs Combine subnetting with VLANs for even better network segmentation.