Free IPv4 CIDR Range Calculator Online

Find inclusive first and last IPv4 addresses and total CIDR block size.

Preparing your local workspace…
METHOD, EXAMPLES & ANSWERS

How to use IPv4 CIDR Range Calculator

Find inclusive first and last IPv4 addresses and total CIDR block size.

About IPv4 CIDR Range Calculator

A CIDR block contains consecutive addresses with the same leading bits. The calculator aligns the entered address to the start of its containing block and computes the final address from the prefix. Host bits in the entered address do not change which block contains it.

The range is useful for reviewing address allocation and firewall rules, but the tool neither applies firewall rules nor enumerates a huge list of hosts. First and last are inclusive; usable-host conventions depend on deployment.

  1. Enter a valid dotted-decimal IPv4 address.
  2. Enter an integer CIDR prefix from 0 to 32.
  3. Calculate and inspect the first address, last address and inclusive address count.

How it works

A CIDR prefix fixes the number of leading network bits. The calculator finds the aligned network start and inclusive final IPv4 address. The total is 2 raised to (32 minus prefix). No network requests are made.

Input reference · 1 fields

These labels describe the calculation’s base units. Supported measurements can switch through the header’s region settings; follow the current workspace labels. Prefilled values are examples.

Local calculation inputs
Enter a dotted-decimal IPv4 address and a CIDR prefix from 0 to 32. The calculator rounds the address down to its network block and returns the inclusive range.

A quick example

192.168.1.42 /24 spans 192.168.1.0 to 192.168.1.255. A /32 contains one address.

Assumptions, edge cases & limits

  • The total includes reserved network or broadcast addresses where applicable and is not a usable-host count.
  • A CIDR range is a mathematical result, not proof that any address is reachable.
  • The address count includes network and broadcast addresses where applicable; it is not a count of usable hosts. This is not a live network scan.

Questions about IPv4 CIDR Range Calculator

How do I calculate the address range of a CIDR block?

Enter the IPv4 address and prefix length, then inspect the first and last addresses and block size. Review special-use and host allocation conventions separately.

Does this test my network?

No. It calculates the IPv4 address range entirely in your browser.

Are all addresses usable by hosts?

Not necessarily. The inclusive count does not subtract network or broadcast addresses.

Must I enter a network address?

No. It aligns the input to the containing block.

Does /32 have zero addresses?

No. It contains one address.

Will it list all /0 addresses?

No. Only boundaries and count are returned.

For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.

A result or explanation needs correcting? Tell us the tool name and an example.