ITEngineeringTools

IP Range Calculator

Summarize an inclusive IPv4 or IPv6 range as the smallest set of CIDR blocks.

Input

Result

How it works

At each step, the calculator takes the largest aligned power-of-two block that fits in the remaining interval.

Formula

Inclusive count = last − first + 1.

Example

First IP address: 10.0.0.8
Last IP address: 10.0.0.15

10.0.0.8/29 covers eight addresses.