How to Use This Calculator
-
Step 1: Enter Your IP Address
Type in your IPv4 address (e.g., 192.168.1.1). You can also click "Use My IP" to automatically fetch your current public IP. This tool works with private addresses (10.0.0.0, 192.168.0.0, 172.16.0.0) and public addresses.
-
Step 2: Choose Subnet Mask or CIDR Prefix
Enter either a standard subnet mask (like 255.255.255.0) or a CIDR notation (like /24). The calculator will instantly sync both fields. Use the quick presets for common networks like /24 (254 hosts) or /8 (16M+ hosts).
-
Step 3: View Your Results & Split Subnets
Click "Calculate Subnet" to see your network address, broadcast address, and the complete usable host range. Use the Subnet Splitter to divide your network into smaller equal subnets instantly.
Understanding Your Results
Network and Broadcast Address
The network address identifies the specific subnet itself and is always the very first IP in the range. The broadcast address is the final IP in the range and is used to send data to all devices simultaneously. Neither of these can be assigned to a computer or device.
Usable Hosts Explained
This represents the actual number of IP addresses available to assign to your devices (computers, routers, servers). It is always the total number of IPs in the subnet minus two (the network and broadcast addresses). For example, a /24 subnet has 256 total addresses but only 254 usable hosts.
Wildcard Mask
The inverse of the subnet mask, heavily used in Access Control Lists (ACLs) and routing protocols like OSPF. It tells network equipment which bits of the IP address to match or ignore. Understanding wildcard masks is essential for configuring router access lists.
Binary Visual Breakdown
The visual binary representation shows how your IP address and subnet mask are split into network bits (blue) and host bits (orange). This visual helps you understand CIDR notation and how subnetting divides the address space.
What Is Subnetting?
Subnetting is the practice of dividing a large computer network into smaller, more efficient networks (subnets). By splitting a network, you improve performance by reducing broadcast traffic and enhance security by isolating sensitive systems. A subnet mask or CIDR notation determines exactly where the split happens, effectively creating a boundary between the network portion and the host portion of an IP address.
Real-World Subnetting Use Cases
Network Administrators: Subnetting is essential for managing corporate networks, configuring VLANs, and setting up network security policies.
AWS/Azure Cloud Engineers: Cloud professionals use CIDR calculators daily when setting up VPCs, subnets, and security groups. For example, understanding /24 vs /25 affects instance placement and scaling.
Home Lab & DevOps: Enthusiasts creating home labs for learning or testing use subnet calculators to optimize network segments and prevent address conflicts.
IT Students & Certification Prep: Network+ and CISSP candidates rely on inline CIDR calculators to master subnetting for exams and real-world scenarios.
Common Subnet Cheat Sheet
| CIDR | Subnet Mask | Usable Hosts | Wildcard Mask | Common Use Case |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | 0.255.255.255 | Large ISP Networks |
| /16 | 255.255.0.0 | 65,534 | 0.0.255.255 | Enterprise Networks |
| /24 | 255.255.255.0 | 254 | 0.0.0.255 | Small Businesses, Homes |
| /25 | 255.255.255.128 | 126 | 0.0.0.127 | Department Networks |
| /26 | 255.255.255.192 | 62 | 0.0.0.63 | VPC Subnets, Cloud |
| /27 | 255.255.255.224 | 30 | 0.0.0.31 | Small Departments |
| /28 | 255.255.255.240 | 14 | 0.0.0.15 | Lab Networks |
| /29 | 255.255.255.248 | 6 | 0.0.0.7 | Building/Floor Segments |
| /30 | 255.255.255.252 | 2 | 0.0.0.3 | Router-to-Router Links |
Frequently Asked Questions
A subnet mask is a 32-bit number that divides an IP address into network and host portions. Common examples include 255.255.255.0 (/24) which allows 254 usable hosts.
A /24 subnet has 256 total addresses, with 254 usable host addresses. The first address is the network address and the last is the broadcast address.
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its subnet mask as a single value, such as 192.168.1.0/24, where /24 means the first 24 bits are the network portion.
The network address is the first address in a subnet and identifies the network itself. The broadcast address is the last address and is used to send data to all hosts in the subnet. Neither can be assigned to a device—only addresses between them are usable.
Use this calculator's Subnet Splitter feature. Enter your parent subnet, select how many subnets you want to create (2, 4, 8, 16, etc.), and the tool will automatically calculate new CIDR prefixes and network ranges. Splitting a /24 into 4 parts creates four /26 subnets.
A /32 subnet represents a single IP address (host route). Used in routing tables, host routes, and microservices networking. All 32 bits are network bits, leaving 0 bits for hosts. Example: 192.168.1.5/32 means only that one IP address.
A wildcard mask is the inverse of a subnet mask—it tells networking equipment which bits to match and ignore. Heavily used in Access Control Lists (ACLs), OSPF, and BGP configurations. For /24 (255.255.255.0), the wildcard is 0.0.0.255.
In classful addressing, no—.0 is network and .255 is broadcast. However, /31 (RFC 3021) point-to-point links and /32 (single hosts) have different rules. Modern setups allow using all addresses except network and broadcast in most cases.
A valid subnet mask must have contiguous 1s followed by contiguous 0s in binary. For example, 255.255.255.0 is valid, but 255.255.255.128 or 255.255.254.255 are invalid. Check that your mask has no gaps in the binary representation.
How to Split Subnets into Smaller Networks
Subnet splitting divides a large network into multiple equal-sized subnetworks, each with its own network and broadcast address. This is essential for network organization, security, and resource allocation in enterprise environments and cloud infrastructure.
Step-by-Step Subnet Splitting Process
- Determine your parent subnet: Start with your current network (e.g., 192.168.1.0/24). This is your starting point.
- Decide the number of subnets needed: Choose how many equal subnets you want (2, 4, 8, 16, 32, 64, 128, or 256). Each doubles the number of subnets.
- Calculate the new CIDR prefix: For each doubling, add 1 to the prefix. Splitting a /24 into 4 subnets = /26. Formula: New CIDR = Original CIDR + log₂(subnet count).
- Find each subnet's network address: The calculator automatically displays all network addresses. Each subnet starts at the network address.
- Allocate usable host ranges: Each subnet's usable IPs go from (network + 1) to (broadcast - 1). Assign to devices, servers, and IoT endpoints.
- Document the subnetting plan: Save or bookmark the URL for future reference. Share subnet assignments with your network team.
Common Subnet Splitting Examples
Example 1 - Split /24 into 4 subnets: 192.168.1.0/24 becomes four /26 subnets: 192.168.1.0/26, 192.168.1.64/26, 192.168.1.128/26, 192.168.1.192/26. Each /26 has 62 usable hosts.
Example 2 - Split /16 into 256 subnets: 192.168.0.0/16 becomes 256 /24 subnets (192.168.0.0/24 through 192.168.255.0/24). Perfect for large organizations with many departments.
Example 3 - Split /25 into 2 subnets: 172.16.0.0/25 becomes two /26 subnets with 62 usable addresses each. Use for redundancy or failover scenarios.
Troubleshooting & Common Errors
Invalid Subnet Mask Error
If you see "Invalid subnet mask," your mask doesn't have a valid contiguous pattern of 1s followed by 0s in binary. Valid examples: 255.255.255.0 (/24), 255.255.255.128 (/25), 255.255.0.0 (/16). Invalid examples: 255.255.254.255 (gaps in bits), 255.0.255.0 (non-contiguous). A valid subnet mask must follow this binary pattern: 1111...1000 with no interruptions.
Unexpected Number of Hosts
Remember: usable hosts = total addresses - 2 (network + broadcast). A /25 has 128 total addresses but only 126 usable. For point-to-point links (/31), all 2 addresses are usable. For single hosts (/32), there's 1 usable address.
Subnet Splitting Limits
You cannot split a subnet beyond /32. If the calculated CIDR exceeds /32, the calculator will alert you. For example, you can split a /24 into 256 subnets (/32 each), but not 512. Plan your subnetting hierarchy accordingly.
Private vs Public IP Addresses
This calculator works with both private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and public IP ranges. Private ranges cannot be routed on the internet, while public ranges can. Check your IP classification under "IP Type" in results (Private, Public, Loopback, etc.).
CIDR Notation in URL
This calculator auto-generates shareable URLs. If you see ?ip=192.168.1.0&cidr=24 in the address bar, that's by design—you can bookmark or share this link to preserve your calculations. The CIDR number represents the number of network bits.
About the Developer & Methodology
Hi, I'm Saim S., an independent developer dedicated to building fast, evidence-based, and privacy-first tools. This IP Subnet Calculator utilizes standard IPv4 networking protocols and bitwise operations to guarantee 100% mathematical accuracy for CIDR prefix routing and subnet splitting.
Data Privacy: All calculations happen securely in your browser. No IP addresses or networking data are ever saved, tracked, or transmitted to our servers.