IP Range Calculator

Calculate the inclusive address count and smallest covering CIDR block for an IPv4 range.

About this calculator

The covering CIDR is the smallest single network that contains both addresses. It can include addresses outside the exact range; use the inclusive count for the precise number of addresses entered.

Share on LinkedInShare on X
Link to this tool

Copy this HTML to cite this tool from your own site or article.

About IP Range Calculator

IP Range Calculator calculates the total address count, first IP, last IP, and smallest covering CIDR prefix for any IPv4 start and end address range.

How to use IP Range Calculator

  1. Enter start IPv4 address (e.g. 192.168.1.1) and end IPv4 address (e.g. 192.168.1.254).
  2. Click Calculate IP Range.
  3. View address count breakdown and smallest covering CIDR blocks.
  4. Copy range summary and covering CIDR notation.

Examples

Start IP: 192.168.1.0 End IP: 192.168.1.255 Covering CIDR: 192.168.1.0/24 (256 addresses)

FAQ

What is a covering CIDR block?

A covering CIDR block is the smallest CIDR subnet notation that encompasses all IP addresses between the start and end values.

Can I calculate ranges spanning multiple class subnets?

Yes. Large IPv4 ranges are analyzed and broken into valid CIDR subnets.