How to use this calculator
- Enter your own values in the labeled fields. Check the units and assumptions before comparing results. Only the fields needed for your selected calculation mode are shown.
- Your answer updates automatically. Review the calculation steps to see exactly how it was calculated.
- Copy, share, save, or download your result. Saved inputs stay on this device.
How the calculation works
An IPv4 address is a 32-bit integer shown as four octets. The prefix specifies how many leading bits define the network. Ordinary subnets reserve the first address for the network and the last for broadcast. This tool treats /31 as a point-to-point block and /32 as one host, rather than subtracting two blindly.
A worked example
192.168.1.10/24 belongs to 192.168.1.0/24, with 256 addresses and 254 ordinary usable host addresses.
Reading your result
Use the main result together with its units and supporting figures. Display values are rounded; calculations keep their underlying precision. A change in inputs or assumptions can change the answer. Compare the step-by-step working with your intended use before relying on an estimate.
Frequently asked questions
What happens with /31?
Both addresses are treated as usable for point-to-point links under RFC 3021.
Is IPv6 supported?
No. This tool is explicitly IPv4.
Sources & methodology
IETF RFC 3021: 31-bit prefixes on IPv4 point-to-point links ↗
Formula review: October 24, 2026. Read our methodology.