IPv4 is tiny by design
All of IPv4 (4.29 billion addresses) could fit inside a single /8 of IPv6—less than one 256th of one percent of IPv6 space.
Enter IP/prefix. Works with IPv4 and IPv6 (IPv4-embedded IPv6 supported).
Tip: Try or .
IP addresses can look intimidating, but subnetting is simply a way to organize them so networks stay clean and predictable. This IP subnet calculator helps you translate a single address and prefix into practical details like network address, broadcast address, usable host range, and total hosts. Whether you are setting up a home router, planning office VLANs, or studying for a networking exam, it gives you a fast, reliable breakdown without manual math.
CIDR notation writes a network as IP/prefix, such as 192.168.1.10/24 for IPv4 or 2001:db8::/48 for IPv6. The prefix length tells you how many bits belong to the network portion. A larger prefix (like /28) means a smaller subnet with fewer available addresses, while a smaller prefix (like /16) means a larger subnet.
In IPv4, most subnets reserve the first address as the network address and the last as the broadcast address. That is why usable hosts are usually total − 2. Two special cases are common in real deployments and appear in results:
| Prefix | Subnet Mask | Usable Hosts | Total |
|---|---|---|---|
| /24 | 255.255.255.0 | 254 | 256 |
| /25 | 255.255.255.128 | 126 | 128 |
| /26 | 255.255.255.192 | 62 | 64 |
| /27 | 255.255.255.224 | 30 | 32 |
| /28 | 255.255.255.240 | 14 | 16 |
| /29 | 255.255.255.248 | 6 | 8 |
| /30 | 255.255.255.252 | 2 | 4 |
| /31 | 255.255.255.254 | 2* | 2 |
| /32 | 255.255.255.255 | 1* | 1 |
*Special cases: /31 point-to-point (2 usable), /32 single host.
| Prefix | Addresses | Typical use |
|---|---|---|
| /48 | 280 | Large site allocation |
| /56 | 272 | Small site allocation |
| /64 | 264 | Standard LAN / SLAAC networks |
| /128 | 1 | Single interface address |
All of IPv4 (4.29 billion addresses) could fit inside a single /8 of IPv6—less than one 256th of one percent of IPv6 space.
IPv6 LANs are almost always /64 because SLAAC (stateless autoconfig) assumes 64 host bits for making addresses from MACs.
IPv6 dropped broadcast entirely and leans on multicast groups instead (e.g., ff02::1 for “all nodes”).
Point-to-point IPv4 links often use /31 so both addresses are usable—no wasted network or broadcast slot.
IPv6 offers about 4.8×1028 addresses per human on Earth right now; IPv4 offers fewer than one per person.