CalcToolVault

IP Range Calculator

Convert a start and end IP address into the CIDR blocks that cover it, and count the addresses in a range.

Your details

This calculator runs entirely on your device. Nothing you enter is uploaded, stored, or sold. How this works

Addresses in range

191

192.168.1.10 to 192.168.1.200 — covered by 8 CIDR blocks

Save these results

Includes your inputs, the full breakdown, and every row of the table.

Start address

192.168.1.10

End address

192.168.1.200

CIDR blocks required

8

Equivalent /24s

0.75

Breakdown
Start (integer)
3,232,235,786
End (integer)
3,232,235,976
Total addresses
191
Blocks needed
8
CIDR blocks covering this range
CIDRFirst addressLast addressSize
192.168.1.10/31192.168.1.10192.168.1.112
192.168.1.12/30192.168.1.12192.168.1.154
192.168.1.16/28192.168.1.16192.168.1.3116
192.168.1.32/27192.168.1.32192.168.1.6332
192.168.1.64/26192.168.1.64192.168.1.12764
192.168.1.128/26192.168.1.128192.168.1.19164
192.168.1.192/29192.168.1.192192.168.1.1998
192.168.1.200/32192.168.1.200192.168.1.2001

What this means

  • Arbitrary IP ranges rarely align to a single CIDR block. The list above is the minimal set of blocks that exactly covers your range with no overflow.
  • Firewall rules, route tables, and security groups all expect CIDR notation, so this conversion is the usual bridge between a human-readable range and a device configuration.

How the ip range calculation works

IP addresses are 32-bit integers, so any range between two addresses is just the difference between two numbers plus one. Converting that range into CIDR blocks is harder, because each block must start on a boundary that matches its size.

The algorithm works greedily: at each position, find the largest block that both aligns to the current address and does not overshoot the end of the range, emit it, then advance. The result is the minimal covering set.

Frequently asked questions

Why does my range need multiple CIDR blocks?

A CIDR block must start at an address divisible by its size. A range like .10 to .200 does not align to any single power-of-two boundary, so it decomposes into several blocks.

How many IPs are in a range?

End minus start, plus one. The range 10.0.0.1 to 10.0.0.10 contains ten addresses, not nine.

Related calculators

Spotted a problem, or want this calculator to do more?Corrections are fixed first, and the most-requested features get built next.Tell us →

Disclaimer. This calculator is provided for general information and educational purposes only and does not constitute financial, tax, legal, medical, or engineering advice. Results are estimates based on the inputs you provide and the assumptions described above. Confirm any figure with a qualified professional before acting on it.