Skip to main content

Calculate an IPv4 network address, subnet mask, broadcast address, usable IP range and host count from CIDR notation. Supports /0–/32 and preset masks; this is a calculator, not a network scanner.

IPv4 subnet calculator

Enter the address and prefix length to instantly view subnet information.

Only IPv4 is supported with CIDR 0–32; addresses with leading zeros are not accepted.

Total number of addresses

256

Available host addresses

254

Calculation result

FieldresultOperation
network address192.168.1.0/24
subnet mask255.255.255.0
wildcard mask0.0.0.255
broadcast address192.168.1.255
first available address192.168.1.1
last available address192.168.1.254
IPv4 decimal3232235818
IPv4 hex0xC0A8012A
IPv4 binary11000000.10101000.00000001.00101010
Available range192.168.1.1192.168.1.254

/31 counts as a point-to-point link, with both addresses available; /32 represents a single host. The number of available addresses does not represent the number of devices actually online on the network.

Instructions for use

  1. Fill in IPv4/CIDR, for example 192.168.1.42/24.
  2. If you are not familiar with prefix length, you can select the corresponding mask from the shortcut list.
  3. Check network addresses and available ranges, and copy individual or all results.

Input and output examples

Example input
192.168.1.42/24
Example output
Network: 192.168.1.0/24 Mask: 255.255.255.0 Available: 192.168.1.1–192.168.1.254

This subnet has 256 addresses, and the typical available host addresses are 254; does not represent the actual number of online devices.

FAQ

IPv4 has a total of 32 bits, /24 indicates that the first 24 bits are the network prefix, and the remaining 8 bits can represent 2⁸ = 256 addresses, corresponding to the mask 255.255.255.0.

This tool interprets /31 as a point-to-point link, both addresses are available; /32 represents a single host. Both network and broadcast addresses are no longer deducted from ordinary subnets.

No. Only IPv4 math is done here, no IP probing, no device scanning, and no access to entered addresses. IPv6 is not supported by current tools.

Calculation basis and reference materials

Use IPv4's 32-bit address and CIDR mask to calculate network boundaries, and then derive the address range and host number. /31 is processed as a point-to-point link, /32 is processed as a single host; the calculation does not include device online status.

Content check: · About this site and content description

Related tools