Free network calculator

Free Number of Subnets Calculator Online

Compare an original and new IPv4 or IPv6 prefix to calculate equal subnet count and capacity, or find the smallest new prefix for a required number of subnets.

Enter an original and new prefix, or enter an original prefix plus the required subnet count. Required subnets take priority.

What Is a Number of Subnets Calculator?

A number of subnets calculator shows how many equal smaller networks can be created from a larger IPv4 or IPv6 prefix. Enter an original prefix and a longer new prefix to calculate the subnet count. You can also enter the number of subnets you require, and the calculator will find the smallest new prefix that supplies enough equal blocks.

The result from ipdnslookup includes borrowed bits, remaining host bits, addresses and usable hosts per subnet, IPv4 masks, capacity utilization, and nearby prefix choices. These details make the answer useful for real network planning rather than showing only one number.

How to Use the Number of Subnets Calculator

  1. Choose IPv4 or IPv6: Select the address version used by the parent network.
  2. Enter the original prefix: Type the existing network size, such as /16.
  3. Enter a new prefix: Type a longer prefix, such as /24, to calculate how many equal subnets it creates.
  4. Or enter required subnets: Leave the new prefix empty and enter the number of equal networks you need.
  5. Select Calculate Subnets: The calculator validates the prefixes and performs the bit calculation.
  6. Review capacity: Confirm the number of subnets and the host capacity inside each one.
  7. Compare nearby choices: Use the table to see the tradeoff between more subnets and fewer addresses per subnet.

When both a new prefix and a required count are present, the required count takes priority. Prefixes may be entered with or without the slash.

Example: divide a /16 into /24 subnets

Original prefix: /16

New prefix: /24

Borrowed bits: 24 - 16 = 8

Number of subnets: 28 = 256

IPv4 capacity per subnet: 256 total addresses and 254 traditionally usable hosts.

Example: find a prefix for 50 subnets

Starting with an IPv4 /16, six borrowed bits provide 64 subnets because 25 is only 32 and 26 is 64. The smallest suitable new prefix is /22. Each /22 contains 1,024 total addresses and 1,022 traditionally usable hosts.

Why Use Our Number of Subnets Calculator?

  • Two calculation modes: Compare two prefixes or size a prefix from a required subnet count.
  • IPv4 and IPv6 support: Use the correct 32-bit or 128-bit address width.
  • Complete capacity details: See subnet count, addresses per subnet, and usable hosts per subnet.
  • Special IPv4 rules: Receive correct capacity for /31 point-to-point networks and /32 host routes.
  • Mask conversion: Review the original mask, new subnet mask, and wildcard mask for IPv4.
  • Utilization: See how many extra subnet blocks remain after satisfying a requirement.
  • Nearby comparison: Check alternative prefix lengths without repeating the calculation.
  • No signup: Perform normal calculations immediately.

How the Subnet Count Calculation Works

A prefix tells you how many leading address bits identify a network. Moving from a shorter original prefix to a longer new prefix takes bits that were previously available to hosts and uses them to identify subnets. These are called borrowed bits.

Borrowed bits = new prefix - original prefix

Number of equal subnets = 2borrowed bits

Moving from /16 to /20 borrows four bits, so it creates 16 equal subnets. Moving from /16 to /24 borrows eight bits, so it creates 256 equal subnets. A new prefix cannot be shorter than the original prefix when the goal is to divide the original block.

The remaining host bits determine the size of every new subnet. IPv4 has 32 bits, while IPv6 has 128 bits. For an IPv4 /24, eight bits remain and create 256 total addresses. For IPv6 /64, 64 bits remain and create 18,446,744,073,709,551,616 mathematical addresses.

Finding a New Prefix from Required Subnets

Subnet counts must be powers of two when one prefix is divided into equal CIDR blocks. If you request a number that is not a power of two, the calculator rounds capacity upward to the next available power.

For example, a requirement for 20 equal subnets needs five borrowed bits. Four bits provide only 16, while five bits provide 32. Starting with /16, adding five bits gives /21. Twelve subnet blocks remain unused after allocating 20.

