Subnet calculator

Network, broadcast, mask and usable host range for any IPv4 address and prefix.

For example 10.20.30.40/22. A mask such as 10.20.30.40 255.255.252.0 also works.

Prefix:

Runs in your browser. Nothing you type is sent to the server.

About this tool

Type an IPv4 address with a prefix length, for example 10.20.30.40/22. The calculator shows the network address, broadcast address, subnet mask, wildcard mask, first and last usable host and the number of usable hosts. Use it when planning VLANs, DHCP scopes, firewall rules and Azure virtual network address spaces.