IPv6 Subnet Calculator: Prefixes, /48, /56 & /64
Prefix, first and last address, short and full forms, /64 count, ip6.arpa and /48 to /64 splits.
- First address
- 2001:db8:abcd::
- Prefix (expanded)
- 2001:0db8:abcd:0000:0000:0000:0000:0000
- Address entered (compressed)
- 2001:db8:abcd:12::1
- Number of addresses
- 2^80
- Number of /64 subnets
- 65,536
- Address type
- Documentation (RFC 3849)
- Reverse DNS zone
- d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
- Number of /64 subnets
- 65,536
First /64 subnets inside 2001:db8:abcd::/48
| No. | Subnet | Last address |
|---|---|---|
| 1 | 2001:db8:abcd::/64 | 2001:db8:abcd:0:ffff:ffff:ffff:ffff |
| 2 | 2001:db8:abcd:1::/64 | 2001:db8:abcd:1:ffff:ffff:ffff:ffff |
| 3 | 2001:db8:abcd:2::/64 | 2001:db8:abcd:2:ffff:ffff:ffff:ffff |
| 4 | 2001:db8:abcd:3::/64 | 2001:db8:abcd:3:ffff:ffff:ffff:ffff |
| 5 | 2001:db8:abcd:4::/64 | 2001:db8:abcd:4:ffff:ffff:ffff:ffff |
| 6 | 2001:db8:abcd:5::/64 | 2001:db8:abcd:5:ffff:ffff:ffff:ffff |
| 7 | 2001:db8:abcd:6::/64 | 2001:db8:abcd:6:ffff:ffff:ffff:ffff |
| 8 | 2001:db8:abcd:7::/64 | 2001:db8:abcd:7:ffff:ffff:ffff:ffff |
Formula and sources
Prefix = address AND mask (the first prefix bits set); last address = prefix OR the inverted mask Addresses = 2^(128 − prefix); /64 subnets = 2^(64 − prefix); split into /n: 2^(n − prefix) subnets RFC 5952 compressed form: lower case, no leading zeros, the longest run of zero groups as ::
When to use the IPv6 Subnet
The prefix of any address
Enter an address with its prefix, such as 2001:db8:abcd:12::1/48. The calculator works out the prefix 2001:db8:abcd::/48, its first and last address, the full 32-hex-digit form and how many /64 subnets it holds.
Splitting a /48 into /64s
A site usually receives a /48 or /56 from its ISP. Enter 64 as the split prefix to list consecutive LAN subnets: a /48 holds 65,536 /64 subnets and a /56 holds 256.
The correct short form
Addresses are written as RFC 5952 recommends: lower case, leading zeros removed from each group, and the longest run of zeros replaced by ::. Use this form in configs, documentation and DNS.
Address type and reverse DNS
The calculator recognises global unicast, ULA fc00::/7, link-local fe80::/10, multicast, documentation 2001:db8::/32 and IPv4-mapped addresses. For prefixes on a 4-bit boundary it also writes the ip6.arpa zone for reverse DNS delegation.
Frequently asked questions
How many addresses are in a /64?
2^64, about 18.4 quintillion addresses. It is not meant to be filled; the size lets devices create their own addresses.
What is the difference between /48, /56 and /64?
A /48 is typical for a site or office (65,536 LANs), a /56 for a home or small office (256 LANs) and a /64 for a single LAN. ISPs hand out different sizes, so check the prefix you were given.
Can I enter an address without a prefix?
Yes. Without a /prefix the address is taken as a /128 (one host), and the calculator still shows its compressed and expanded forms and its type.
Related calculators
- IPv4 SubnetNetwork, broadcast, host range and count, masks and binary from an IP/prefix, plus equal subnet splits.Example: Network address192.168.10.64/26Calculate →
- VLSMCarve one IP block into subnets sized to each network's host count, with no overlaps.Example: Addresses allocated244Calculate →
- Tunnel MTU & MSSTunnel MTU and TCP MSS for PPPoE, GRE, IPIP, WireGuard and VXLAN, for IPv4 and IPv6.Example: Tunnel / VPN interface MTU1,432 bytesCalculate →