What Is Subnet Calculator?
A free online subnet calculator for network engineers and IT professionals. Enter an IP address and CIDR prefix to get the network address, broadcast address, usable host range, subnet mask, wildcard mask, total hosts, IP class, and binary representations. Supports all CIDR values from /0 to /32.
Subnetting is the practice of dividing an IP network into smaller subnetworks for routing efficiency, security segmentation, and address management. Subnet Calculator computes all key parameters from an IP address and CIDR prefix: network address, broadcast address, usable host range, subnet mask, wildcard mask, total hosts, IP class, and binary representations.
Enter an IP address in dotted decimal notation (e.g., 192.168.1.0) and select the CIDR prefix length from /0 to /32 using the slider or quick-select buttons for common prefixes (/8, /16, /24, /32). The calculator immediately displays: Network address (the first address in the subnet), broadcast address (the last address), usable host range (all addresses between network and broadcast), subnet mask (in dotted decimal, e.g., 255.255.255.0), wildcard mask (the inverse of the subnet mask), total number of hosts (2^(32-CIDR)), and number of usable hosts (total - 2).
The binary representation shows both the IP address and subnet mask in binary format for educational purposes — essential for understanding how the subnet mask separates the network portion from the host portion. The IP class (A, B, C, D, E) is also displayed based on the first octet.
The CIDR slider ranges from /0 (0.0.0.0/0, the entire internet) to /32 (a single host). Common values: /24 (256 addresses, 254 usable — typical office subnet), /16 (65,536 addresses — large organization), /8 (16.7 million — very large network).