What this IPv6 subnet mask calculator does
This tool helps you work with IPv6 prefixes quickly and accurately. Since IPv6 uses CIDR prefix lengths (like /64) instead of traditional dotted subnet masks, many engineers still want a clear breakdown of what that prefix actually means.
Enter an IPv6 address and prefix, and the calculator returns:
- Expanded and compressed address formats
- Equivalent 128-bit subnet mask in hexadecimal form
- Network address for the prefix
- Host (interface) portion of the address
- Total number of addresses in the subnet
- Optional subnet count from a parent prefix
IPv6 subnet mask vs prefix length
In IPv4, we often write subnet masks like 255.255.255.0. In IPv6, the standard is a prefix length:
/64, /56, /48, and so on. The prefix length tells you how many leading bits are network bits.
Example: a /64 means:
- First 64 bits = network prefix
- Last 64 bits = interface identifier (host portion)
While IPv6 doesn’t usually display a "mask" the same way IPv4 does, the concept still exists mathematically. This calculator shows that mask explicitly for learning, troubleshooting, and documentation.
Common IPv6 prefix sizes
/128 (Single address)
Used for loopbacks, host routes, and exact endpoint matching.
/64 (Standard LAN subnet)
Most common end-user subnet size. Required for SLAAC in most environments.
/56 or /60 (Delegated customer block)
Common in ISP assignments where multiple /64 subnets are needed inside one site.
/48 (Site allocation)
Traditional enterprise allocation size in many addressing plans.
How subnet counts are calculated
If you provide a parent prefix, the calculator computes how many child subnets exist:
Subnets = 2(childPrefix - parentPrefix)
Example: from /48 to /64:
2^(64-48) = 2^16 = 65,536 subnets.
Practical tips for IPv6 subnetting
- Prefer nibble boundaries (
/48,/52,/56,/60,/64) for easier readability. - Document both compressed and expanded forms when building templates or ACLs.
- Remember: IPv6 has no broadcast address; multicast is used instead.
- Keep internal allocation consistent by region, function, or security zone.
Frequently asked questions
Is there a dotted-decimal subnet mask for IPv6?
No. IPv6 uses prefix length notation. Any mask representation is typically shown as 8 hexadecimal hextets.
What is the most common IPv6 subnet size?
/64 for LAN segments is the standard in most deployments.
How many addresses are in a /64?
2^64 addresses (18,446,744,073,709,551,616).
Why show both compressed and expanded addresses?
Compressed is easier for humans. Expanded is useful for exact bit-level checks, audits, and troubleshooting mismatches in firewall or route policies.