Skip to content

IPv6 Subnet Calculator

Calculate an IPv6 network from an address and a prefix between 0 and 128. The result includes compressed and expanded text, the first and last address, and the exact count. There is no broadcast address and no IPv4-style usable-host subtraction.

CIDR prefix

18,446,744,073,709,551,616 addresses

11111111111111111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000
/64
/32/64/96/128
Network bitsHost bits

Drag the line, or use the arrow keys. The result updates as it moves.

2001:db8:1:2::/64

Documentation (RFC 3849). IPv6 has no broadcast address and no universal usable-host count.

Network address

2001:db8:1:2::

Last address

2001:db8:1:2:ffff:ffff:ffff:ffff

Total addresses

18,446,744,073,709,551,616

2^64

Compressed input

2001:db8:1:2::1

Expanded input

2001:0db8:0001:0002:0000:0000:0000:0001

IPv6 has no broadcast address. A /64 is the usual size for a subnet on a link, not a rule that every prefix must be 64.

What /64 does, and does not, mean

SLAAC and many operator guides assume a /64 on a link. That is a convention for interface identifiers, not a protocol rule that every routed prefix is 64 bits. A /48 or /56 is a common allocation. A /128 is one address.

2001:db8:1:2::1/64 normalizes to 2001:db8:1:2::/64. The block starts at 2001:db8:1:2:: and ends at 2001:db8:1:2:ffff:ffff:ffff:ffff, which is 18,446,744,073,709,551,616 addresses. There is no broadcast to subtract. 2001:db8::/32 is documentation space (RFC 3849), so this example is safe to copy into notes.

Questions

IPv6 does not use a broadcast address. Neighbor discovery uses multicast. The last address in the prefix is just the last address.

It is the loopback address, a single address. Compressing zeros does not change the prefix length.

Sources

Related tools