Skip to content

Utilities

IPv4 Subnet Calculator

Calculate IPv4 CIDR networks, masks, broadcasts, address ranges and usable host counts.

How to use this tool
  1. Enter an IPv4 address with a CIDR prefix.
  2. Calculate the subnet.
  3. Copy the network, mask and usable address range.

Loading tool…

Find this tool in

About this tool

What is IPv4 Subnet Calculator?

Work out which IPv4 addresses belong to a CIDR block before documenting an internal network or interpreting a routing rule. The entered address can be any address within the subnet; the calculator identifies its network boundary, mask and range. It performs arithmetic locally and does not scan the network, discover devices or test whether an address is reachable.

A worked example

Identify the subnet containing a typical private address

Example input

192.168.1.10/24

Expected result

192.168.1.0/24
255.255.255.0
192.168.1.1 – 192.168.1.254
254

A /24 leaves eight host bits, giving 256 total addresses. Under ordinary IPv4 subnet conventions, the network and broadcast addresses leave 254 usable hosts. The address .10 lies inside that range. The calculator treats /31 and /32 separately rather than subtracting two hosts from every possible prefix.

Common mistakes and limits

  • Usable-address arithmetic does not reserve a gateway, DHCP range or infrastructure addresses for your organization. Subtract those allocations in your actual network plan.
  • An IPv4 subnet does not identify a physical location or a device owner. Use the IP lookup for approximate public-address information, with its stated limitations.

Features

What you can do

  • CIDR prefixes from /0 through /32
  • Network and broadcast addresses
  • Subnet and wildcard masks
  • Correct /31 and /32 host counts

Frequently asked questions

Questions about IPv4 Subnet Calculator

How are /31 and /32 networks handled?

A /31 is shown as a point-to-point network with two usable addresses. A /32 represents one address. Other prefixes exclude network and broadcast addresses from the usable host count.

Related tools