You're setting up a corporate network and need to divide your 192.168.0.0/22 block into smaller subnets for different departments. You know a /22 gives you roughly 1000 addresses, but how many do you actually get per subnet if you split it? And which addresses are usable, which are broadcast addresses, and which are reserved? Subnetting is foundational to network design, but the math is arcane: binary conversion, bit shifting, and careful address planning. This calculator eliminates the manual work and helps you design efficient networks without errors.
What This Calculator Does
This tool takes a network address and CIDR notation (e.g., 192.168.1.0/24) and instantly calculates the subnet mask, network address, broadcast address, and the range of usable host addresses. It also tells you how many hosts fit on the network. If you're dividing a larger block into subnets, this calculator helps you plan the division, showing you where each subnet starts and ends. For network administrators, engineers, and IT professionals, this is essential for IP planning, VLAN assignment, and firewall configuration.
How to Use This Calculator
Enter a network address (e.g., 192.168.1.0, 10.0.0.0, or 172.16.0.0) and a prefix length, also called CIDR notation (the "/24" in 192.168.1.0/24). CIDR notation specifies how many of the 32 bits in an IPv4 address are the network portion; the remaining bits are for hosts.
The calculator returns:
For example, 192.168.1.0/24 gives you 254 usable addresses (256 total minus network and broadcast). If you need to subnet further, the calculator helps you plan the breakdown.
The Formula Behind the Math
IPv4 addresses are 32 bits. CIDR notation divides them: the first N bits are the network portion, the remaining (32 β N) bits are the host portion. The total number of addresses on a network is 2 raised to the power of host bits:
Total addresses = 2^(32 β CIDR)
Usable addresses subtract the network address (all host bits = 0) and broadcast address (all host bits = 1):
Usable addresses = 2^(32 β CIDR) β 2
The subnet mask is a 32-bit number where network bits are 1 and host bits are 0. For CIDR /24:
Let's work through an example: 10.0.0.0/22.
To subnet further, split the host bits. A /22 can become four /24 networks:
Our calculator does all of this instantly-but now you understand exactly what it's computing.
Use Case 1: Enterprise Network Design
A large corporation owns 10.0.0.0/8 (16 million addresses). Different departments need subnets:
This calculator helps the network architect plan the allocation, ensuring no overlap and efficient address usage. Each department can expand within its subnet without impacting others.
Use Case 2: Cloud Infrastructure and VPCs
Cloud providers (AWS, Azure, Google Cloud) assign VPC address spaces as CIDR blocks. A startup might allocate 172.31.0.0/16 (65,534 hosts) to a VPC, then subnet it:
This calculator helps plan the subnet breakdown, ensuring you have enough addresses per subnet for growth while keeping subnets logically separated.
Use Case 3: Small Business and Home Networks
A small office with 50 employees uses 192.168.10.0/24 (254 hosts). This gives them plenty of headroom. If they expand to 300 employees, they upgrade to 192.168.10.0/22 (1,022 hosts). This calculator helps them plan the expansion without disrupting existing infrastructure by showing how to subdivide or migrate cleanly.
Tips and Things to Watch Out For
Private IP Address Ranges Are Reserved
Never use public IP addresses for internal networks. Use private ranges: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. The first offers 16 million addresses, perfect for large enterprises. The second offers 1 million, suitable for mid-size organizations. The third offers 65,000, adequate for small offices. Routers on the public internet ignore these ranges, so conflicts don't expose your internal traffic.
Broadcast Addresses Cannot Be Assigned to Hosts
The broadcast address (all host bits = 1) is reserved for sending to all hosts on the subnet simultaneously. Never assign it to a device. Similarly, the network address (all host bits = 0) is reserved. These two addresses are automatically excluded from usable range, reducing your host count by 2 per subnet.
/31 and /32 Are Special Cases
A /31 subnet has 2 total addresses, 0 usable by standard rules. However, RFC 3021 allows /31 for point-to-point links (router-to-router), giving exactly 2 usable addresses. A /32 is a host route, specifying a single address. These are edge cases; use them only if you understand the implications.
Overlapping Subnets Cause Routing Conflicts
If two subnets overlap (e.g., 192.168.1.0/24 and 192.168.1.128/25), routers can't decide which interface to use for addresses in the overlap. Always verify that your subnets don't overlap. A subnet planner helps prevent this.
CIDR Boundaries Don't Always Align with Octets
A /25 subnet boundary falls in the middle of an octet, making binary math necessary. For example, 192.168.1.0/25 covers 192.168.1.0β192.168.1.127; the next /25 is 192.168.1.128β192.168.1.255. This is why a calculator is worth its weight-manual calculation is error-prone.
IPv6 Uses Longer Addresses and Longer CIDR Notation
IPv6 addresses are 128 bits, so CIDR notation goes from /0 to /128. A /64 IPv6 subnet is standard (64 bits = 18 quintillion addresses). This calculator focuses on IPv4; IPv6 subnetting follows the same principles but with much larger numbers.
Frequently Asked Questions
What CIDR prefix do I need for 250 hosts?
You need at least 8 host bits (2^8 = 256 addresses, 254 usable). That's a /24 prefix (32 β 8 = 24). A /25 would be too small (126 usable). A /23 would be oversized (510 usable) but acceptable if you plan for growth.
How do I calculate the next available subnet?
If you have 10.1.0.0/24, the next /24 subnet is 10.1.1.0/24 (increment the third octet). For /25 subnets within 10.1.0.0/24, they are 10.1.0.0/25 and 10.1.0.128/25. Use a calculator to determine subnet boundaries, especially for non-octet-aligned prefixes.
Can I use 192.168.1.255 as a host address?
No. 192.168.1.255 is the broadcast address for the 192.168.1.0/24 subnet. It's reserved. You can only assign 192.168.1.1 through 192.168.1.254. If you need 255 addresses, you need a /23 subnet (512 addresses, 510 usable).
What's the difference between /24 and 255.255.255.0?
They're identical. /24 is CIDR notation (24 bits for network). 255.255.255.0 is the subnet mask in dotted decimal. Both specify the same thing: 256 addresses per subnet, 254 usable. Use CIDR notation in modern networking; it's clearer.
Why does my router show 192.168.1.0/24 but I can't ping 192.168.1.0?
Because 192.168.1.0 is the network address, reserved for identifying the subnet itself. It's not assigned to any device and doesn't respond to ping. Similarly, 192.168.1.255 (broadcast) won't respond. Ping usable addresses like 192.168.1.1 through 192.168.1.254.
How do I know if two devices are on the same subnet?
Apply the subnet mask to both IP addresses. If the result is identical, they're on the same subnet. For example, 192.168.1.50 and 192.168.1.100 both AND with 255.255.255.0 yield 192.168.1.0βsame subnet. But 192.168.1.50 and 192.168.2.100 yield different results-different subnets.
Can I use a /32 subnet?
Technically yes, but it represents a single host, not a subnet. Use /32 for specific host routes (routing policy) or loopback addresses, not for assigning addresses on a network segment. A /31 is the smallest practical subnet (2 addresses, both usable via RFC 3021).
Related Calculators
For understanding network bandwidth and congestion between subnets, check our Bandwidth Calculator to estimate traffic loads. Our Download Time Calculator helps estimate how long bulk data transfers take across networks. Our Data Transfer Speed Calculator provides detailed transfer time analysis for large files moving between subnets.