b2KIT

Network Calculator

Calculate network details including wildcard masks, supernetting, VLSM subnetting, and address allocation planning.

Tested tool guide Tested browser tools Checked August 16, 2026

What Network Calculator does, with a checked example

Network Calculator converts IPv4 CIDR input into the boundaries and masks needed to size or combine networks. It reports network and broadcast endpoints, subnet and wildcard masks, address capacity, and the usable range. Its planning functions cover supernets and VLSM allocations for different host requirements. A wildcard mask is the bitwise inverse of the subnet mask, not another notation for the same mask. A summarized supernet can also cover addresses beyond the original networks when they do not form one exact aligned block. Network plans stay in the browser, so private addressing is not uploaded.

Worked example

A concrete input and expected output from the current implementation.

Input

192.168.10.0/26

Expected output

Network: 192.168.10.0/26
Subnet mask: 255.255.255.192
Wildcard mask: 0.0.0.63
Broadcast: 192.168.10.63
Usable range: 192.168.10.1 - 192.168.10.62
Total addresses: 64
Usable hosts: 62

A /26 prefix leaves 6 host bits, producing 2^6 = 64 addresses from .0 through .63. Excluding the network and broadcast endpoints leaves 62 conventional host addresses; the final mask octet of 192 has the wildcard complement 63.

How the result is produced

1

cidr boundary calculation

For an IPv4 /n prefix, n high-order bits identify the network and 32-n bits identify positions inside it. The subnet mask has ones in the prefix positions, while the wildcard has ones in the remaining positions. Clearing all host bits yields the network endpoint; setting them yields the broadcast endpoint. Capacity is 2^(32-n) before any addresses are excluded from ordinary host use.

2

vlsm and supernet planning

A VLSM segment occupies a power-of-two address block large enough for its requirement and begins on that block's CIDR boundary. Different block sizes can therefore share one parent network. Supernetting works in the opposite direction: smaller networks share a shorter prefix when their leading bits match. The resulting summary must be checked for additional address space that was not among the original networks.

Good uses

  • Turning a parent IPv4 block and per-VLAN host requirements into non-overlapping VLSM assignments before configuring DHCP scopes and gateways.
  • Converting a prefix such as /27 into the wildcard mask required by an IPv4 access-control or network-matching rule.
  • Checking whether adjacent routes are correctly aligned for one shorter CIDR summary before that summary is advertised.

Limits and checks

  • An IPv4 host address followed by a prefix identifies its containing subnet, not necessarily an allocation start. Use the calculated network endpoint instead of assuming the entered address is already aligned.
  • Usable-host counts depend on convention. Ordinary subnets reserve network and broadcast endpoints, while /31 point-to-point links have special standardized treatment and /32 denotes one address.
  • A mathematical VLSM allocation cannot know which addresses your organization reserves for gateways, redundancy, appliances, or future growth. Include those needs when choosing each segment's required capacity.

Common questions

Is a wildcard mask just an inverted subnet mask?

Yes, for IPv4 wildcard notation, each octet is 255 minus the corresponding subnet-mask octet. A /26 subnet mask of 255.255.255.192 therefore has the wildcard 0.0.0.63. The wildcard marks bit positions permitted to vary in systems using that convention. Do not substitute it where configuration syntax asks for a subnet mask or CIDR prefix.

Will a VLSM subnet contain exactly the requested number of hosts?

Usually no. CIDR blocks contain power-of-two address counts, and an ordinary subnet also has network and broadcast endpoints. For example, 20 conventional host addresses require a /27: it provides 32 total addresses and 30 usable ones. A /28 provides only 16 total and 14 conventionally usable addresses, so it is too small.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools