Skip to main content
  1. Network Articles/
  2. IPv4 Articles/

IPv4 Subnet Mask Calculator

For IPv6 calculations, use the IPv6 Prefix Calculator.

Enter an IPv4 address and select a subnet mask from the dropdown to calculate the network address and broadcast address.

How the calculation works

The network address is obtained by a bitwise AND of the IP address and the subnet mask. The broadcast address is obtained by a bitwise OR of the network address and the inverted subnet mask (the host bits set to all 1s). See the IPv4 Addresses page for more details.

Related Articles