Subnet Splitter (N Equal Subnets)
Split a subnet into N equal-sized subnets
Generated Subnets
| # | Subnet CIDR | |
|---|---|---|
| 1 | 10.0.0.0/18 | |
| 2 | 10.0.64.0/18 | |
| 3 | 10.0.128.0/18 | |
| 4 | 10.0.192.0/18 |
The Subnet Splitter (N Equal Subnets) divides a subnet into a specified number of equal-sized smaller subnets. Enter a source CIDR like 10.1.0.0/22 and a count like 6, and the tool determines the optimal prefix length automatically -- producing 8 /25 subnets (the next power of two above 6) with 126 usable hosts each. Ideal when you know the number of network segments required but not the subnetting math.
Understanding N-Way Subnet Splitting
In many real-world scenarios, the starting point for subnet design is not a prefix length but a count: "I need subnets for 6 branch offices," or "I need to create separate segments for 4 availability zones." Translating that count into the correct prefix length requires understanding that subnets must align to power-of-two boundaries, and the math is not always obvious. Requesting 6 subnets does not give you exactly 6 -- it gives you 8, because 8 is the smallest power of two that is greater than or equal to 6.
This power-of-two constraint exists because each additional bit in the prefix length exactly doubles the number of subnets. Adding 1 bit gives 2 subnets, 2 bits gives 4, 3 bits gives 8, and so on. There is no bit position that gives you exactly 6 subnets. The practical implication is that you often end up with more subnets than you asked for, and those extra subnets are not wasted -- they provide ready-made address space for future growth. When you request 6 subnets for branch offices and get 8, you have 2 spare subnets available for the next offices you open, without needing to redesign your address plan.
The tradeoff between subnet count and hosts per subnet is direct and unavoidable. Every time you double the number of subnets, you halve the number of hosts in each. From a /24 with 254 usable hosts, splitting into 2 subnets gives you 126 hosts each, into 4 gives 62 each, into 8 gives 30 each. At some point, the per-subnet host count drops below what you need, and you either have to start with a larger source block or accept fewer subnets. This tool shows you exactly where that tradeoff falls.
How to Split a Subnet into N Equal Parts
- Enter the source CIDR block (e.g.,
10.0.0.0/16). - Enter the number of subnets you need (e.g.,
6). - The tool calculates the smallest prefix length that provides at least that many subnets.
- All resulting subnets are listed with their network addresses, broadcast addresses, and usable host counts.
Because subnets must align to power-of-two boundaries, you may receive more subnets than requested. Requesting 6 subnets yields 8 (the next power of two), with 2 extra subnets available for future growth.
N Equal Subnets Examples
Splitting a /24 for 3 departments
Source: 192.168.10.0/24, requested: 3 subnets
The next power of two >= 3 is 4, requiring a /26 prefix:
| Subnet | Network | Usable Range | Usable Hosts |
|---|---|---|---|
192.168.10.0/26 | 192.168.10.0 | .1 -- .62 | 62 |
192.168.10.64/26 | 192.168.10.64 | .65 -- .126 | 62 |
192.168.10.128/26 | 192.168.10.128 | .129 -- .190 | 62 |
192.168.10.192/26 | 192.168.10.192 | .193 -- .254 | 62 |
You requested 3, you get 4. The fourth subnet can be reserved for future expansion.
Common N-to-prefix mappings
| Requested Subnets | Actual Subnets | Additional Prefix Bits | Example: /16 becomes |
|---|---|---|---|
| 2 | 2 | +1 | /17 |
| 3-4 | 4 | +2 | /18 |
| 5-8 | 8 | +3 | /19 |
| 9-16 | 16 | +4 | /20 |
| 17-32 | 32 | +5 | /21 |
| 33-64 | 64 | +6 | /22 |
| 65-128 | 128 | +7 | /23 |
| 129-256 | 256 | +8 | /24 |
Office network example
A company has a 10.1.0.0/22 block (1,024 addresses) and needs subnets for 6 branch offices:
Requested: 6 subnets
Next power of two: 8
Required prefix: /22 + 3 bits = /25
Addresses per subnet: 128 (126 usable)
10.1.0.0/25 Branch 1 (126 hosts)
10.1.0.128/25 Branch 2 (126 hosts)
10.1.1.0/25 Branch 3 (126 hosts)
10.1.1.128/25 Branch 4 (126 hosts)
10.1.2.0/25 Branch 5 (126 hosts)
10.1.2.128/25 Branch 6 (126 hosts)
10.1.3.0/25 (spare) (126 hosts)
10.1.3.128/25 (spare) (126 hosts)
The 2 spare subnets accommodate future office openings without requiring re-addressing.
When to Use N Equal Subnets Splitting
- Branch office allocation -- "we have 12 branches and need a subnet for each" is a natural way to think about the problem.
- VLAN planning -- split a campus block into a known number of VLANs without manually computing the prefix length.
- Kubernetes pod networks -- divide a pod CIDR into subnets for a known number of nodes.
- Availability zone distribution -- split a VPC CIDR across 3 or 4 availability zones in AWS, Azure, or GCP.
- Classroom lab exercises -- give each student or team their own subnet from a shared block.
How N Equal Subnets Splitting Works
The power-of-two constraint
The number of equal subnets created from a CIDR block must be a power of two (1, 2, 4, 8, 16, ...). This constraint exists because each additional prefix bit exactly doubles the number of subnets:
Additional bits = ceil(log2(N))
Actual subnets = 2^(additional bits)
Target prefix = source prefix + additional bits
For 6 requested subnets:
ceil(log2(6)) = ceil(2.585) = 3
Actual subnets = 2^3 = 8
Target prefix = source + 3
Maximum subnets from a source block
The maximum number of subnets is limited by the address family:
- IPv4: maximum target prefix is
/32, so maximum subnets from a/Nsource is2^(32-N) - IPv6: maximum target prefix is
/128, so maximum subnets from a/Nsource is2^(128-N)
For practical purposes, a /24 can produce at most 256 /32 routes (individual host addresses) -- though subnets smaller than /30 have zero usable hosts for standard addressing.
Relationship between subnets and hosts
There is a direct tradeoff between the number of subnets and hosts per subnet. From a /24 (256 total addresses):
| Subnets | Prefix | Hosts per Subnet | Total Usable Hosts |
|---|---|---|---|
| 2 | /25 | 126 | 252 |
| 4 | /26 | 62 | 248 |
| 8 | /27 | 30 | 240 |
| 16 | /28 | 14 | 224 |
| 32 | /29 | 6 | 192 |
| 64 | /30 | 2 | 128 |
More subnets means fewer hosts each, with increasing address waste due to network and broadcast addresses consumed per subnet.
Planning with N Equal Subnets
When using this tool for capacity planning, always think about both your current needs and your growth trajectory. If you have 6 branch offices today, ask yourself how many you might have in 2-3 years. If the answer is 10, you should be planning for at least 16 subnets (the next power of two above 10), not 8. Starting with a larger source block or requesting more subnets upfront avoids the painful process of renumbering later.
The "extra" subnets you get from the power-of-two rounding are a feature, not a bug. Seasoned network engineers treat them as pre-provisioned growth space. Label them as "reserved" in your documentation and they become instantly available when a new office opens, a new VLAN is needed, or a project requires an isolated network segment. The alternative -- having no spare subnets -- means your next allocation requires either expanding the source block (which may conflict with adjacent allocations) or restructuring the entire subnet plan.
One common mistake is splitting a block into the maximum possible number of subnets just because you can. Splitting a /24 into 128 /31 subnets makes mathematical sense but is rarely useful outside of point-to-point link pools. Think about the realistic host count per subnet and verify that the resulting subnets are large enough to be useful. The "Total Usable Hosts" column in the results is the key number to check.
Frequently Asked Questions
Why can't I get exactly 5 subnets? Subnets are defined by binary prefix lengths, which means subnet counts must be powers of two. Requesting 5 gives you 8 subnets (the smallest power of two that is >= 5). The 3 extra subnets can be reserved for growth or left unassigned.
What if I need subnets of different sizes? This tool creates equal-sized subnets only. For different-sized subnets (e.g., 100 hosts for one department and 20 for another), use the VLSM Calculator or the Subnet Splitter (Target Host Count).
Can I split into more subnets than addresses?
No. You cannot create 1,000 subnets from a /24 because there are only 256 addresses. The tool validates that the requested count is achievable given the source block size.
How do I know if the subnet size is big enough for my hosts? Check the usable hosts column in the results. If each subnet provides fewer hosts than you need, you either need a larger source block or fewer subnets. The Subnet Splitter (Target Host Count) lets you specify host requirements directly.
What happens to the extra subnets I did not request? They exist in the address space whether you use them or not. Best practice is to document them as "reserved" so they are not accidentally allocated for a different purpose. They are ready to use whenever you need additional subnets.
Can I split IPv6 blocks using this tool?
Yes. The same power-of-two logic applies to IPv6, just with 128-bit addresses. Splitting a /48 into 4 subnets produces four /50 subnets, each with an enormous number of addresses.
Related Tools
- Subnet Splitter (/x to /y) - Split a subnet into smaller subnets of a specific prefix length
- Subnet Splitter (Target Host Count) - Split a subnet based on required hosts per subnet
- VLSM Calculator - Calculate variable-length subnet masks from host requirements
- Subnet Allocation Planner - Plan subnet allocations to fit requested blocks
- Total Hosts Calculator - Calculate total number of addresses in a subnet