IP Subnet Calculator
IP subnetting divides a network into smaller logical segments. Each subnet is defined by a network address and a CIDR prefix length (e.g., /24), which determines how many bits are used for the network portion versus the host portion.
This tool computes the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total number of hosts for any IPv4 CIDR block. Essential for network planning, firewall rules, and infrastructure design.
How it works
Subnet mask = 32 - CIDR prefix bits set to 1. Network = IP AND mask. Broadcast = network OR NOT(mask). Usable hosts = 2^(32 - CIDR) - 2 (for CIDR < 31).
Use cases
- Planning network segmentation for offices or data centers
- Configuring firewall rules and access control lists
- Allocating IP address ranges for DHCP pools
- Troubleshooting connectivity and routing issues