IP Address Subnetting Calculator

Plan IPv4 and IPv6 networks, split subnets, build VLSM layouts, compare ranges, generate exports, and understand every address with clear results and practical guidance.

Current result

Choose a mode and calculate a network.

StatusReady
ProtocolsIPv4 and IPv6
StorageLocal browser
Version1.0.0
Calculate boundaries, usable hosts, masks, classification, reverse DNS, binary bits, DHCP suggestions, and configuration examples.
Example: 192.168.1.25
Controls binary bit colors.
Expand, compress, classify, split, and inspect IPv6 prefixes using exact BigInt arithmetic.
Divide one IPv4 parent network into equal subnets by count, prefix, or required host capacity.
Allocate unequal subnets from largest to smallest while preventing overlap and preserving remaining address space.
Name, Required hosts, VLAN ID, Location, Growth percent.
Convert address ranges into exact CIDR blocks or find the minimum covering prefix.
Summarize multiple IPv4 networks into the smallest covering route and identify extra covered space.
Check whether an IPv4 or IPv6 address belongs to a supplied subnet.
Compare two IPv4 networks for overlap, containment, adjacency, gaps, and possible merging.
Convert IPv4, binary, hexadecimal, CIDR prefixes, subnet masks, wildcard masks, and IPv6 notation.
Browse complete IPv4 prefix values and common IPv6 allocation sizes.
Plan a DHCP pool while reserving gateway, infrastructure, static, and exclusion ranges.
Process pasted IPv4 or IPv6 CIDR lists, validate rows, classify addresses, and detect duplicates or overlaps.

Recent calculations

History stays in this browser.

No calculations saved yet.

Example data

Test common subnetting scenarios.

ScenarioInputExpected focus
Home LAN192.168.1.25/24Network, broadcast, host range
Large private subnet10.10.4.17/204096 addresses and boundaries
Mask input172.16.50.10 / 255.255.255.192Prefix and wildcard conversion
Equal division192.168.10.0/24 into eightEight /27 subnets
VLSM plan10.0.0.0/16Unequal department networks
IPv6 hierarchy2001:db8:1234::/48 to /6465,536 possible /64 networks

Formula used

These formulas explain the results.

IPv4 addresses = 2^(32 − prefix length)
Traditional usable hosts = 2^(host bits) − 2
Equal subnets = 2^(new prefix − parent prefix)
Block size = 2^(32 − prefix length)
Wildcard mask = 255.255.255.255 − subnet mask
IPv6 addresses = 2^(128 − prefix length)
Traditional host rules do not apply unchanged to /31, /32, IPv6 /127, IPv6 /128, or special address types.

How to use this calculator

Follow this workflow for each task.

  1. Select the mode matching your task.
  2. Enter an address, prefix, or network range.
  3. Choose planning limits and growth allowances.
  4. Calculate and review every warning.
  5. Inspect tables, maps, binary bits, and configuration.
  6. Download CSV, PDF, JSON, or text results.

Understanding IP subnet planning

Subnetting divides a larger network into smaller address blocks. Each block receives a network prefix. The prefix identifies fixed network bits. Remaining bits identify addresses inside that block.

IPv4 uses thirty-two binary bits. A /24 fixes twenty-four bits. Eight bits remain for addresses. That creates 256 total addresses. Traditional networks reserve the first address. They also reserve the last broadcast address.

Modern point-to-point links can use /31 networks. Both addresses remain usable. A /32 identifies one specific IPv4 address. IPv6 uses similar prefix notation. However, IPv6 does not use broadcast addresses.

Choose equal subnetting or VLSM

Equal subnetting creates blocks with identical sizes. It works well for similar sites. VLSM creates different sizes for different needs. It reduces waste when departments have unequal device counts.

A good VLSM plan starts with the largest requirement. It then selects the smallest suitable prefix. Growth allowances should be included before allocation. This prevents immediate renumbering when a network expands.

Check overlap before deployment

Overlapping subnets create routing ambiguity. They may also break VPN connections. Compare every planned range before applying router changes. Duplicate networks need immediate attention.

Route summarization reduces routing table entries. A summary must cover contiguous binary prefixes. A broad summary can include unwanted networks. Always review extra covered space before advertising it.

Plan IPv6 hierarchies carefully

IPv6 offers enormous address capacity. Organizations should still create structured plans. Common allocations include /48, /56, and /60 blocks. Local networks commonly use /64 prefixes.

IPv6 /127 networks suit point-to-point links. A /128 identifies one interface. Reverse DNS uses hexadecimal nibbles. Clean nibble boundaries simplify delegation and documentation.

Document operational details

A subnet plan should record purpose, VLAN, gateway, DHCP pool, static range, and location. Documentation also needs ownership and change history. Exported tables make reviews easier.

Generated configuration snippets are starting points. Device syntax varies by software release. Review every command before production use. Careful planning prevents outages and confusing assignments.

Frequently asked questions

Common subnetting questions.

What is a CIDR prefix?

It states how many leading bits identify the network.

Why are two IPv4 addresses often reserved?

Traditional subnets reserve network and broadcast addresses. /31 is different.

Does IPv6 have broadcast addresses?

No. IPv6 uses multicast and other mechanisms instead.

What does VLSM improve?

It assigns different sizes and reduces wasted addresses.

How can I detect overlap?

Ranges overlap whenever their first and last boundaries intersect.

What is a wildcard mask?

It inverts a subnet mask for matching rules.

Can this process IPv6?

Yes. It expands, classifies, splits, and compares IPv6.

Are generated commands production-ready?

No. Validate interfaces, policy, syntax, and software versions.

Related Calculators

Average Calculator StatisticsGeometric Mean CalculatorInter Quartile Range CalculatorLower Quartile CalculatorMaximum CalculatorMean Calculator StatisticsMedian Calculator StatisticsMidhinge Calculator StatisticsMid Range Calculator StatisticsMode Calculator Statistics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.