Subnet Calculator — IPv4 CIDR Subnet Mask Calculator Online

Calculate IPv4 subnet details from a CIDR notation. Get network address, broadcast address, host range, subnet mask, and number of hosts. Free, instant, runs in your browser.

Enter an IPv4 address and prefix, or use CIDR notation like 192.168.1.10/24.

Common subnet sizes

CIDRSubnet maskTotalUsable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/28255.255.255.2401614
/30255.255.255.25242
/32255.255.255.25510

* Network and broadcast addresses are reserved. /31 subnets (RFC 3021) have 2 usable endpoints for point-to-point links.

What is a subnet?

A subnet divides an IP network into smaller segments. CIDR notation like 192.168.1.0/24 defines both the network and its size — the number after / is the prefix length, indicating how many bits belong to the network part.

  • Network address — first address in the subnet, identifies the network itself.
  • Broadcast address — last address, used to send packets to all hosts on the subnet.
  • Subnet mask — bitmask that separates the network and host portions of an IP.
  • Wildcard mask — inverse of the subnet mask, commonly used in ACLs and firewall rules.

Related tools