Calcoid

IPv6 Subnet Calculator

Parse any IPv6 address and prefix into its network address, total addresses, /64 subnet count, and address type (global, link-local, unique-local, multicast, loopback). 128-bit BigInt math, RFC 5952 compression, runs locally.

IPv6 address and prefix

Common prefix lengths

Network

2001:db8:85a3::/64

Documentation (2001:db8::/32)

Compressed address

2001:db8:85a3::8a2e:370:7334

Expanded address

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Network address (compressed)

2001:db8:85a3::

Network address (expanded)

2001:0db8:85a3:0000:0000:0000:0000:0000

Prefix length

/64

Address type

Documentation (2001:db8::/32)

Private / scoped

No

Number of /64 subnets

1

Total addresses in subnet

18446744073709551616

About 1.84e19 addresses

IPv6 Prefix Reference

PrefixNumber of /64 subnetsAddresses in one /64
/4865,53618,446,744,073,709,551,616
/5625618,446,744,073,709,551,616
/64118,446,744,073,709,551,616
/524,09618,446,744,073,709,551,616
/601618,446,744,073,709,551,616

Frequently Asked Questions about the IPv6 Subnet Calculator

How is IPv6 different from IPv4 in terms of address size?
IPv4 addresses are 32 bits long, which gives 2^32 (about 4.29 billion) total addresses. IPv6 expanded that to 128 bits, which is 2^128 (about 3.4 x 10^38) total addresses. That is a 79-octillion-fold increase, enough to assign trillions of unique addresses to every grain of sand on Earth. The bigger address means IPv6 is written as 8 groups of 4 hex digits separated by colons (for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334) instead of the four decimal octets of IPv4.
Why is /64 the standard subnet size for an IPv6 LAN?
A /64 is the normal size for an IPv6 LAN because SLAAC uses a 64-bit interface identifier. Prefixes longer than /64 generally cannot use ordinary SLAAC, but Neighbor Discovery and DHCPv6 are not universally broken by that fact. Other link types have specific guidance, including /127 for many router-to-router links.
What are the IPv6 compression rules (the :: shorthand)?
Two rules. First, leading zeros inside any 16-bit group can be dropped (2001:0db8 and 2001:db8 are the same). Second, exactly one run of consecutive all-zero groups can be replaced with :: (2001:db8:0:0:0:0:0:1 becomes 2001:db8::1). The :: shorthand may appear at most once per address, otherwise the parser would not know how many zeros to insert on each side. RFC 5952 also picks the longest zero run and breaks ties toward the leftmost, which is what canonical tools produce.
What are the main IPv6 address types?
Common ranges include global unicast 2000::/3, link-local fe80::/10, unique-local fc00::/7, and multicast ff00::/8. Locally assigned unique-local prefixes currently use fd00::/8; fc00::/8 is reserved for another assignment method. IPv6 also defines loopback ::1, unspecified ::, IPv4-mapped addresses, and the documentation prefix 2001:db8::/32.
Why does a single /64 hold about 1.84 x 10^19 addresses?
A /64 leaves 64 interface-identifier bits, so it contains 2^64, or 18,446,744,073,709,551,616, addresses. IPv6 plans normally assign /64 to SLAAC LANs for protocol consistency rather than trying to fill the address space. Site allocations vary by provider and policy, so /48 and /56 are common examples, not universal entitlements.

Related Calculators

More calculators in "Tech"

See all 98 calculators in "Tech"