Skip to Calculator
/24
Subnet Calculator
Range-to-CIDR Decomposition

IP Range Calculator & Boundary Converter

Calculate the total addresses between any two IPv4 endpoints, verify subnet boundary alignment, and instantly convert arbitrary IP ranges into the minimal set of contiguous CIDR prefix blocks.

Example IP Ranges:

Range Analysis & CIDR Decomposition

Total IP Addresses:62
Boundary Clean:6 CIDR
Minimal CIDR Blocks:6 CIDR
Equivalent Non-Overlapping CIDR Blocks:

Why Arbitrary IP Ranges Require Multiple CIDR Blocks

In IPv4 routing, a single CIDR block must satisfy two strict binary rules:

  1. The size of the block must be an exact power of two (1, 2, 4, 8, 16, 32, 64, 128, 256, etc.).
  2. The starting IP must be an exact integer multiple of the block size.

If your range begins at an arbitrary host number (e.g. .10 to .100), no single subnet mask can represent it. Instead, network firewalls and route filters use a greedy CIDR decomposition algorithm to break the range into the smallest possible number of clean prefix blocks.

Related Networking Calculators & Engineering Tools