Skip to main content

Ipv6 subnet Calculator

Our subnetting & ip tool computes ipv6subnet accurately. Enter your inputs for detailed analysis and optimization tips.

Skip to calculator
Computer & IT

Ipv6subnet Calculator

Calculate IPv6 subnet details including network address, address range, host count, and compressed notation. Supports all prefix lengths from /0 to /128.

Last updated: December 2025

Calculator

Adjust values & calculate
Network Address
2001:db8:85a3::/64
2001:0db8:85a3:0000:0000:0000:0000:0000
Total Addresses
2^64
2^64
Subnet Type
Standard subnet (/64)
Address Details
Full Input Address
2001:0db8:85a3:0000:0000:8a2e:0370:7334
(2001:db8:85a3::8a2e:370:7334)
Network (First) Address
2001:0db8:85a3:0000:0000:0000:0000:0000
(2001:db8:85a3::)
Last Address
2001:0db8:85a3:0000:ffff:ffff:ffff:ffff
(2001:db8:85a3:0:ffff:ffff:ffff:ffff)
Host Bits
64
/64 Subnets
1
Your Result
Network: 2001:db8:85a3::/64 | Hosts: 2^64 | Standard subnet (/64)
Share Your Result
Understand the Math

Formula

Network = Address AND PrefixMask | Hosts = 2^(128 - PrefixLength)

The network address is derived by masking the input address with the prefix length, zeroing out all host bits. The number of available addresses equals 2 raised to the power of host bits (128 minus prefix length). For a standard /64 subnet, this yields 2^64 addresses.

Last reviewed: December 2025

Worked Examples

Example 1: Standard /64 Subnet Calculation

Given the IPv6 address 2001:0db8:85a3:0001:0000:8a2e:0370:7334 with a /64 prefix, find the network and address range.
Solution:
Full address: 2001:0db8:85a3:0001:0000:8a2e:0370:7334 Network prefix (first 64 bits): 2001:0db8:85a3:0001 Network address: 2001:0db8:85a3:0001:0000:0000:0000:0000 Last address: 2001:0db8:85a3:0001:ffff:ffff:ffff:ffff Host bits: 64 | Addresses: 2^64 = 18,446,744,073,709,551,616
Result: Network: 2001:db8:85a3:1:: | Last: 2001:db8:85a3:1:ffff:ffff:ffff:ffff

Example 2: ISP /48 Allocation Breakdown

An organization receives 2001:0db8:abcd::/48. How many /64 subnets can be created?
Solution:
Prefix length: 48 bits Bits available for subnetting: 64 - 48 = 16 bits Number of /64 subnets: 2^16 = 65,536 Network range: 2001:0db8:abcd:0000:: to 2001:0db8:abcd:ffff:: Each /64 subnet has 2^64 host addresses
Result: 65,536 subnets of /64 available | Total addresses: 2^80
Expert Insights

Background & Theory

