Skip to content
AllInOneTools

Subnet calculator

Calculate network, broadcast, host range and mask for any IPv4 subnet.

Runs in your browser – your files are not uploaded

How to use Subnet calculator

  1. 1

    Enter an IPv4 address with /prefix or a subnet mask.

  2. 2

    Change the prefix length with the selector if needed.

  3. 3

    Copy the network, mask, broadcast or host range from the results.

About Subnet calculator

Type an IPv4 address with a prefix such as 192.168.1.10/24 or with a subnet mask such as 10.0.0.1 255.255.0.0. The calculator shows the network address, broadcast address, first and last usable host, the subnet and wildcard masks and the number of addresses.

It also displays the mask in binary, the classic IP class and whether the address lies in a private range (RFC 1918). Use the prefix selector to quickly compare how many hosts different subnet sizes give you.

Frequently asked questions

Why are there two fewer usable hosts than addresses?

The first address identifies the network and the last one is the broadcast address, so neither can be assigned to a device. Only /31 and /32 are exceptions.

Does it support IPv6?

No. The calculator works with IPv4 addresses only.

What is a wildcard mask?

The inverse of the subnet mask, for example 0.0.0.255 for /24. It is used in Cisco access lists and OSPF configurations.