Subnet Calculator
IPv4 & IPv6 subnetting — network address, broadcast, host range, binary view, and subnet split
Results
Enter an IP address and prefix, then click Calculate.
Results
Enter an IPv6 address and prefix, then click Calculate.
Frequently Asked Questions
IPv6: Total addresses = 2(128-prefix). A /64 gives 264 ~18.4 quintillion addresses. IPv6 has no broadcast - it uses multicast instead. There is no subtraction for IPv6 hosts.
IPv6 uses 128-bit addresses (e.g. 2001:db8::1), supporting 3.4x1038 addresses - effectively unlimited. It uses colon-hexadecimal notation, supports auto-configuration (SLAAC), has no broadcast (replaced by multicast), and has built-in IPsec support.
- Unicast - one-to-one communication (Global: 2000::/3, Link-local: fe80::/10, Unique-local: fc00::/7)
- Multicast - one-to-many (ff00::/8), replaces IPv4 broadcast
- Anycast - one-to-nearest of a group (same address on multiple devices)
- Loopback - ::1/128 (equivalent to 127.0.0.1 in IPv4)
- Unspecified - ::/128 (equivalent to 0.0.0.0 in IPv4)
- 10.0.0.0/8 - 10.0.0.0 to 10.255.255.255 (~16.7M addresses)
- 172.16.0.0/12 - 172.16.0.0 to 172.31.255.255 (~1M addresses)
- 192.168.0.0/16 - 192.168.0.0 to 192.168.255.255 (~65K addresses)
About This Subnet Calculator
This free online Subnet Calculator supports both IPv4 and IPv6 subnetting. For IPv4, enter any address and drag the CIDR prefix slider (or type the subnet mask directly) to instantly calculate the network address, broadcast address, usable host range, subnet mask, wildcard mask, total hosts, IP class, and binary representation. The subnet split tool shows all sub-subnets at any larger prefix.
For IPv6, enter any address in full, compressed, or mixed notation, select a prefix length (typically /48, /56, /64), and instantly see the network prefix, full expanded/compressed forms, interface ID range, address type (Global, Link-local, Unique-local, Multicast, Loopback), and total addresses in the subnet.
IPv4 Subnet Reference
| CIDR | Subnet Mask | Hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
IPv6 Common Prefixes
| Prefix | Usage |
|---|---|
| 2000::/3 | Global unicast |
| fc00::/7 | Unique local (RFC 4193) |
| fe80::/10 | Link-local unicast |
| ff00::/8 | Multicast |
| ::1/128 | Loopback |
| ::/128 | Unspecified |
| 2001:db8::/32 | Documentation (RFC 3849) |
| 64:ff9b::/96 | IPv4-mapped IPv6 |