IP ADDRESS TOOLS
CIDR Subtraction
Subtract excluded IPv4 or IPv6 networks from your included address space. Get the smallest exact CIDR list, with no added addresses.
Calculated in your browser · No API request
Your address lists
Remaining address space
Your result will appear here
Enter an include list and optional exclusions to calculate the exact remainder.
What the result means
The calculation subtracts the union of exclusions from the union of included ranges. Overlaps count once, host bits are normalized, and no addresses are added. All addresses in a range count, including network and broadcast addresses.
Use the result for WireGuard exceptions or to inspect gaps after known allocations. Gaps are relative to your inputs; they do not prove addresses are unused on the live network. Review the list before applying it.