Calculate network and broadcast addresses
Given an IPv4 address and a subnet prefix, this calculator identifies the complete block that contains the address. It returns the normalized network address, broadcast address, subnet mask, total block size and host range according to the selected address semantics.
This is one of the most useful checks in IPv4 troubleshooting. A host can only communicate directly with another address when the local prefix says that both destinations are on the same link. Understanding the network boundary therefore helps explain routing decisions, DHCP scopes, ACL matches and many common configuration mistakes.
What network and broadcast mean
The network address is the first address of an IPv4 subnet and identifies the block itself. In traditional broadcast subnets, the broadcast address is the last address and targets all hosts on that subnet. Addresses between those endpoints are traditionally available to hosts, subject to the prefix and the design in use.
For example, 192.168.10.70/26 belongs to the block 192.168.10.64/26. The broadcast address is 192.168.10.127, and the traditional host range is 192.168.10.65 through 192.168.10.126.
How the binary AND calculation works
A device finds the network address by performing a bitwise AND between the IPv4 address and subnet mask. Every bit where both values contain a one remains one; all other positions become zero. This is why the result always lands on the first address of the prefix boundary.
You do not need to perform the binary operation manually every time, but understanding it is useful. The subnetting guide explains the same boundary logic.
How to use the calculator
Enter an IPv4 address, then provide either a CIDR prefix or the mask format accepted by the interface. Run the calculation and review the normalized block. When troubleshooting, compare the calculated network with the interface configuration, default gateway and expected VLAN. A mismatch often explains why traffic is sent to the wrong next hop or why two hosts that should be local are treated as remote.
About /31 and /32
A /31 is a special but standards-based IPv4 case for point-to-point links. RFC 3021 allows both addresses to identify endpoints because a broadcast address is unnecessary on that link type. A /32 identifies exactly one IPv4 address and is commonly used for host routes, loopbacks and policy entries. The calculator treats these cases explicitly rather than applying the traditional “network plus broadcast reserved” rule blindly.
A practical habit is to calculate the block before changing a production interface. Confirm the expected gateway, DHCP range and peer addresses, then compare them with the normalized network. This simple check can prevent duplicate subnets, off-by-one boundaries and incorrect assumptions about which traffic should stay local.
Frequently asked questions
Can the network address be assigned to a host?
In traditional IPv4 broadcast subnets, no. It identifies the subnet. Special cases such as /31 point-to-point links use different semantics.
Why is broadcast always the last address?
For traditional IPv4 subnets, the host portion is all ones in the directed broadcast address, which places it at the top of the prefix range.
What happens on IPv6?
IPv6 does not use broadcast addresses. Neighbor Discovery and multicast replace many functions that rely on broadcast in IPv4.
Can I enter any host address inside the subnet?
Yes. The calculator normalizes the address to the correct network boundary based on the prefix.
Next step
Use the CIDR calculator to work backward from host requirements, or use the block-size calculator to practice finding subnet boundaries without a full calculator.
It is also useful when reviewing static routes, because the destination prefix must describe the intended block exactly.