IPv4 Subnet Calculator
Enter any IPv4 address and CIDR prefix to instantly calculate network details including subnet mask, host range, broadcast address, and more. A free tool by IPv4Center.
What Is Subnetting?
Subnetting is the practice of dividing a larger IP network into smaller, more manageable sub-networks (subnets). It improves network performance, enhances security by isolating segments, and makes efficient use of limited IPv4 address space. Each subnet is defined by a network address and a subnet mask that determines how many host addresses are available within it. Learn more in our subnetting guide.
How Subnet Calculators Work
A subnet calculator takes an IPv4 address and a CIDR prefix length (e.g., /24) and performs bitwise operations to determine the network address, broadcast address, valid host range, and subnet mask. The CIDR prefix indicates how many leading bits of the 32-bit IP address represent the network portion — the remaining bits are available for host addresses within that subnet.
Common Subnet Reference
| CIDR | Subnet Mask | Usable Hosts |
|---|---|---|
| /32 | 255.255.255.255 | 1 |
| /31 | 255.255.255.254 | 2 (point-to-point) |
| /30 | 255.255.255.252 | 2 |
| /29 | 255.255.255.248 | 6 |
| /28 | 255.255.255.240 | 14 |
| /27 | 255.255.255.224 | 30 |
| /26 | 255.255.255.192 | 62 |
| /25 | 255.255.255.128 | 126 |
| /24 | 255.255.255.0 | 254 |
| /23 | 255.255.254.0 | 510 |
| /22 | 255.255.252.0 | 1,022 |
| /21 | 255.255.248.0 | 2,046 |
| /20 | 255.255.240.0 | 4,094 |
| /19 | 255.255.224.0 | 8,190 |
| /18 | 255.255.192.0 | 16,382 |
| /17 | 255.255.128.0 | 32,766 |
| /16 | 255.255.0.0 | 65,534 |
| /8 | 255.0.0.0 | 16,777,214 |