NetToollo

Subnet Calculator

Calculate IP subnets, network ranges, CIDR notation, broadcast addresses, and available hosts.

Subnet Mask / CIDR Converter

/8/16/24/32

CIDR

/24

Subnet Mask

255.255.255.0

Wildcard

0.0.0.255

CIDR Reference Table

PrefixSubnet MaskTotal IPsUsable Hosts
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Frequently Asked Questions

What is a subnet mask?

A subnet mask is a 32-bit number that divides an IP address into the network portion and the host portion. It uses consecutive 1-bits to mark the network part and 0-bits for the host part. For example, 255.255.255.0 (/24) means the first 24 bits are the network address and the last 8 bits identify individual hosts, allowing up to 254 usable host addresses.

How do I calculate the number of hosts in a subnet?

The formula is 2^(32 - prefix length) - 2. You subtract 2 because the first address is reserved for the network address and the last for the broadcast address. For example, a /24 subnet has 2^8 - 2 = 254 usable hosts. A /30 subnet has 2^2 - 2 = 2 usable hosts, commonly used for point-to-point links.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address and its subnet mask in a compact format: IP/prefix. The prefix number indicates how many leading bits of the address are the network part. For example, 192.168.1.0/24 means the first 24 bits define the network, equivalent to a subnet mask of 255.255.255.0. CIDR replaced the older classful addressing system.