Subnet Calculator
Calculate subnet masks, CIDR notation, usable IP ranges, and network details instantly.
CIDR Quick Reference
Common CIDR prefix sizes and their host counts
| CIDR | Subnet Mask | Total IPs | Usable Hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 256 | 254 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /30 | 255.255.255.252 | 4 | 2 |
| /32 | 255.255.255.255 | 1 | Single host |
Understanding Subnetting
Learn the basics of IP networking, subnetting, and addressing to better manage your networks.
What is Subnetting?
Subnetting is the practice of dividing a network into two or more smaller networks. It helps improve network performance and security by reducing broadcast traffic and organizing hosts into logical groups.
Understanding CIDR
Classless Inter-Domain Routing (CIDR) is a method for allocating IP addresses and routing. It uses a suffix (e.g., /24) to indicate the number of bits used for the network prefix, replacing the older class-based system.
Private vs Public IPs
Private IP addresses (RFC 1918) are used within local networks and are not routable on the internet. Public IP addresses are assigned by ISPs and are unique across the entire internet.
IPv4 vs IPv6
IPv4 uses 32-bit addresses (approx 4.3 billion addresses), while IPv6 uses 128-bit addresses (virtually infinite). IPv6 was developed to solve the IPv4 address exhaustion problem.
Subnet Masks
A subnet mask is a 32-bit number that masks an IP address and divides it into network address and host address. It distinguishes the network portion from the host portion of an IP address.
Broadcast Address
The last address in a subnet is reserved as the broadcast address. It allows sending data to all devices on that specific subnet simultaneously. It cannot be assigned to a specific host.
Frequently Asked Questions
What is a subnet? expand_more
What is CIDR notation? expand_more
How many usable hosts does a /24 subnet have? expand_more
What is the difference between subnet mask and wildcard mask? expand_more
Can I subnet IPv6 addresses? expand_more
Need Continuous Monitoring?
Free tools are great for spot checks. Set up automated monitoring for real-time alerts.
Free Related Tools
No account required — try them instantly
Ready to stop the downtime panic?
Join hundreds of developers who sleep better knowing AtomPing watches their stack.