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.
Calculated Boundaries & ParametersReady
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.
Related Subnet Math & Set OperationsAll Tools
Bitwise Subnet Calculator
Show address-and-mask operations.
IP Address Offset Calculator
Add or subtract address positions.
Address Distance Calculator
Count positions between two addresses.
Subnet Boundary Checker
Check alignment to a specified prefix.
IP-in-Range Checker
Test whether an address belongs.
IP-in-Subnet Checker
Test membership within a CIDR block.
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.
Enter the parent block
Type the scope, such as
192.168.0.0/16.Enter the allocated set
Paste the CIDR blocks in use.
Merge and invert
The calculator merges the set, then collects the stretches of the parent left uncovered.
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_iRelative 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 Range | CIDR Block | Addresses |
|---|---|---|
| 192.168.16.0 – 192.168.31.255 | 192.168.16.0/20 | 4,096 |
| 192.168.64.0 – 192.168.127.255 | 192.168.64.0/18 | 16,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.