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

Adjacent Range Checker

Identify directly neighboring ranges.

Adjacent Range Checker: 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 Adjacent Range Checker Works?

This tool works by testing whether one range ends exactly 1 address before the other begins, then checking whether the joined range forms a single CIDR block.

  1. Enter 2 ranges or prefixes

    Type 10.4.2.0/24 and 10.4.3.0/24.

  2. Order the ranges

    The checker places the lower range first.

  3. Test End + 1 = Start

    10.4.2.255 + 1 = 10.4.3.0 → adjacent.

  4. Check CIDR merge

    The joined range 10.4.2.0 – 10.4.3.255 equals 10.4.2.0/23, so the pair merges into 1 prefix.

Adjacent Range Checker Formula

The formula is Adjacent = (End_A + 1 = Start_B), and CIDR-mergeable = Adjacent AND equal sizes AND Start_A aligned to 2 × size.

Adjacency

E_A + 1 = S_B

No gap and no overlap.

Equal size

|A| = |B|

Needed for a CIDR merge.

Alignment

S_A mod (2 × |A|) = 0

The lower block starts the larger block.

Merged prefix

p − 1

2 × /24 → /23.

Worked example: 10.4.1.0/24 and 10.4.2.0/24

10.4.1.255 + 1 = 10.4.2.0 → adjacent ✓
Equal sizes (256) ✓
10.4.1.0 aligned to /23? 1 mod 2 = 1 → no ✗
Result: adjacent, but no single /23 covers both

Adjacent Range Checker Conversion Table

The table tests 8 pairs of CIDR blocks for adjacency and CIDR mergeability.

Block ABlock BAdjacentMerges Into
10.4.2.0/2410.4.3.0/24Yes10.4.2.0/23
10.4.1.0/2410.4.2.0/24YesNo single prefix (2 blocks)
192.168.0.0/25192.168.0.128/25Yes192.168.0.0/24
192.168.0.128/25192.168.1.0/25YesNo single prefix (2 blocks)
172.16.0.0/23172.16.2.0/24YesNo single prefix (2 blocks)
10.0.0.0/2410.0.2.0/24No—
203.0.113.64/26203.0.113.128/26YesNo single prefix (2 blocks)
10.0.0.0/910.128.0.0/9Yes10.0.0.0/8

What is Adjacent Range Checker?

The Adjacent Range Checker is a tool that identifies whether 2 IPv4 ranges sit directly next to each other with no gap and no overlap.

Adjacency is the first condition for summarizing 2 blocks. Adjacent blocks of equal size merge into 1 shorter prefix only when the lower block starts on the boundary of the merged size. 10.4.2.0/24 and 10.4.3.0/24 merge into a /23, and 10.4.1.0/24 and 10.4.2.0/24 do not.

The checker reports both conditions, so the difference between "adjacent" and "summarizable" is clear.

What are the uses of Adjacent Range Checker?

There are 4 main uses of the Adjacent Range Checker, including summarization prep, allocation growth, and list merging.

  • Preparing route summaries

    Adjacent, aligned pairs collapse into 1 route.

  • Growing allocations in place

    A subnet grows in place only when the adjacent block is free and the pair is aligned.

  • Merging range lists

    Adjacent ranges join into 1 entry in range-based systems.

  • Explaining failed summaries

    The checker shows why 2 neighboring /24s do not form a /23.