An IPv4 address identifies its network correctly only when the prefix or mask is known. This topic brings together binary calculation, host-based planning, and the practical interpretation of network, broadcast, and special-purpose ranges.
Decide what you need to calculate
- If you have an address and prefix, calculate the network and complete range.
- If you know the required number of devices, choose the host bits first and derive the smallest suitable prefix.
- Before splitting a block, verify the alignment and increment of each subnet.
- When an address is private, CGNAT, or
169.254, identify its scope before assuming that Internet connectivity itself is broken.
Always verify the result
Write the network in CIDR notation, verify the dotted-decimal mask, and count
all addresses before subtracting reservations. /31 and /32 are special
cases and must not be handled by blindly applying the traditional “minus two
hosts” rule.
The subnet calculator shows every derived value, while the base converter lets you inspect the same address as bits or an integer. The guides explain why each result appears so you can catch a misaligned network or a prefix that cannot provide the required capacity.