The Ipv6subnet Calculator applies the following established principles and formulas. Computers represent all information using binary, a base-2 number system consisting solely of the digits 0 and 1, each called a bit. Because long binary strings are unwieldy, programmers routinely use octal (base 8) and hexadecimal (base 16) as compact shorthand. Converting between bases follows a consistent algorithm: divide the source number repeatedly by the target base, collecting remainders in reverse order. Hexadecimal digits A through F represent the values 10 through 15, allowing a single character to encode four binary bits, making it the preferred notation for memory addresses, color codes, and bytecode. Bitwise operations manipulate individual bits within integers. AND produces a 1 only when both input bits are 1, making it useful for masking. OR produces a 1 when either bit is 1 and is used for combining flags. XOR flips bits that differ, enabling simple toggle logic and efficient swap algorithms. NOT inverts every bit (one's complement), while left and right shifts multiply or divide by powers of two in constant time. Data storage units ascend in binary multiples of 1024: 8 bits form one byte, 1024 bytes form one kibibyte (KiB), 1024 KiB form one mebibyte (MiB), and so forth. Hard-drive manufacturers historically use decimal prefixes (1 KB = 1000 bytes), creating the persistent confusion between binary and decimal interpretations of the same label. The IEC standardized the binary prefixes KiB, MiB, GiB, and TiB in 1998 to resolve this ambiguity. Network bandwidth is measured in bits per second (bps), most commonly megabits per second (Mbps) or gigabits per second (Gbps). A 100 Mbps connection transfers 100 million bits every second, equating to roughly 12.5 megabytes per second. IP subnet masks define network boundaries; CIDR notation appends a prefix length (e.g., /24) to an address, indicating how many leading bits are fixed. A /24 subnet contains 256 addresses with 254 usable hosts. Algorithm efficiency is described using Big-O notation, which characterises the worst-case growth of time or space relative to input size. O(1) is constant, O(log n) is logarithmic (binary search), O(n) is linear, and O(nยฒ) is quadratic. Cryptographic hash functions like SHA-256 produce a fixed 256-bit (32-byte) digest regardless of input length. File compression algorithms exploit statistical redundancy to reduce storage footprint, and compression ratio equals the original file size divided by the compressed size.

History

The history behind the Ipv6subnet Calculator traces back through the following developments. The conceptual foundation of modern computing traces back to Charles Babbage, whose Analytical Engine design of 1837 introduced the idea of a general-purpose mechanical computer with separate storage and processing units, including what he called the Store and the Mill. Ada Lovelace wrote what many consider the first algorithm intended for machine execution while annotating a translation of Luigi Menabrea's account of Babbage's work, also recognising the machine's potential to manipulate symbols beyond mere numbers. George Boole published "The Laws of Thought" in 1854, formalising a two-valued algebra of logic that would later map perfectly to electrical circuits. It remained largely a mathematical curiosity until Claude Shannon's landmark 1937 master's thesis demonstrated that Boolean algebra could describe switching circuits, laying the theoretical groundwork for all digital electronics. Shannon's 1948 paper "A Mathematical Theory of Communication" defined the bit as the fundamental unit of information and established information theory as a rigorous discipline. The same year, the transistor was invented at Bell Labs by Bardeen, Brattain, and Shockley, eventually replacing vacuum tubes and enabling miniaturisation at scale. ENIAC, completed in 1945, was one of the first general-purpose electronic computers, occupying 1800 square feet and consuming 150 kilowatts of power while performing roughly 5000 additions per second. The ASCII standard was ratified in 1963, assigning 7-bit codes to 128 characters and enabling interoperability between computers from different manufacturers. Through the 1970s, the microprocessor consolidated an entire CPU onto a single chip; Intel's 4004 in 1971 marked the beginning of this trend. The Apple II launched in 1977 and the IBM PC in 1981 brought computing to homes and offices, triggering a mass-market software industry. Tim Berners-Lee proposed the World Wide Web in 1989 and launched the first website in 1991 at CERN, transforming the internet from an academic and military network into a global information infrastructure. Mobile computing accelerated through the 2000s with smartphones integrating powerful processors, wireless networking, and GPS into pocket-sized devices, extending computation into every facet of daily life and cementing TCP/IP as the universal communications fabric.

Share this calculator

Explore More

Frequently Asked Questions

IPv6 subnetting divides the massive one hundred twenty-eight bit IPv6 address space into smaller, manageable network segments. Unlike IPv4 which uses thirty-two bit addresses providing about four point three billion addresses, IPv6 provides approximately three hundred forty undecillion addresses. The most significant difference is scale: a standard IPv6 subnet with a sixty-four bit prefix contains over eighteen quintillion addresses, more than four times the entire IPv4 address space. IPv6 subnetting does not use subnet masks like IPv4; instead it uses prefix length notation exclusively. The recommended minimum allocation for an end-user subnet is a /64 prefix, which allows stateless address autoconfiguration to function properly with the sixty-four bit interface identifier.
The standard prefix length for IPv6 subnets is sixty-four bits, written as /64. This convention is strongly recommended by the Internet Engineering Task Force and is essential for several IPv6 features to work correctly, including Stateless Address Autoconfiguration, Neighbor Discovery Protocol, and various security mechanisms. A /64 prefix leaves sixty-four bits for the interface identifier, providing over eighteen quintillion unique host addresses per subnet. Internet service providers typically receive a /32 or /48 allocation from regional internet registries. Residential customers usually receive a /48 or /56 prefix, allowing them to create sixty-five thousand or two hundred fifty-six individual /64 subnets respectively within their allocated space.
IPv6 addresses can be compressed using two rules to make them shorter and easier to read. The first rule allows removing leading zeros within each sixteen-bit group, so 2001:0db8:0000:0042 becomes 2001:db8:0:42. The second rule allows replacing one or more consecutive groups of all zeros with a double colon, but this can only be used once per address to avoid ambiguity. For example, 2001:0db8:0000:0000:0000:0000:0000:0001 compresses to 2001:db8::1. To expand a compressed address, reverse these steps by restoring leading zeros and expanding the double colon into the appropriate number of zero groups to total eight groups of four hexadecimal digits.
In IPv6, the network address (also called the network prefix or subnet identifier) is the portion of the address determined by the prefix length, with all remaining host bits set to zero. The host portion (interface identifier) occupies the remaining bits after the prefix and uniquely identifies a specific device within that subnet. For a /64 subnet, the first sixty-four bits represent the network and the last sixty-four bits represent the host. Unlike IPv4, there is no broadcast address in IPv6; instead, multicast addresses serve similar purposes. The network address itself with all host bits zeroed is called the subnet router anycast address and is reserved for router communication within that particular subnet segment.
IPv6 address allocation follows a hierarchical structure managed by the Internet Assigned Numbers Authority and five Regional Internet Registries worldwide. IANA allocates large blocks to RIRs, which then assign them to Internet Service Providers and large organizations. A typical ISP receives a /32 prefix, giving them over sixty-five thousand /48 blocks to distribute. Organizations and business customers typically receive a /48 prefix, providing sixty-five thousand five hundred thirty-six /64 subnets for internal network segmentation. Residential customers commonly receive a /56 prefix with two hundred fifty-six /64 subnets, or sometimes a /48 for more generous allocations. This generous allocation policy eliminates the address scarcity problems that plagued IPv4 and removes the need for network address translation.
You may use the results for reference and educational purposes. For professional reports, academic papers, or critical decisions, we recommend verifying outputs against peer-reviewed sources or consulting a qualified expert in the relevant field.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

Network = Address AND PrefixMask | Hosts = 2^(128 - PrefixLength)

The network address is derived by masking the input address with the prefix length, zeroing out all host bits. The number of available addresses equals 2 raised to the power of host bits (128 minus prefix length). For a standard /64 subnet, this yields 2^64 addresses.

Worked Examples

Example 1: Standard /64 Subnet Calculation

Problem: Given the IPv6 address 2001:0db8:85a3:0001:0000:8a2e:0370:7334 with a /64 prefix, find the network and address range.

Solution: Full address: 2001:0db8:85a3:0001:0000:8a2e:0370:7334\nNetwork prefix (first 64 bits): 2001:0db8:85a3:0001\nNetwork address: 2001:0db8:85a3:0001:0000:0000:0000:0000\nLast address: 2001:0db8:85a3:0001:ffff:ffff:ffff:ffff\nHost bits: 64 | Addresses: 2^64 = 18,446,744,073,709,551,616

Result: Network: 2001:db8:85a3:1:: | Last: 2001:db8:85a3:1:ffff:ffff:ffff:ffff

Example 2: ISP /48 Allocation Breakdown

Problem: An organization receives 2001:0db8:abcd::/48. How many /64 subnets can be created?

Solution: Prefix length: 48 bits\nBits available for subnetting: 64 - 48 = 16 bits\nNumber of /64 subnets: 2^16 = 65,536\nNetwork range: 2001:0db8:abcd:0000:: to 2001:0db8:abcd:ffff::\nEach /64 subnet has 2^64 host addresses

Result: 65,536 subnets of /64 available | Total addresses: 2^80

Frequently Asked Questions

What is IPv6 subnetting and how is it different from IPv4?

IPv6 subnetting divides the massive one hundred twenty-eight bit IPv6 address space into smaller, manageable network segments. Unlike IPv4 which uses thirty-two bit addresses providing about four point three billion addresses, IPv6 provides approximately three hundred forty undecillion addresses. The most significant difference is scale: a standard IPv6 subnet with a sixty-four bit prefix contains over eighteen quintillion addresses, more than four times the entire IPv4 address space. IPv6 subnetting does not use subnet masks like IPv4; instead it uses prefix length notation exclusively. The recommended minimum allocation for an end-user subnet is a /64 prefix, which allows stateless address autoconfiguration to function properly with the sixty-four bit interface identifier.

What is the standard IPv6 prefix length for subnets?

The standard prefix length for IPv6 subnets is sixty-four bits, written as /64. This convention is strongly recommended by the Internet Engineering Task Force and is essential for several IPv6 features to work correctly, including Stateless Address Autoconfiguration, Neighbor Discovery Protocol, and various security mechanisms. A /64 prefix leaves sixty-four bits for the interface identifier, providing over eighteen quintillion unique host addresses per subnet. Internet service providers typically receive a /32 or /48 allocation from regional internet registries. Residential customers usually receive a /48 or /56 prefix, allowing them to create sixty-five thousand or two hundred fifty-six individual /64 subnets respectively within their allocated space.

How do you compress and expand IPv6 addresses?

IPv6 addresses can be compressed using two rules to make them shorter and easier to read. The first rule allows removing leading zeros within each sixteen-bit group, so 2001:0db8:0000:0042 becomes 2001:db8:0:42. The second rule allows replacing one or more consecutive groups of all zeros with a double colon, but this can only be used once per address to avoid ambiguity. For example, 2001:0db8:0000:0000:0000:0000:0000:0001 compresses to 2001:db8::1. To expand a compressed address, reverse these steps by restoring leading zeros and expanding the double colon into the appropriate number of zero groups to total eight groups of four hexadecimal digits.

What is the difference between network address and host address in IPv6?

In IPv6, the network address (also called the network prefix or subnet identifier) is the portion of the address determined by the prefix length, with all remaining host bits set to zero. The host portion (interface identifier) occupies the remaining bits after the prefix and uniquely identifies a specific device within that subnet. For a /64 subnet, the first sixty-four bits represent the network and the last sixty-four bits represent the host. Unlike IPv4, there is no broadcast address in IPv6; instead, multicast addresses serve similar purposes. The network address itself with all host bits zeroed is called the subnet router anycast address and is reserved for router communication within that particular subnet segment.

How are IPv6 addresses allocated to organizations and end users?

IPv6 address allocation follows a hierarchical structure managed by the Internet Assigned Numbers Authority and five Regional Internet Registries worldwide. IANA allocates large blocks to RIRs, which then assign them to Internet Service Providers and large organizations. A typical ISP receives a /32 prefix, giving them over sixty-five thousand /48 blocks to distribute. Organizations and business customers typically receive a /48 prefix, providing sixty-five thousand five hundred thirty-six /64 subnets for internal network segmentation. Residential customers commonly receive a /56 prefix with two hundred fifty-six /64 subnets, or sometimes a /48 for more generous allocations. This generous allocation policy eliminates the address scarcity problems that plagued IPv4 and removes the need for network address translation.

Why might my result differ from another tool or reference?

Differences typically arise from rounding conventions, the specific version of a formula (for example, simple vs compound interest), or unit inconsistencies between inputs. Check that both tools are using the same formula variant and the same units. The References section links to the authoritative source behind the formula used here.

References

Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy