Calculate IP subnet masks, network addresses and host ranges.
Subnetting is a fundamental skill for network engineers, system administrators, and IT professionals. Dividing an IP address space into subnets improves network performance, security, and manageability. Our Subnet Calculator performs all the standard subnetting calculations instantly — no pencil and paper, no memorizing formulas.
Enter any IPv4 address and subnet mask (or CIDR notation), and get the network address, broadcast address, usable host range, wildcard mask, total hosts, and usable hosts in seconds.
Enter an IPv4 address and either a subnet mask (e.g., 255.255.255.0) or CIDR prefix (e.g., /24). The calculator converts to binary, performs bitwise AND operations to find the network address, computes the broadcast address, and derives all related subnet information.
Network Address = IP AND Subnet Mask (bitwise)
Broadcast Address = Network Address OR (NOT Subnet Mask)
First Usable Host = Network Address + 1
IP Address: 192.168.10.50
Subnet Mask: 255.255.255.0 (/24)
Network Address: 192.168.10.0
Broadcast Address: 192.168.10.255
First Usable Host: 192.168.10.1
Last Usable Host: 192.168.10.254
Total Hosts: 2^8 = 256
Usable Hosts: 254
Wildcard Mask: 0.0.0.255
Now if you subnet further to /26 (255.255.255.192):
Total hosts per subnet: 2^6 = 64 (62 usable)
Number of /26 subnets in this /24: 4
Subnet ranges:
192.168.10.0 – 192.168.10.63
192.168.10.64 – 192.168.10.127
192.168.10.128 – 192.168.10.191
192.168.10.192 – 192.168.10.255