Free network calculator

Free CIDR Notation Calculator Online

Enter an IPv4 or IPv6 address with a slash prefix to calculate its normalized CIDR network and complete range.

Supports IPv4 and IPv6. Try 192.168.10.45/27 or 2001:db8::1/64.

What Is a CIDR Notation Calculator?

A CIDR notation calculator reads an IP address followed by a slash prefix and calculates the complete network that contains it. CIDR stands for Classless Inter-Domain Routing. A value such as 192.168.10.45/27 combines one IPv4 address with a prefix length. The prefix tells you how many address bits belong to the network.

This calculator supports both IPv4 and IPv6. It normalizes the entered value to the correct network, displays the full range, calculates address capacity, and explains the mask and bit structure. It also shows adjacent CIDR blocks of the same size when they exist.

The calculation is completed directly by ipdnslookup. The entered CIDR value is not sent to an external calculation service.

How to Use the CIDR Notation Calculator

  1. Enter an address: Type an IPv4 or IPv6 address in the calculator field.
  2. Add the prefix: Include a slash and valid prefix, such as /27 for IPv4 or /64 for IPv6.
  3. Select Calculate CIDR: The calculator validates the complete value and calculates its network.
  4. Review the main range: Check the normalized CIDR block and the first and final addresses.
  5. Compare supporting values: Review the mask, host bits, capacity, usable range, and address position.
  6. Check adjacent blocks: Use the previous and next CIDR values when planning consecutive networks.

Example CIDR notation calculation

Input: 192.168.10.45/27

Normalized network: 192.168.10.32/27

Result: The range begins at 192.168.10.32 and ends at 192.168.10.63. It contains 32 total addresses and 30 traditional usable IPv4 host addresses. The subnet mask is 255.255.255.224.

Why Use Our CIDR Notation Calculator?

A host address inside a CIDR block does not always show the network boundary clearly. For example, 192.168.10.45/27 belongs to the network beginning at .32, not .0. Calculating the boundary by hand requires correct binary grouping. This page provides the result and the supporting values together.

  • IPv4 and IPv6 support: Calculate 32-bit and 128-bit CIDR networks with one interface.
  • Normalized output: Convert any valid host and prefix combination into its correct network CIDR.
  • Complete range: See the network start, ending address, and usable-address interpretation.
  • Capacity: Review exact total and usable address counts without generating large address lists.
  • Mask details: Get the subnet mask, wildcard mask, network bits, and host bits.
  • Direct processing: Calculate the result without sending the value to a third-party calculation service.

How CIDR Calculation Works

An IPv4 address contains 32 bits. An IPv6 address contains 128 bits. The number after the slash is the prefix length. It identifies how many leading bits remain fixed for the network. The remaining bits can change inside that network.

For 192.168.10.45/27, 27 bits identify the network and 5 bits remain for addresses. Five host bits create 25, or 32, total addresses. Setting every host bit to zero produces 192.168.10.32. Setting every host bit to one produces 192.168.10.63.

The same rule applies to IPv6, but the address is much larger and written in hexadecimal. A /64 IPv6 network uses 64 network bits and 64 host bits. That creates 264 addresses inside one network. The calculator uses integer arithmetic and never builds a list containing every address.

Common Uses for a CIDR Notation Calculator

  • Validate firewall rules: Confirm that an address belongs to the CIDR block used in an allow or deny rule.
  • Plan cloud networks: Check network boundaries before creating virtual networks and subnets.
  • Review routing tables: Normalize host-based input to the network route a router expects.
  • Compare access logs: Determine the wider network containing an IPv4 or IPv6 address.
  • Avoid overlaps: Compare the start and end of planned blocks before connecting environments.
  • Study addressing: See how changing a prefix changes host bits, range size, and masks.
  • Prepare configurations: Copy the network CIDR, subnet mask, or wildcard mask required by a platform.