Unused blocks are not necessarily wasted. They can support growth, testing, disaster recovery, or future departments. However, a much larger count than needed can reduce host capacity inside every subnet. Review both sides of the result before choosing the prefix.

Understanding Your Subnet Calculation Results

  • Original Prefix: The larger parent network before division.
  • New Prefix: The equal child-network size after division.
  • Borrowed Bits: Bits moved from host space into the subnet identifier.
  • Remaining Host Bits: Bits still available for addresses inside each child subnet.
  • Number of Subnets: The count of equal child blocks created.
  • Addresses per Subnet: Every mathematical address in one child block.
  • Usable Hosts per Subnet: Capacity after the calculator applies the relevant address rules.
  • Unused Subnets: Extra blocks left after a requested count is met.
  • Subnet Utilization: Required subnets divided by available subnets.
  • Masks: Dotted-decimal and wildcard forms of IPv4 prefixes.

IPv4 Usable Host Rules

Traditional IPv4 subnets from /0 through /30 reserve the first address as the network identifier and the final address as the directed broadcast address. The usual usable count is therefore two less than the total address count.

RFC 3021 allows both addresses in an IPv4 /31 on a point-to-point link. A /32 represents one host route. Some cloud providers reserve additional values inside every subnet, so always compare the mathematical result with the platform's own documentation.

IPv6 Subnet Planning

IPv6 uses the same prefix arithmetic but has no IPv4-style broadcast address. The IPv6 addressing architecture defines 128-bit addresses. Many normal IPv6 LAN designs use /64 child networks, even though each /64 has an extremely large mathematical capacity.

Suppose an organization receives an IPv6 /48 and creates /64 networks. Sixteen bits are borrowed, producing 65,536 equal /64 subnets. The important result is normally the number of separate networks, not the huge number of addresses inside each /64.

Common Uses for a Number of Subnets Calculator

  • Department planning: Create separate networks for teams, offices, or floors.
  • VLAN design: Estimate how many equal VLAN address blocks a parent prefix can support.
  • Cloud architecture: Divide a virtual network while checking provider-specific reservations separately.
  • Security zones: Plan distinct blocks for users, servers, guests, management, and devices.
  • Branch networks: Allocate repeatable subnet sizes to multiple sites.
  • IPv6 allocation: Measure how many /64 networks fit inside a delegated IPv6 prefix.
  • Subnetting study: Connect borrowed bits, powers of two, masks, and host capacity.

Common Subnet Planning Mistakes

  • Ignoring host capacity: More subnets always means fewer addresses in each equal subnet.
  • Expecting any exact count: Equal CIDR subnet counts grow in powers of two.
  • Using a shorter new prefix: That combines networks instead of dividing the parent block.
  • Forgetting platform reservations: Cloud services can reserve more IPv4 addresses than ordinary subnet math.
  • Planning only for today: Leave reasonable room for devices, services, and additional network zones.
  • Mixing IPv4 and IPv6 assumptions: The address widths and broadcast rules differ.

Frequently Asked Questions

How many /24 subnets fit inside a /16?

Eight bits are borrowed, so 28, or 256, equal /24 subnets fit inside a /16.

How many subnets does one borrowed bit create?

One borrowed bit creates two equal subnets.

Can the calculator create exactly 50 equal subnets?

CIDR division creates powers of two. The smallest capacity meeting 50 is 64 equal subnets.

Does a larger prefix mean a smaller network?

Yes. A longer prefix leaves fewer host bits and therefore fewer addresses per network.

Can the original and new prefix be equal?

Yes. Zero borrowed bits means the original block remains one subnet.

Does IPv6 subnet counting use the same formula?

Yes. The subnet count is still two raised to the number of borrowed bits, but IPv6 has 128 total bits.

Should every network use equal-sized subnets?

No. Variable Length Subnet Masking can assign different sizes when requirements vary. This calculator focuses on equal divisions.

Related IP Address Calculators

Use the Number of Hosts Calculator to size one subnet from a device requirement. Use the Subnet Mask Calculator for mask conversion and the Usable IP Range Calculator for exact boundaries. Browse all published calculators from ipdnslookup.