IPv6 Subnet Calculator (Prefix, Range & Subnets)
Enter an IPv6 address and prefix length to get the network prefix, first and last address, the number of addresses and how many smaller subnets…
Enter an IPv6 address and prefix length to get the network prefix, first and last address, the number of addresses and how many smaller subnets (such as /64s) fit inside. Also expands and compresses the address.
Results
About This Calculator
Type the address with its prefix (2001:db8::/32) or put the prefix in the second box. You can use :: to skip a run of zero groups.
A typical ISP gives a site a /48 or /56, and each LAN uses a /64. Set the subnet size to see how many LANs your allocation holds.
Example
Example: 2001:db8:abcd:12::1/48 belongs to 2001:db8:abcd::/48, which runs from 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff. It holds 65,536 /64 subnets.
Assumptions
Addresses are compressed per RFC 5952 (leading zeros dropped, the longest run of zero groups replaced by ::). Very large counts are shown in scientific notation with the full number in brackets.
Frequently Asked Questions
How many /64s are in a /48?
65,536 (2¹⁶).
Why do LANs use /64?
SLAAC (stateless address autoconfiguration) needs a 64-bit interface ID, so a LAN subnet is a /64.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile