Tools / Subnet calculator

Subnet calculator

Enter an IPv4 address with a prefix (192.168.1.10/24) or a mask (192.168.1.10 255.255.255.0).

Calculate the subnet range from an address and a network mask or prefix.

Privacy: we do not store what you enter. This calculator runs entirely in your browser.

What you get

Common prefixes

PrefixSubnet maskUsable hosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/30255.255.255.2522

Common questions

What does /24 mean?

It means the first 24 bits of the address identify the network and the remaining 8 bits identify hosts. That equals the mask 255.255.255.0 and gives 256 addresses, 254 of them usable.

How do I choose a subnet size?

Pick the smallest prefix that fits your devices with room to grow. For example, 50 devices fit in a /26 (62 usable hosts).

What are /31 and /32?

A /31 has two addresses and is used on point-to-point links. A /32 is a single address.

Related tools and guides

Results are for guidance only. See all network tools.