🔢 Network Calculator

Calculate network details from IP address and CIDR prefix.

Quick presets:
10.0.0.0/8
172.16.0.0/12
192.168.1.0/24
192.168.1.0/26
10.10.10.0/28
172.16.5.0/30

Common Subnet Reference

CIDRSubnet MaskTotal IPsUsable HostsClass
/8255.0.0.016,777,21616,777,214A
/16255.255.0.065,53665,534B
/24255.255.255.0256254C
/25255.255.255.128128126-
/26255.255.255.1926462-
/27255.255.255.2243230-
/28255.255.255.2401614-
/29255.255.255.24886-
/30255.255.255.25242-

FAQ

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is a compact way to specify an IP address and its network mask. The number after the slash indicates how many bits form the network portion. For example, /24 means 24 network bits and 8 host bits, giving 256 addresses.

What is the difference between network and broadcast address?

The network address is the first address in a subnet (all host bits set to 0) and identifies the network itself. The broadcast address is the last address (all host bits set to 1) and sends data to all hosts. Neither can be assigned to a device as a host address.

How many usable hosts are in a /24 subnet?

A /24 subnet contains 256 total addresses (2^8). Subtracting 2 for the network and broadcast addresses gives 254 usable host addresses. The general formula is: usable hosts = 2^(32 - prefix) - 2.