Network 7 min read 1,488 words By LaiUse Editorial Team Reviewed 28 October 2026

IPv4 Calculator — Complete Guide

The IPv4 Calculator calculates network information from an IPv4 address and a CIDR prefix.

What it does

The IPv4 Calculator calculates network information from an IPv4 address and a CIDR prefix. It is intended for network engineers, developers, administrators, and anyone who needs to determine the subnet boundaries associated with an address. Depending on the prefix length, the calculation covers the subnet network address, subnet broadcast address, address range, and the number of addresses available in the subnet.

The calculation runs entirely in the browser using plain browser APIs. You provide the address and prefix as text, press the tool’s calculation control, and then read the resulting subnet details. Results are not refreshed continuously while you type, and the calculator does not remember values between visits. It can copy a result to the clipboard, but it does not offer file upload, file download, drag-and-drop, sample data, or stored calculation history.

When to use it

How to use it

  1. Locate the input labeled CIDR and enter the prefix length. The prefix is the part after the slash in an address such as 192.168.1.0/24.
  2. Locate the input labeled IP Address and enter the IPv4 address to calculate. The built-in placeholder is 192.168.1.1, which shows the expected dotted-decimal format.
  3. Press the interface’s calculation control. The interface does not provide a separate wording for that control, so it should not be identified by a button name that is not displayed.
  4. Read the subnet details produced from the two inputs. Review the calculated network address, broadcast address, address range, and address counts rather than relying only on the original address.
  5. Use the tool’s copy control if you need to place the result on the clipboard. The interface does not state a separate label for this control, so follow the visible wording or icon presented by the tool.
  6. To calculate another subnet, replace the values in CIDR and IP Address, then run the calculation again. The calculator does not maintain a history of previous entries.

Worked example

Suppose you are checking the address 192.168.1.1 with the CIDR prefix /24. Enter 24 in the field labeled CIDR, enter 192.168.1.1 in the field labeled IP Address, and press the calculation control.

The subnet for 192.168.1.0/24 has the following network properties:

The full IPv4 address space contains 32 bits. A /24 prefix reserves the first 24 bits for the network and leaves eight bits for addresses within that subnet. Those eight bits produce 256 possible values. The all-zero value identifies the network address, and the all-one value identifies the broadcast address, leaving the other values available for normal host assignment. The calculator performs this conversion rather than requiring you to work through the binary arithmetic.

Now consider changing only the prefix to /28 while retaining 192.168.1.1. The same supplied address is in the subnet 192.168.1.0/28, whose network address is 192.168.1.0, broadcast address is 192.168.1.15, and usable host range is 192.168.1.1 through 192.168.1.14. This comparison shows why the CIDR value must match the network design being evaluated: a valid host address can belong to different, smaller subnet boundaries when the prefix changes.

Limitations and edge cases

Troubleshooting

Frequently asked questions

Does the IPv4 Calculator send my calculation to a server? The subnet calculation is processed entirely in the browser. The implementation also calls a backend usage endpoint, so the tool should not be described as having no network activity of any kind. It does not, however, save the entered values or results in local storage between visits.

Does it remember addresses or CIDR values? No. State is not preserved between visits, so a calculation must be run again after returning to the tool. Copy results you want to retain.

Can I copy the calculated result? Yes. The tool can copy results to the clipboard. The interface wording does not identify the copy control with a separate text label, so use the visible control provided on the result.

Can I download the result or read it from a file? No. There is no download function and no file input. The calculator accepts only text that you paste or type into its address and CIDR inputs. Use a reporting or data-processing tool if you need files or exportable output.

Does it calculate IPv6 subnets? No. This is an IPv4 subnet calculator and expects a four-octet IPv4 address. Use an IPv6 subnet calculator for IPv6 networks.

Is there a published limit on the address or prefix? The tool does not publish a numeric input limit. Its practical input requirement is validity: an IPv4 address must contain four valid octets, and the CIDR entry must represent an IPv4 prefix. The displayed validation errors are “Each octet must be between 0 and 255” and “Please enter a valid IPv4 address (e.g., 192.168.1.1).”

Does the output change while I type? No. You must press the calculation control after entering or changing the values. This is a deliberate manual-run workflow rather than a live-updating calculator.

When is a different tool better? Use a bulk-capable subnet tool for address inventories, an IPv6 calculator for IPv6, an export-oriented reporting tool when downloadable results are required, and a routing or addressing specialist tool when you need configuration validation beyond subnet boundaries.

Want to try it? Open the IPv4 Calculator — it runs in your browser, so your files stay on your device.

Browse every guide · Read the blog · About LaiUse