Understanding Your CIDR Results

  • Normalized CIDR Network: The correct network address joined with its prefix. Host bits from the entered address are set to zero.
  • Address Range: The first through final addresses contained in the network.
  • Entered Address: The individual address supplied before the slash prefix.
  • IP Version: Identifies whether the input is IPv4 or IPv6.
  • Address Type: A broad classification such as private, public, loopback, link-local, multicast, or reserved.
  • Prefix Length: The number of leading bits used for the network.
  • Network Address: The first address in the calculated CIDR block.
  • Broadcast or Last Address: IPv4 shows a broadcast address. IPv6 shows the final address because IPv6 does not use broadcast addressing.
  • First and Last Usable: The practical address endpoints under the calculator's IPv4 or IPv6 policy.
  • Total Addresses: The exact mathematical size of the complete block.
  • Usable Addresses: IPv4 traditional networks exclude network and broadcast addresses. A /31 uses both addresses, and a /32 represents one address. IPv6 does not apply the IPv4 broadcast reservation.
  • Network and Host Bits: The fixed prefix bits and the remaining variable bits.
  • Subnet Mask: The address-form mask containing network ones followed by host zeros.
  • Wildcard Mask: The inverse of the subnet mask. Some network access lists use this value.
  • Address Position: The entered address's numbered position inside the complete range.
  • Previous and Next CIDR Block: Adjacent networks with the same prefix and capacity.

IPv4 and IPv6 CIDR Differences

IPv4 prefixes range from /0 through /32. A traditional IPv4 subnet normally reserves its first address as the network identifier and its final address as the broadcast address. The exceptions used here are /31 point-to-point networks and /32 host routes.

IPv6 prefixes range from /0 through /128. IPv6 has no broadcast address, so the final value is labelled Last Address. A /128 contains one address. Although every mathematical address is counted, a real platform may reserve or assign addresses according to its own operational rules.

IPv6 capacity can be extremely large. A /64 contains 18,446,744,073,709,551,616 addresses. The calculator uses efficient integer arithmetic instead of creating a list containing every address.

Common CIDR Input Mistakes

  • Missing slash: Entering only 192.168.1.10 does not specify a network prefix.
  • Invalid prefix: IPv4 cannot use a value above /32, and IPv6 cannot use one above /128.
  • Mixed address formats: An IPv4 address cannot use an IPv6-style prefix such as /64.
  • Assuming the input is the network: A host such as 192.168.10.45/27 normalizes to 192.168.10.32/27.
  • Ignoring platform reservations: Cloud providers may reserve additional addresses beyond general IP rules.

Accuracy and Limitations

The calculator returns mathematical CIDR results. It does not inspect or change a router, firewall, operating system, DNS server, cloud account, or live route. A valid result does not prove that the network is assigned, reachable, secure, or free from overlap elsewhere.

Always compare usable-address counts with the platform you are configuring. Providers can reserve gateway, DNS, management, or service addresses. For standards and special address classifications, consult the relevant IANA number resource documentation.

Frequently Asked Questions

Can I enter a host address with a CIDR prefix?

Yes. The calculator keeps the entered address for reference and normalizes the result to the correct network boundary.

Does this calculator support IPv6?

Yes. It accepts valid IPv6 CIDR values from /0 through /128 and calculates the exact network range locally.

Why is my normalized network different from my input?

Your input may contain host bits. Those bits are set to zero when calculating the network address.

What does a /32 or /128 mean?

An IPv4 /32 and an IPv6 /128 each represent one individual address rather than a larger range.

Does a CIDR calculation reserve the network?

No. It only calculates address boundaries. It does not allocate, configure, or claim any address space.

Is my CIDR value sent to an API?

No. ipdnslookup calculates the result directly without sending the CIDR value to an external calculation API.

Related Tools and Calculators

Use the Subnet Calculator for a dedicated IPv4 address and prefix form with subnet-focused results. You can also use the IP Lookup tool to inspect public network information or browse all published calculators from ipdnslookup.