IPv6 Subnet Mask Calculator
Calculate IPv6 network prefixes, prefix masks, address ranges, and total addresses from an IPv6 address and CIDR prefix. Expand or compress IPv6 notation and find the number of /64 subnets in a larger network.
IPv6 Subnet Details
Network Information
—
—
—
—
—
Address Formats
—
—
—
Prefix Information
—
—
—
—
Address Capacity
—
—
—
What Is an IPv6 Subnet Calculator?
An IPv6 subnet calculator determines the network prefix, address range, prefix mask, and total number of addresses for an IPv6 address and CIDR prefix. It is useful for network administrators, IT students, developers, and anyone planning or troubleshooting IPv6 networks.
Enter a compressed IPv6 address such as 2001:db8:1234:5678::1 and choose a prefix length such as /64. The calculator identifies the containing network and calculates its address boundaries.
How to Use the IPv6 Subnet Calculator
- Enter an IPv6 address in compressed or expanded notation.
- Specify a CIDR prefix from
/0to/128, either in the address or in the Prefix Length field. - Select Calculate Subnet to display the results.
- Review the network prefix, first and last addresses, expanded notation, prefix mask, and address count.
- Use the Copy buttons to copy individual results or the complete result set.
IPv6 Subnet Calculation Example
Consider the address 2001:db8:1234:5678::1/64. Its first 64 bits identify the network prefix, while the remaining 64 bits form the interface identifier portion of the address space.
| Property | Result |
|---|---|
| Input Address | 2001:db8:1234:5678::1 |
| Network Prefix | 2001:db8:1234:5678::/64 |
| Prefix Mask | ffff:ffff:ffff:ffff:: |
| First Address | 2001:db8:1234:5678:: |
| Last Address | 2001:db8:1234:5678:ffff:ffff:ffff:ffff |
| Host Bits | 64 |
| Total Addresses | 18,446,744,073,709,551,616 (264) |
What Is an IPv6 Prefix Length?
An IPv6 prefix length specifies how many of the address’s 128 bits belong to the network prefix. For example, /64 identifies a 64-bit prefix and leaves 64 bits outside that prefix. A shorter prefix represents a larger address block, while a longer prefix represents a smaller block.
What Is an IPv6 Prefix Mask?
An IPv6 prefix mask is a 128-bit value with consecutive leading 1-bits followed by 0-bits. For example, /64 corresponds to ffff:ffff:ffff:ffff::. Unlike IPv4, IPv6 does not use dotted-decimal subnet masks.
Compressed vs. Expanded IPv6 Addresses
An IPv6 address contains eight hexadecimal groups, each representing 16 bits. Leading zeros within a group can be omitted, and one consecutive run of zero groups can be represented by ::.
For example, 2001:0db8:0000:0000:0000:0000:0000:0001 can be shortened to 2001:db8::1. The double colon can appear only once in an IPv6 address.
How Many Addresses Are in an IPv6 Subnet?
The total number of addresses in an IPv6 prefix is 2128 - prefix length. A /64 contains 264 addresses, while a /128 identifies exactly one address.
The total address count is not the same as the number of addresses available for ordinary interface assignment. Certain addresses and ranges have special meanings, and assignment rules depend on the network configuration.
How Many /64 Subnets Fit in a Larger IPv6 Prefix?
When the prefix length is 64 or shorter, the number of /64 blocks it contains is 264 - prefix length. For example, a /48 contains 65,536 distinct /64 prefixes. A prefix longer than /64 does not contain a complete /64 block.
IPv6 vs. IPv4 Subnetting
IPv4 uses 32-bit addresses and conventionally reserves network and broadcast addresses in ordinary subnets. IPv6 uses 128-bit addresses and does not use broadcast addressing. IPv6 subnet calculations therefore focus on the network prefix and the numeric address range rather than an IPv4-style broadcast address.
Limitations
- This calculator supports IPv6 hexadecimal notation, including compressed and fully expanded addresses.
- IPv4-embedded IPv6 notation and zone identifiers such as
%eth0are not supported by this version. - The calculator determines numeric prefix boundaries but does not check routing, reachability, address allocation, or duplicate addresses.
- A calculated address range does not imply that every address is available for interface assignment.
The calculations are performed by the supplied JavaScript implementation in the browser and do not require an external subnet calculation API. This does not describe other network requests that the hosting website may make.
Frequently Asked Questions
How do I calculate an IPv6 subnet?
Enter an IPv6 address and a CIDR prefix, such as 2001:db8::1/64. The calculator determines the network prefix, address boundaries, prefix mask, and total number of addresses.
What is the subnet mask for IPv6 /64?
The IPv6 prefix mask for /64 is ffff:ffff:ffff:ffff::. It consists of 64 leading 1-bits followed by 64 zero-bits.
How many addresses are in an IPv6 /64 subnet?
An IPv6 /64 contains 264, or 18,446,744,073,709,551,616, total addresses. This total is not the number of addresses available for ordinary interface assignment.
What is the difference between /64 and /128?
A /64 contains 264 addresses, whereas a /128 identifies a single IPv6 address. The longer prefix describes a much smaller address block.
Does IPv6 have a broadcast address?
No. IPv6 does not use broadcast addressing. It uses multicast and other IPv6 mechanisms for communication with groups of interfaces.
How many /64 subnets are in a /48?
A /48 contains 65,536 distinct /64 prefixes because the difference between the prefix lengths is 16 bits, and 216 equals 65,536.
Can I enter a fully expanded IPv6 address?
Yes. You can enter an IPv6 address with all eight hexadecimal groups, each containing up to four hexadecimal digits, or use valid compressed notation with ::.
Does this IPv6 calculator test whether an address is reachable?
No. It performs mathematical subnet calculations only. It does not test connectivity, routing, duplicate addresses, or whether an address is assigned to a device.