Tools / Subnet calculators
Subnet Calculator
Divide a network into equal subnets and list each one with its usable range.
How subnetting works
Subnetting borrows bits from the host part of an address and uses them to number smaller networks. Splitting 10.0.0.0/22 into /24 networks borrows two bits, giving 2² = 4 subnets of 256 addresses each: 10.0.0.0/24, 10.0.1.0/24, 10.0.2.0/24 and 10.0.3.0/24.
Planning tips
- Size for growth. Renumbering later is far more work than leaving spare addresses now.
- Keep boundaries tidy. Subnets that start on octet boundaries (/8, /16, /24) are easier to read in logs and firewall rules.
- Use /31 for router-to-router links on IPv4, and a /64 per LAN on IPv6 even when it holds only a few devices.
Questions and answers
How do I choose the new prefix length?
Each bit you add to the prefix doubles the number of subnets and halves their size. To get at least N subnets, add enough bits that 2 to that power is N or more: 4 subnets need 2 extra bits, so a /24 becomes four /26 networks. To fit H hosts per IPv4 subnet, the subnet needs at least H + 2 addresses.
Can subnets be different sizes?
Yes, that is variable-length subnet masking (VLSM). This tool makes equal-size subnets. For unequal sizes, split the network once, then split one of the resulting subnets again.
Why does the list stop at 256 subnets?
A large split can produce millions of subnets. The tool reports the exact total and lists the first 256; every further subnet follows the same step.