IPv4 Subnet Calculator
Calculate network, broadcast, mask, and usable host range from CIDR.
Read the guideRun the tool
The calculation runs in your browser. This tool does not send your input to JVR Software.
More information
Back to the toolWhat it is and when to use it
An IPv4 CIDR block describes a network range through an address and a prefix length. Subnet Calculator helps you read the network address, mask, range boundaries and related values when documenting a network you manage or working through an address-planning exercise.
How it works
The prefix length tells you how many leading bits identify the network. The mask has those bits set. The remaining bits vary over the addresses in the block. Applying the mask selects the network boundary, and setting all remaining bits gives the highest address in the block.
How to use it
- Enter an IPv4 address with its explicit prefix length, such as 192.0.2.70/26.
- Read the calculated network and highest address, then compare the mask with the intended router or host settings.
- Confirm the rules used by your network for host reservations before assigning any address.
Worked example
192.0.2.70/26 belongs to the block from 192.0.2.64 to 192.0.2.127. Its mask is 255.255.255.192 and the block contains 64 total addresses. In a conventional broadcast subnet, the first and last addresses have network and broadcast roles, leaving 62 between them.
Compare a /26 split with a /24. The /24 has 256 total addresses and a /26 has 64, so four aligned /26 blocks fit inside one /24. With 192.0.2.0/24 as the parent, the four /26 boundaries end in .0, .64, .128 and .192. Confirm each segment has room for its planned hosts and reserved addresses.
Reading the result
The first entered address does not need to be the network address. The calculated boundary is more useful when documenting the block or specifying network-level routing. A /31 point-to-point link and a /32 host route carry special semantics that differ from the conventional broadcast-subnet example.
Common mistakes and limits
An arithmetic range does not prove whether anything uses it. Check local address allocation, router settings, network policy and device roles when making a change. In IPv4 the prefix must be between 0 and 32. An IPv6 prefix requires a separate IPv6 calculation.
