IPv6 Subnet Calculator
Calculate an IPv6 network address and remaining host bits from an address and prefix length
What is an IPv6 Subnet Calculator?
Calculates network address and host space for IPv6 addresses. /64 is standard for LANs, /48 for sites. Enter any IPv6 address, compressed :: notation included, plus a prefix length from /0 to /128, and the tool masks the address to its network portion and reports how many host bits remain, so you can plan subnets, document allocations, and verify addressing without manual hex math.
How to Use This Tool
- Enter the IPv6 address, Type an address like 2001:db8::1; compressed :: form is expanded automatically.
- Set the prefix length, Enter a number from 0 to 128 (64 for a standard LAN, 48 for a site allocation).
- Click Calculate, The Network, Prefix Length, and Host Bits rows appear below. Use Reset to restore the defaults.
Understanding the Results
Network shows the masked network address with its prefix, the host bits are zeroed and all eight groups are shown in expanded form. For example, 2001:db8::1 with /64 becomes 2001:0db8:0000:0000:0000:0000:0000:0000/64. Prefix Length echoes the / value you entered. Host Bits is 128 minus the prefix: a /64 leaves 64 host bits, a /48 leaves 80, and a /128 leaves none. Everything is computed instantly in your browser.
Example: Calculate an IPv6 /64 network
Enter 2001:db8::1 with prefix length 64. The first 64 bits identify the network, so the calculator clears the final 64 host bits and returns the expanded network address 2001:0db8:0000:0000:0000:0000:0000:0000/64. A /64 leaves 64 host bits for the interface identifier; this is the common prefix length for IPv6 LANs.
Tips & Best Practices
• Stick to /64 for LAN segments, stateless autoconfiguration (SLAAC) expects it, and smaller prefixes can break device addressing.
• Carve a /48 site block into /64 subnets (one per VLAN), leaving the remaining bits for future growth rather than assigning longer prefixes per link.
• Use documentation addresses (2001:db8::/32) in examples and tickets, never real customer prefixes.
Frequently Asked Questions
/64 is the standard for IPv6 LANs, providing 2^64 host addresses, enough for SLAAC autoconfiguration on every link. Sites typically receive a /48, which yields 65,536 /64 subnets, while point-to-point links sometimes use /127.
Host bits equal 128 minus the prefix length. A /64 leaves 64 host bits, a /48 leaves 80, and a /128 (single address) leaves zero.
Yes, addresses containing :: are expanded to eight 16-bit groups before masking, so 2001:db8::1 is treated as 2001:0db8:0000:0000:0000:0000:0000:0001.
Yes, any prefix from /0 to /128 is accepted. Shorter prefixes like /48 or /32 cover whole site or provider allocations; longer ones like /96 or /127 isolate small groups or single links.
No. The masking runs entirely in your browser with plain JavaScript, nothing leaves the page, and Reset clears the result instantly.
Sized this for your site?
Free engineers turn these numbers into a working design, topology, hardware and quote included.