EZ
EazyTools.netHandy web tools — fast, simple & free

Subnet Calculator

Calculate IPv4 subnets: network address, broadcast address, subnet mask, usable hosts, and more.

IPv4 Subnet Calculator

Enter an IPv4 address and prefix (CIDR) to compute network details. You can use 192.168.1.10/24 or separate the IP and prefix.

If you typed /xx in the IP field, that will override this value.

What is a subnet?

A subnet is a logical subdivision of an IP network. It's defined by a network address and a subnet mask (or prefix length like /24).

CIDR notation (like 192.168.1.0/24) tells you:

  • Network part – identifies the subnet.
  • Host part – identifies devices within that subnet.
  • Prefix length – how many bits belong to the network.

Common subnet sizes

CIDRMaskTotalUsable*
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/30255.255.255.25242
/32255.255.255.25510

*Traditional IPv4 addressing reserves the network and broadcast addresses. Some point-to-point links use /31 subnets with two usable endpoints.