Free online tool. All processing is client-side. No signup needed.
An IPv4 Subnet Calculator computes network parameters from an IP address and subnet mask or CIDR notation — network address, broadcast address, usable host range, number of hosts, and wildcard mask. Subnetting is a fundamental skill in networking: dividing a larger network into smaller sub-networks for better organization, security, and efficient IP address use. Network engineers, system administrators, and DevOps engineers use subnet calculations daily when configuring servers, firewalls, VPNs, and cloud VPCs.
Enter an IP address and either a subnet mask (255.255.255.0) or CIDR prefix (/24). The calculator performs bitwise AND between the IP and mask to get the Network Address, and sets all host bits to 1 to get the Broadcast Address. Usable hosts = 2^(32−prefix) − 2 (subtracting network and broadcast addresses). The results show both binary and decimal representations for learning.
Network Address = IP AND Subnet Mask (bitwise AND)\nBroadcast = Network OR Wildcard Mask (bitwise OR)\n\nWildcard Mask = NOT Subnet Mask (bitwise NOT)\n\nTotal Addresses = 2^(32 − CIDR Prefix)\nUsable Hosts = 2^(32 − Prefix) − 2\n\nSubnet Mask (decimal) = sum of bits set × 2^(8×(3−octet_index))\n\nCIDR Notation: /N where N = number of consecutive 1 bits in the mask\n\nCommon Subnets:\n/8 = 255.0.0.0 (16,777,214 hosts)\n/16 = 255.255.0.0 (65,534 hosts)\n/24 = 255.255.255.0 (254 hosts)
They're the same thing. /24 is CIDR notation — it means the first 24 bits are the network portion (255.255.255.0 in decimal). /24 is shorter and preferred in modern networking.
The first IP is the network address (identifies the subnet itself) and the last is the broadcast address (used to send packets to ALL devices on that subnet). Neither can be assigned to a specific device.
Free online Ipv4 Subnet Calculator — no signup, 100% client-side processing. All data stays in your browser.