How to use IPv4 Subnet Calculator
Calculate IPv4 network address, mask, final address and inclusive address count.
About IPv4 Subnet Calculator
IPv4 addresses contain 32 bits. A CIDR prefix fixes the leading network bits and leaves the remaining bits for addresses in the block. Setting host bits to zero gives the network address; setting them to one gives the final address, conventionally the broadcast address in ordinary subnets.
The calculator performs bit arithmetic from your entered address and prefix without querying a router. A /24 has 256 total addresses. Usable-host conventions depend on network design; /31 point-to-point and /32 single-address routes are special cases.
- Enter the requested local input values.
- Calculate the result and review its units.
- Compare the result with the stated assumptions and limitations.
How it works
IPv4 subnet boundaries are computed from the CIDR prefix and dotted-decimal address; the mask contains the specified number of leading one bits.
Input reference · 1 fields
These labels describe the calculation’s base units. Supported measurements can switch through the header’s region settings; follow the current workspace labels. Prefilled values are examples.
- Local calculation inputs
- Enter the values shown in the local calculator, then calculate to inspect the result. No data is uploaded or queried.
A quick example
192.168.1.42 with /24 gives network 192.168.1.0, mask 255.255.255.0 and final address 192.168.1.255.
Assumptions, edge cases & limits
- 192.168.1.42/24 returns network 192.168.1.0 and mask 255.255.255.0.
- No live network queries, device identification or remote verification are performed.
- Network and broadcast reservations vary by prefix; not a live network scan.
Questions about IPv4 Subnet Calculator
How do I calculate the network and broadcast address of an IPv4 subnet?
Enter an IPv4 address and CIDR prefix length. Review the network address, mask, final address and inclusive address count; check host-allocation conventions for special prefixes separately.
Does this ping my router?
No. It is a local mathematical subnet calculator.
Is my information uploaded?
No. The calculation runs locally in your browser.
Does the count exclude network and broadcast?
No. It reports total addresses, not usable hosts.
What does /0 mean?
The entire IPv4 address space, 4,294,967,296 addresses.
Can it discover Wi-Fi devices?
No. It is an offline calculation.
For processing, privacy and service availability, see our privacy details and methodology. Tool-specific questions and limitations are explained above.
A result or explanation needs correcting? Tell us the tool name and an example.