Skip to main content
IP Range CalculatorPRO
Subnet Math & Set OperationsInstant Client-Side Tool

Range Complement Calculator

Find unallocated addresses within a parent.

Range Complement Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

Key Capabilities

  • •100% Client-Side: Zero telemetry or server latency.
  • •RFC Compliant: Exact 32-bit and 128-bit integer precision.
  • •Quick Copy: Instant access to CIDR, mask, and range bounds.
  • •Cross-Platform: Works on desktop, tablet, and mobile browsers.

How Range Complement Calculator Works?

This tool works by returning every address inside a parent block that is not in the given set, listed as ranges and CIDR blocks.

  1. Enter the parent block

    Type the scope, such as 192.168.0.0/16.

  2. Enter the allocated set

    Paste the CIDR blocks in use.

  3. Merge and invert

    The calculator merges the set, then collects the stretches of the parent left uncovered.

  4. Output the complement

    The complement appears as CIDR blocks with a total address count.

Range Complement Calculator Formula

The formula is Complement = Parent − (Set₁ ∪ Set₂ ∪ … ∪ Setₙ), and |Complement| = |Parent| − |Union|.

Complement

P − ∪ S_i

Relative to the parent.

Size

2^(32 − p) − |∪ S_i|

Unallocated addresses.

Utilization

|∪ S_i| ÷ 2^(32−p) × 100 %

Allocated share of the parent block.

Worked example: 192.168.0.0/16

In use: 192.168.0.0/20, 192.168.32.0/19, 192.168.128.0/17
Free: 192.168.16.0/20
Free: 192.168.64.0/18
Used = 4,096 + 8,192 + 32,768 = 45,056 (68.75 %)

Range Complement Calculator Conversion Table

The table lists the complement of 3 allocated blocks inside 192.168.0.0/16.

Free RangeCIDR BlockAddresses
192.168.16.0 – 192.168.31.255192.168.16.0/204,096
192.168.64.0 – 192.168.127.255192.168.64.0/1816,384

What is Range Complement Calculator?

The Range Complement Calculator is a tool that finds every address inside a parent block that a given address set does not include.

The complement is the inverse of a set inside a defined scope. Inside 192.168.0.0/16, the complement of the allocated blocks is the unallocated space. Inside 0.0.0.0/0, the complement of a blocklist is everything allowed.

Security teams use the complement to turn deny-lists into allow-lists for systems that accept only permit rules.

What are the uses of Range Complement Calculator?

There are 4 main uses of the Range Complement Calculator, including free-space reports, deny-to-allow conversion, and route exclusion.

  • Reporting free space

    The complement of allocated subnets is the free pool of a region.

  • Converting deny-lists to allow-lists

    Platforms without deny rules allow the complement of the blocked set.

  • Building VPN exclusion routes

    The complement of private space inside 0.0.0.0/0 forms a "public internet only" route list.

  • Measuring utilization

    The size of the complement shows how much of a parent remains.